PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on December 27, 2017, 03:38:04 PM

Title: PDF complete
Post by: Petrus Vorster on December 27, 2017, 03:38:04 PM
Hi All

I have tried to write PDF documents with code.
Its really easy using Richards pdf class, but there is a standard form we use that is so darn complex and with a million little boxes that it is impossible to write with code.

I was wondering since i can create PDf documents with User-complete fields in Adobe acrobat, of there is a way to programatically open the PDF form and complete the fields from my data?
Or use the form as a type of background in a pdf and just add text on top?

Any ideas would be very helpfull.

Regards- Peter.
Title: Re: PDF complete
Post by: Nathan Durland on January 02, 2018, 08:53:32 PM
Maybe PDFLib (https://www.pdflib.com/products/ (https://www.pdflib.com/products/)), but it is pricey.
Title: Re: PDF complete
Post by: Anand Kumar on January 03, 2018, 12:28:51 AM
This is LGPL license and a pretty extensive library.

https://sourceforge.net/projects/podofo/
Title: Re: PDF complete
Post by: Petrus Vorster on January 03, 2018, 01:40:31 PM
Thanks guys, but i realised i actually answered myself in my question.

I simply used a Print to JPG tool and saved the form as an image.
Then it was very simple.
Richard's PDF class loads the JPg very fast and then i simply prite text on top of it.

Its about 5 times faster than my previous tool.

Thanks again for the advice!

-Peter