Creating a PDF of your stack is the simplest way to then print the cards of a stack.
Creating a PDF[]
First of all you must close the stack containing the cards to print. Then set the formatForPrinting of that stack to false. Its important that you set that property to false, even if its already false. This will trigger the font system.
Now you can open the card and manipulate it to create your pages. Every card of the stack can be a page of your PDF. The best way is to create cards in the correct printing order, this way all cards will be printed in the correct order.
Another important element to set the printing system:
set the printMargins to "0,0,0,0" set the printPaperSize to the width of this stack & comma & the height of this stack
Changing printMargins and printPaperSize may create different effects.
Before printing it's convenient to set the current card to the first card, otherwise the first card will be the current card:
go to card 1
now you can launch the print command
set the formatForPrinting of this stack to true open printing to pdf "./myprint.pdf" print this stack close printing
If you want to print sonly some cards of the stack, you can write:
set the formatForPrinting of this stack to true open printing to pdf "./myprint.pdf" print card 1 print card 3 print card 5 close printing
You can print only visible stacks.