PDF Printing - OSX vs Windows
Posted: Tue Apr 14, 2015 7:36 pm
Hi,
I'm working on an application that prints cards to PDF. It is planned for use on both OSX and Windows. The printing routine basically populates a series of 4 cards with room info on them. It populates card1, prints to PDF, then print break, then does the same for 3 other cards. This process then loops, generating a single PDF for multiple rooms.
The Issue:
For some reason, when printing cards on OSX, it only handles about 50 or 60 rooms (200 - 240 cards) and then crashes. A PDF file for 48 rooms is about 50 MB. On Windows, the same app (not a single change), can handle about 900 rooms (3600 cards) rooms before crashing, and results in a file size of about 100 MB, or about 1/7 the size of the PDF generated under OSX.
Systems: Windows 7 Pro vs OSX Yosemite (brand new MBP with 16G of RAM).
1. Why is the app crashing at all?
2. Why at different points? Is it strictly a RAM thing, or does this represent a memory leak?
3. Why are the PDF file sizes so different? Is there any better PDF library for Livecode that will allow me to optimize the PDF generation under OSX ?
Thanks,
Joel
I'm working on an application that prints cards to PDF. It is planned for use on both OSX and Windows. The printing routine basically populates a series of 4 cards with room info on them. It populates card1, prints to PDF, then print break, then does the same for 3 other cards. This process then loops, generating a single PDF for multiple rooms.
The Issue:
For some reason, when printing cards on OSX, it only handles about 50 or 60 rooms (200 - 240 cards) and then crashes. A PDF file for 48 rooms is about 50 MB. On Windows, the same app (not a single change), can handle about 900 rooms (3600 cards) rooms before crashing, and results in a file size of about 100 MB, or about 1/7 the size of the PDF generated under OSX.
Systems: Windows 7 Pro vs OSX Yosemite (brand new MBP with 16G of RAM).
1. Why is the app crashing at all?
2. Why at different points? Is it strictly a RAM thing, or does this represent a memory leak?
3. Why are the PDF file sizes so different? Is there any better PDF library for Livecode that will allow me to optimize the PDF generation under OSX ?
Thanks,
Joel