pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
289 stars 114 forks source link

Executing on Heroku #25

Closed infos closed 8 years ago

infos commented 8 years ago

Hello - Your git is a major time saver from using iText. I am using it to fill PDF forms with data from a document in mongo db. However, I am running into issues when I deploy this to Heroku.

I am able to execute this hardcoded command and create the filled pdf on heroku bash. 'pdftk in.pdf fill_form data145.fdf output filledout.pdf flatten'

But it does not work within my node api. I get a 'Process exited with status 143'.

I wanted to see if you were able to deploy your app to heroku and create pdfs.

Thanks a bunch

whitef0x0 commented 8 years ago

Does it work locally for you?

infos commented 8 years ago

I should have closed this. This works in heroku for us now. One of my developers fixed it. The PATH variable was incorrectly set.

aphavichitr commented 4 years ago

@infos how did you get this to run on heroku? I've added this buildpack to heroku: https://github.com/shake-apps/heroku-buildpack-pdftk and I'm not getting any errors when running pdfFiller.fillForm, however no file gets created after invoking that method. This works perfectly on my local machine, so there must be something that I missed.