Page 1 of 1

Printing to pdf resolution

Posted: Sun Mar 26, 2023 11:10 am
by geo
Hello
In my app I have created a substack "print" (size 1190 x 1684) with a card "crdPDF" which contains information that I need to print
This is for the substack "print"

Code: Select all

on preOpenStack
   set the fullscreenmode of this stack to "noScale"
end preOpenStack

Code: Select all

open printing to pdf tPDFPath
   print card "crdPDF" of stack "print" into 0,0,595,842
   set the printScale to 0.5 
   close printing
this is the code i use for printing

When I run it from the IDE on my mac it outputs a correct pdf with the resolution 595 × 842
When I run it from the ipad it outputs a pdf with the resolution 612 × 792 => not correct

Anybody knows what the resolution problem could be?

Re: Printing to pdf resolution

Posted: Sun Mar 26, 2023 6:03 pm
by jacque
Try setting the printscale before the print command.

Re: Printing to pdf resolution

Posted: Sun Mar 26, 2023 6:38 pm
by geo
Set the printscale before the print command, but it's still the same

i found out that 612 x 792 is us letter size
don't have a clue why it would output that size
I need A4

Re: Printing to pdf resolution

Posted: Sun Mar 26, 2023 6:45 pm
by Klaus
Try to also set -> the printPaperSize

Code: Select all

...
## Do this before -> open printing to pdf...:
set the printPaperSize to 595,842
open printing to pdf tPDFPath
set the printScale to 0.5 
print card "crdPDF" of stack "print" into 0,0,595,842
close printing
...

Re: Printing to pdf resolution

Posted: Mon Mar 27, 2023 3:47 am
by geo
Thanks Klaus

Now it works

Re: Printing to pdf resolution

Posted: Mon Mar 27, 2023 8:53 am
by Klaus
Grrrrrrrrrreat! :-)