Printing Cards to PDF

Nakia Brewer Nakia.Brewer at westrac.com.au
Tue Jun 24 05:31:12 EDT 2014


FWIW I changed the loop to just print card 2 twice and am still seeing the error.

It seems some sort of automatic scaling is happening after the first print or perhaps after the first print break...

Sent from my iPhone

> On 24 Jun 2014, at 6:57 pm, "Nakia Brewer" <Nakia.Brewer at westrac.com.au> wrote:
>
> Hi,
>
> I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file.
> This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2).
>
> When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly.....
> (Happy to send someone the generated PDF).
>
> I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure
> (Weird that card 2 prints correct when its the same size etc as card 1)
>
> I appreciate any ideas....
>
> anyway code below.
>
> put ("Print" & return & "Print2") into tCardsToPrint
>   -- Lock screen so user doesn't see card change
>   lock screen
>   open stack "Printing"
>   open printing to pdf tFilePath
>   if the result is "Cancel" then exit saveInspection
>   repeat with x = 1 to the number of lines of tCardsToPrint
>      print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700
>      print break
>   end repeat
>   close printing
>   close stack "Printing"
>   send resetForm to me in 0 milliseconds
>   send buildPendingTasks to this stack in 0 milliseconds
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.




More information about the use-livecode mailing list