Hi folks,

Sadly, I have no Douglas Adams anecdotes, other than the joy of reading his 
books and listening in my bedsit to the first Hitchhikers broadcast  in 1978.

However, I do have a good old fashioned LiveCode question...

I have a card featuring closely packed label fields (arial) and other controls. 
 The only ‘product’ of the app was for some time capturing a PNG to the 
clipboard.  Then a user requested a save to PDF feature.  I thought this would 
be quick and easy, only to discover that the PDF rendered had many missing 
words in the label fields.  The text missing looks pretty random, not just 
cropped at left or right of the field.  It is also consistent, so same words 
missing on each execution, and weirdly also only whole words, as far as I can 
see.

The code I have previously had success with on a card with very similarly 
tightly packed  controls is

put the defaultfolder into toldfold

set the cursor to busy

set the defaultfolder to it

set the printPaperOrientation to "landscape"

put the printPaperRectangle into trect

set the cursor to busy

put the "TSI Scores " & the long date & ".pdf" into tfilename

open printing to pdf tfilename

if the result is "Cancel" then exit mouseup

print card 1 into 8,8,830,540

print break

print card 2 into 8,8,830,540

close printing -- send group of cards to printer

set the defaultfolder to toldfold



The only difference I can see is that the problem only arises with respect to 
the card containing label fields.  The above works fine with very tightly 
packed buttons with labels.  

In the end, to get it done in time for a meeting,  I kludged a temporary page 
containing a snapshot of the card and printed to PDF from that.  Not really 
what I wanted.  I will probably have some time to wrestle with this next month 
- so is there another solution to the problem, or am I just expecting too much 
of the print to PDF rendering process?

Cheers

David G
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to