76
Views
5
Comments
Solved
[Ultimate PDF] Is it possible to grab HTML just before PDF is generated?
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

Hi, I'm trying to "misuse" UltimatePDF ;-)
I don't want to get a PDF from a url, but I want the Chromium component in UltimatePDF to just render the page and return the HTML result ... 
Is that possible? Or is this functionality hidden, if so, may I request such service in the next release ;-) 

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Erwin.

This scenario is not supported by Ultimate PDF, nor will it ever be. However, the latest version 9.0.0 makes it easy to integrate with the puppeteer by reusing some of its code. I am sharing an extension that does that, and you can try to use or customize it.

PuppeteerWebScraper.xif
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

@Erwin van Rijsewijk you cannot obtain the HTML with Ultimate PDF. It only converts to PDF or PNG/JPG.

Could you explain what are you trying to achieve by retrieving the HTML? Web scrapping? UI testing? Something else?

2026-01-03 13-44-38
Erwin van Rijsewijk
Champion

Leonardo, webscraping. That's why I want to "see" a website like a human.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Erwin.

This scenario is not supported by Ultimate PDF, nor will it ever be. However, the latest version 9.0.0 makes it easy to integrate with the puppeteer by reusing some of its code. I am sharing an extension that does that, and you can try to use or customize it.

PuppeteerWebScraper.xif
2026-01-03 13-44-38
Erwin van Rijsewijk
Champion

Can't I install it in my Personal Environment?

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP


You need to build it in Visual Studio first for it to install the nuget dependencies. Or you can publish it directly in Service Center.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.