Print to PDF: Right side of text is truncated

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

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

Post by richmond62 » Sat Jan 06, 2018 2:15 pm

You can do this:
Printy2.png
and get this:
daftPages.png
which is a bit SILLY because LiveCode doesn't work out the pagination.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

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

Post by richmond62 » Sat Jan 06, 2018 9:24 pm

Effectively useless:
useless.jpg

ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

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

Post by ittarter » Sun Jan 07, 2018 12:36 am

Wow, that is unpleasant to even look at.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7236
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » 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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

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

Post by ittarter » Wed Jan 10, 2018 12:18 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9836
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Wed Jan 10, 2018 6:54 pm

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/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7236
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

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

Post by jacque » Wed Jan 10, 2018 11:23 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”