Bypassing the 5Mb limit for PDFs on Android

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Weaksafety
Posts: 17
Joined: Mon Aug 12, 2013 5:20 pm

Bypassing the 5Mb limit for PDFs on Android

Post by Weaksafety » Wed Jun 25, 2014 2:08 pm

Hi,

I'm trying to print some cards of my stack to a pdf, which is basically an illustrated book (lots of images on lots of pages).

The aim is to send via email a custom pdf that only has the pages that the user selects on the mobile app.

There's a problem: Android Mail only supports attachments up to 5mb, and I fear this limit will almost always be surpassed if the user selects more than a few pages.

Is there any kind of workaround to this?


Thanks a million! :D :D

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Bypassing the 5Mb limit for PDFs on Android

Post by Simon » Wed Jun 25, 2014 6:28 pm

I just tried zipping a pdf but it looks like pdf compression is already there so it didn't help.
You can try it on a liveCode created pdf maybe the compression isn't already included.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

newtronsols
Posts: 192
Joined: Tue Mar 11, 2014 12:57 pm

Re: Bypassing the 5Mb limit for PDFs on Android

Post by newtronsols » Wed Jun 25, 2014 6:33 pm

what are you using for pdf on Android?

Klaus
Posts: 12202
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Bypassing the 5Mb limit for PDFs on Android

Post by Klaus » Wed Jun 25, 2014 6:42 pm

newtronsols wrote:what are you using for pdf on Android?
I'm trying to print some cards of my stack to a pdf
So he's obviously using Livecode for this :D

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Bypassing the 5Mb limit for PDFs on Android

Post by Simon » Wed Jun 25, 2014 6:49 pm

Oh I see, "open printing to pdf" isn't supported on Android.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Weaksafety
Posts: 17
Joined: Mon Aug 12, 2013 5:20 pm

Re: Bypassing the 5Mb limit for PDFs on Android

Post by Weaksafety » Wed Jun 25, 2014 10:55 pm

Oh. I hadn't tried to deploy the app to my tablet yet, I see from the dictionary that printing to pdf is indeed not possible from android.

It appears that Quartam PDF Library can indeed support Android, I'll give it a try - However even if that works, is there any smart way to get around the limit? Possibly a server application that composes and sends the pdf?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Bypassing the 5Mb limit for PDFs on Android

Post by Simon » Wed Jun 25, 2014 11:20 pm

I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”