PDF Generating Widget

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

PDF Generating Widget

Post by trags3 »

Hi
Is it possible to write a widget that can generate a PDF file from a card. That way, if I understand widgets correctly one could generate a PDF file on the Android Platform.
I have a need for this capability but I don't code in C.

Thanks Tom
capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: PDF Generating Widget

Post by capellan »

Hi Tom,

Using Quartam PDF Library, you could generate a PDF from LiveCode:
http://www.quartam.com/

In 2011, Jan Schenkel published this Library as open source under
a dual license: viewtopic.php?t=7315

On Android, I could save vector graphics as adobe ilustrator 5, pdf and svg files
from a LiveCode stack into the Android Documents folder, so it should be possible
to save a PDF created from a card.

Al
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: PDF Generating Widget

Post by trags3 »

Thanks Al,
I'll Give it a try.

Tom
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: PDF Generating Widget

Post by trags3 »

Hi I am a little confused about which version of Quartem I need to generate a PDF of a single card.
The card has a couple of images, (Logos) and the rest is text fields. I have one signature in a cursive font.
Thanks for the help,
Tom
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: PDF Generating Widget

Post by trags3 »

My App is a commercial product..
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: PDF Generating Widget

Post by Klaus »

trags3 wrote: Fri Mar 15, 2019 2:47 pmMy App is a commercial product...
Then you need to buy a license from Quartam, see the "Free/Open Source" page.

Since I have been working with the PDF Lib in the past, I doubt it will fit your needs due to its many limitation like:
...
Font support is limited to the standard set (Arial/Helvetica, Times, Courier, Symbol and Zapf Dingbats)
Unicode and encryption are not yet supported
...
And it has not beeen updated since 2012, not a good sign, too. 8)
trags3
Posts: 434
Joined: Wed Apr 09, 2014 1:58 am

Re: PDF Generating Widget

Post by trags3 »

Than You Klaus,
Does the software support images like a simple logo?
Tom
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: PDF Generating Widget

Post by Klaus »

Hi Tom,

please read the website: http://www.quartam.com/ -> Features 8)


Best

Klaus
Post Reply