PDF Generating Widget

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

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

PDF Generating Widget

Post by trags3 » Tue Jul 17, 2018 10:28 pm

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: 505
Joined: Wed Aug 15, 2007 11:09 pm
Contact:

Re: PDF Generating Widget

Post by capellan » Wed Jul 18, 2018 11:30 pm

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: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: PDF Generating Widget

Post by trags3 » Thu Jul 19, 2018 1:09 am

Thanks Al,
I'll Give it a try.

Tom

DanielAndre
Posts: 1
Joined: Thu Oct 04, 2018 10:14 am

Re: PDF Generating Widget

Post by DanielAndre » Thu Oct 04, 2018 10:23 am

You will need a Matomo (Piwik) Console to create a widget template. The command will tell you to enter the name from the module the gadget should have a place with. I will just utilize the above picked module name "MyWidgetPlugin". It will approach you for a gadget classification also. You can choose any current class.

Regards,
Daniel

Post Reply

Return to “Android Deployment”