How i can insert a html page from url to pdf page?

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
dkaip
Super wx Problem Solver
Super wx Problem Solver
Posts: 333
Joined: Wed Jan 20, 2010 1:15 pm

How i can insert a html page from url to pdf page?

Post by dkaip »

Hello.
If i have a url how i can insert the html page in pdf page?
There is some easy way without libraries, only wxPdfDocument?
Thank's
Jim
utelle
Moderator
Moderator
Posts: 1125
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: How i can insert a html page from url to pdf page?

Post by utelle »

dkaip wrote:If i have a url how i can insert the html page in pdf page?
There is some easy way without libraries, only wxPdfDocument?
wxPdfDocument itself has no builtin support to convert HTML to PDF. However, wxPdfDocument supports the wxWidgets printing framework. That is, maybe you could use wxHtmlPrintout to accomplish your task.

Admittedly HTML support of the wxHtml classes is limited. For converting a html page which uses recent html techniques you will most likely have to use wxWebView and its Print method. However, I don't know whether wxWebView supports the wxWidgets printing framework. If not, there is probably no easy way to accomplish your task.

Regards,

Ulrich
Post Reply