Page 2 of 2

Re: Print to PDF: Right side of text is truncated

Posted: Sat Jan 06, 2018 2:15 pm
by richmond62
You can do this:
Printy2.png
and get this:
daftPages.png
which is a bit SILLY because LiveCode doesn't work out the pagination.

Re: Print to PDF: Right side of text is truncated

Posted: Sat Jan 06, 2018 9:24 pm
by richmond62
Effectively useless:
useless.jpg

Re: Print to PDF: Right side of text is truncated

Posted: Sun Jan 07, 2018 12:36 am
by ittarter
Wow, that is unpleasant to even look at.

Re: Print to PDF: Right side of text is truncated

Posted: Sun Jan 07, 2018 5:36 pm
by jacque
Did you set up the printing parameters? It looks like you need to at least set the printmargins.

Re: Print to PDF: Right side of text is truncated

Posted: Wed Jan 10, 2018 12:18 pm
by ittarter
jacque wrote: Sun Jan 07, 2018 5:36 pm Did you set up the printing parameters? It looks like you need to at least set the printmargins.
That wouldn't work for my situation because I'm using revPrintText, not revPrintField.

Anyway, I think I figured out the cause of the truncating, which seems to be avoided if I set the textsize of the field to what I want, instead of messing around with the htmltext of the field.

Re: Print to PDF: Right side of text is truncated

Posted: Wed Jan 10, 2018 6:54 pm
by FourthWorld
ittarter wrote: Wed Jan 10, 2018 12:18 pm Anyway, I think I figured out the cause of the truncating, which seems to be avoided if I set the textsize of the field to what I want, instead of messing around with the htmltext of the field.
Sounds like a bug to me. You might consider reporting that:
http://quality.livecode.com/

Re: Print to PDF: Right side of text is truncated

Posted: Wed Jan 10, 2018 11:23 pm
by jacque
RevPrintText applies the parameters of a field you specify, but I think it still prints using the printer and LC default page printing properties. In other words, control of the page settings is still tied to the printer and LC defaults. The default margins in LC are 1-inch per edge. If you set the printmargins to something else, revPrintText should respect those.

It's been a long time since I used revPrintText but I don't think it's a bug, I think it's a result of not setting the printer defaults before applying the revPrintText command. If setting printmargins doesn't work, then it's a bug.