PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: PDF complete  (Read 168 times)

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 368
PDF complete
« 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.
Logged

Nathan Durland

  • FireFly3 Registered User
  • Junior FireFly Member
  • *
  • Posts: 83
Re: PDF complete
« Reply #1 on: January 02, 2018, 08:53:32 PM »

Maybe PDFLib (https://www.pdflib.com/products/), but it is pricey.
Logged

Anand Kumar

  • FireFly3 Registered User
  • Little Newbie FireFly
  • *
  • Posts: 5
  • Senior Scientist
Re: PDF complete
« Reply #2 on: January 03, 2018, 12:28:51 AM »

This is LGPL license and a pretty extensive library.

https://sourceforge.net/projects/podofo/
Logged
An&

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 368
Re: PDF complete
« Reply #3 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
Logged