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.
dkaip
I live to help wx-kind
I live to help wx-kind
Posts: 189
Joined: Wed Jan 20, 2010 1:15 pm

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

Postby dkaip » Sat Jun 30, 2018 8:21 pm

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: 823
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?

Postby utelle » Sun Jul 01, 2018 3:04 pm

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


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 0 guests