Export card as PDF ?[solved]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jean-Paul
Posts: 13
Joined: Wed Jun 05, 2024 5:19 pm
Contact:

Export card as PDF ?[solved]

Post by Jean-Paul »

Hi to all,

Is it possible in LC to export several cards in a PDF file ?

Regards, J-P.
Last edited by Jean-Paul on Tue Jun 11, 2024 3:35 pm, edited 1 time in total.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Export card as PDF ?

Post by Klaus »

Bonjour Jean-Paul,

yes, we can "open pringint fo PDF ..."
Example to "export" card 1 of your stack to a PDF file:

Code: Select all

...
## Here you can let the user select a filename for the PDF...
## answer file "Select a filename for the PDF file:"...
## I will use a static filename on the desktop for this example:
put specialfolderpath("desktop") & "/card1_of_my_stack.pdf" into tOutputfile
open printing to pdf tOutputfile
print cd 1
## Or use a repeat loop to print more than one card to a PDF file...
## Done:
close printing
...
Check "open printing to PDF" in the dictionary to see more options for this command.

Best

Klaus
Jean-Paul
Posts: 13
Joined: Wed Jun 05, 2024 5:19 pm
Contact:

Re: Export card as PDF ?

Post by Jean-Paul »

Wahou, thank you very much Klaus, I'll check the dictionary ;-)
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Export card as PDF ?

Post by bn »

Hi Jean-Paul,

It is also worth to have a look at the User Guide, accessible from the Help Menu.
Search for printing.
At around page 385 there is a section for card printing. (LC version 10.0.0 dp 8)
Printing has so many options it may give you an idea how to tweak your printer job.

Kind regards
Bernd
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Export card as PDF ?

Post by richmond62 »

"open pringint fo PDF ..."
Klaus?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Export card as PDF ?

Post by Klaus »

WHAT?
Do you want your money back? 8)
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Export card as PDF ?

Post by richmond62 »

kno I dont wun my munny bak. 8)
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Export card as PDF ?

Post by richmond62 »

Most operating systems can now convert anything to PDF via the print dialogue.
Post Reply