PDF Printing - OSX vs Windows

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
jstarkman
Posts: 44
Joined: Wed Mar 16, 2011 4:39 am
Location: Toronto, ON, CANADA

PDF Printing - OSX vs Windows

Post by jstarkman » 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

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: PDF Printing - OSX vs Windows

Post by LCNeil » Thu Apr 23, 2015 1:26 pm

Hi Joel,

LiveCode shouldn't crash on any platform when generating PDFs so this could suggest a bug. If possible, could you file a report with our Quality Control team @ http://quality.runrev.com and we will be able to investigate further.

As an alternative, there is a PDF library for LC called Quartam PDF library which you may want to try out-

http://users.telenet.be/quartam/pdf4rev/download.html

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

Post Reply

Return to “Mac OS”