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: 132
Joined: Sat Dec 06, 2008 6:18 pm
Location: France

Save web page as PDF?

Post by Fjord » Fri Jan 27, 2023 9:13 pm

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: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Save web page as PDF?

Post by dunbarx » Fri Jan 27, 2023 11:33 pm

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: 132
Joined: Sat Dec 06, 2008 6:18 pm
Location: France

Re: Save web page as PDF?

Post by Fjord » Sat Jan 28, 2023 7:23 am

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: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Save web page as PDF?

Post by Klaus » Sat Jan 28, 2023 12:16 pm

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: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Save web page as PDF?

Post by Klaus » Sat Jan 28, 2023 12:20 pm

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: 2839
Joined: Sun Sep 23, 2007 4:58 pm

Re: Save web page as PDF?

Post by SparkOut » Sat Jan 28, 2023 1:18 pm


Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”