How avoïd empty space before first page of print to pdf exp

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

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

How avoïd empty space before first page of print to pdf exp

Post by jmburnod » Fri Jun 20, 2014 5:48 pm

Hi All,

I use print to pdf to export a story illustrated. It works well except an empty space before the first page.
I guess I dont understand a stuff.

Code: Select all

   set the printmargins to "18,18,18,18" 
   set the printPaperOrientation to "landscape"
   set the printRowsFirst to "true"
   set the printCardBorders to "false"
   set the printGutters to "18,18"
   set the printScale to 0.8
Is there someone who can light me ?

Thanks
Jean-Marc
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How avoïd empty space before first page of print to pdf

Post by jacque » Fri Jun 20, 2014 8:49 pm

If the content you are printing is longer than what will fit on the page, LC will push it down to page 2. Try a smaller printscale, or a top printmargin of 0.

Remember that the printer has its own printable area, and there is usually about half an inch at the top where the printer cannot lay ink. The printer's top margin is added to the printmargin you specify, so a top margin of 18 points is really like 3/4 inch.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: How avoïd empty space before first page of print to pdf

Post by jmburnod » Sat Jun 21, 2014 8:36 am

Hi Jacques,
Thanks again for your help
I thought that was something wrong with PrintTitle
The problem happens only on the first page.
I have to verify my export scripts :roll:
Best
Jean-Marc
https://alternatic.ch

Post Reply