Page 1 of 1

PDF for Windows different than Mac

Posted: Mon Mar 19, 2018 8:13 pm
by dunbarx
I am building a desktop app where I make a pdf of a card. I develop on a Mac, but publish to Windows 7.

In the IDE, the text in small fields looks fine. When I build a standalone, the text in those same fields looks fine in the Mac standalone, but is truncated in the Windows standalone, as if the margins are all screwy. The rightmost portion of text is cut off.

I can make the fields much wider, I suppose, but then I run into other problems.

Is it a setting somewhere? Is it just the way the LC pdf library builds? Why can't we all just learn to live together?

Craig Newman

Re: PDF for Windows different than Mac

Posted: Mon Mar 19, 2018 9:35 pm
by SparkOut
Just a guess... does it make a difference if you set the 'format for printing" to true on the stack for Windows?

Re: PDF for Windows different than Mac

Posted: Mon Mar 19, 2018 9:50 pm
by dunbarx
Hi.

I will try that. Thanks,

Interestingly, the dictionary states, and particular to Windows:
For the best appearance of printed cards in a stack, make sure the stack is closed (and not in memory), then set the stack's formatForPrinting property to true before opening the stack to print it.
Now I have been doing this for a while, and am not sure how I would set that property in a stack that has not yet been opened in the current session. It is not, I believe, a global LC property.

But your point seems, er, on point. So I will include a line that sets that property before printing, and report back.

Craig

Re: PDF for Windows different than Mac

Posted: Mon Mar 19, 2018 10:07 pm
by SparkOut
Not sure if that's (still) strictly accurate. On a Windows machine you can have a stack open, set the format for printing to true or false and see the font metrics change on the screen. When true the screen view looks like a pig which is most probably why trying to do this offscreen is still relevant.
I could be wrong but I also thought the property was saved with a stack so on creation of an offscreen print stack you could set the format for printing to true and save it. Then when you add text to the offscreen stack it should already be set to render correctly when printed.

Re: PDF for Windows different than Mac

Posted: Tue Mar 20, 2018 12:10 am
by dunbarx
Sparkout.

That may just have done it. I set the property just before printing, and reset it right afterwards, since I was warned that the IDE may look odd with it set. Not sure if that is a windows-only thing or not, but better safe than sorry.

Thank you. I will check tomorrow when a half dozen different machines start printing PDF's.

Craig