Saving a 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
arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Saving a PDF

Post by arkstar » Sat Feb 20, 2010 3:57 pm

Hi, I am quite the newbie... I have been able to print a stack to a PDF. Coming from the Filemaker world, it is sooo much faster!
How do I specify a filename programatically bypassing the save dialog box?

Thanks!
Rob Glassman
ArkStar

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Saving a PDF

Post by Mark » Mon Feb 22, 2010 12:23 pm

Hello arkstar,

Sorry to address you like arkstar, but I have no clue about your real name.

There are several ways to get a PDF without a dialog. You could select a PDF printer driver by script and print directly without using the open printing command or the answer printer command.

On Mac OS X, you can export snapshots as PNG and convert them to PDF. You could do the same with RTF, if your print doesn't include pictures.

You might even export snapshots and use an on-line service to convert the pictures to PDF.

I believe that a native solution is being worked on. If you have the Enterprise edition, you should be aware of that.

All the best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: Saving a PDF

Post by arkstar » Wed Feb 24, 2010 4:16 am

HI Mark,

firstly, my name is Rob. Thanks for your reply. I thought that the PDF printing was native in 4.5. I guess there are still bugs....

Thanks again!
Rob Glassman
ArkStar

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Saving a PDF

Post by Mark » Wed Feb 24, 2010 1:18 pm

Rob,

"I believe that a native solution is being worked on. If you have the Enterprise edition, you should be aware of that."

Please, note that information about new features are only discussed on the Enterprise list and are non-public.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: Saving a PDF

Post by Janschenkel » Fri Feb 26, 2010 2:30 pm

PDF printing is part of the upcoming revEnterprise 4.5 (so not revStudio or revMedia) and there you can specify a filename without user intervention.
If you have rev 2.9 or higher, on MacOSX, you can also set the printerOutput property to print to a PDF file of your choice.

<shameless plug>
And there's also Quartam PDF Library, if you prefer to create PDF files from script, placing each item exactly where you want it to go at far higher resolution.
</shameless plug>

Cheers,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply