Save web page as PDF?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fjord
Posts: 146
Joined: Sat Dec 06, 2008 6:18 pm

Save web page as PDF?

Post by Fjord »

Hi,
How can I download a web page, as it appears in a browser, as PDF for archival?
I mean of course I can dload the web page but then I get HTML code. And apparently, I can save only cards to PDF (if I read the doc correctly).
Any idea?
--
François
--
François
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10504
Joined: Wed May 06, 2009 2:28 pm

Re: Save web page as PDF?

Post by dunbarx »

Hi.

Not are what you mean. Do you want to save the contents of a card as a PDF?

If so, the "open printing to PDF" command does it all.

Craig
Fjord
Posts: 146
Joined: Sat Dec 06, 2008 6:18 pm

Re: Save web page as PDF?

Post by Fjord »

As the title says: I want to
save a web page as pdf.
I know I can save a card as a pdf.
But the web page is way longer (and wider) than my stack.
--
François
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Save web page as PDF?

Post by Klaus »

Bonjour François,

unfortunately this is not possible with the browser widget.
It even does not support the porperty "the formattedheight", so we cannot use a
workaround like enlarging card and the widget to the correct (formatted) height
and then print the card or somethink like that. :?

I Never used it, but saw the the XBROWSER (revbrowser) external (only available on Mac and Win) supports -> revBrowserPrint
Maybe that will work with open printing to PDF?
Check revbrowser... in the dictionary for more infos about this external

Will add an enhancement request for formattedheight and something like revBrowserPrint of the browser widget.


Best

Klaus
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Save web page as PDF?

Post by Klaus »

Oh, someone already reported this and there is even a workaround for getting the formattedheight usign JavaScript.
Check Panos' reply here: https://quality.livecode.com/show_bug.cgi?id=23302
Maybe that will work for you.
SparkOut
Posts: 2987
Joined: Sun Sep 23, 2007 4:58 pm

Re: Save web page as PDF?

Post by SparkOut »

Post Reply