Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternatives to PDFTk #20

Open
joffemd opened this issue Mar 5, 2016 · 8 comments
Open

Alternatives to PDFTk #20

joffemd opened this issue Mar 5, 2016 · 8 comments

Comments

@joffemd
Copy link

joffemd commented Mar 5, 2016

There may be additional or easier to use functionality in PDFBox and Poppler.

Apache PDFBox: http://pdfbox.apache.org/

Poppler: https://people.freedesktop.org/~ajohnson/docs/poppler-glib/PopplerFormField.html (this is the specific page discussing form functionality)

@bengolder
Copy link
Contributor

It looks like pdftk adds CLI functionality by wrapping an open source Java library called iText. The author of iText mentions this in a comment on a StackOverflow question, and it was also revealed in some error messages I received while testing with pdftk (lowagie is the last name of the author of iText, Bruno Lowagie).

Here are the iText API docs. And an example addressing fdf & xfdf forms.

In my more recent tests, I've run into some trouble with Unicode handling in pdftk. It seems that if pdftk has limits on functionality that are troublesome to us, we may want to consider interfacing more directly with iText or using an alternative.

@bengolder
Copy link
Contributor

Mcpdf fixes PDFtk's unicode issues, so you can write Łódź into your forms. Mcpdf aims to become a drop-in replacement for PDFtk.

@stvnrlly
Copy link
Contributor

The stapler PDF tool doesn't yet support form-filling, but has it on the roadmap.

@bengolder
Copy link
Contributor

Just tried mcpdf and unfortunately it does not have sufficient commands to be useful to the project.

@bengolder
Copy link
Contributor

I noticed a few python libraries that might be able to work as substitutes.

@bengolder
Copy link
Contributor

@rogerawad is interested trying to write an iText wrapper, and this looks like a viable approach, as iText has lots of great examples. Moving that attempt to #64

@danielleitcs
Copy link

Users on IT Central Station interested in alternatives to solutions like PDFTk also read reviews for Windward. This user in particular writes in his review that with this tool, "PDF and Word reports are so easy to create. We can develop any report at least five times faster." You can read the rest of his review here.

@bengolder
Copy link
Contributor

@danielleitcs thanks for the suggestion, but there's some criteria I should clarify. Viable alternatives would:

  • Have the ability to extract fields from and fill out existing interactive pdf forms. The windward review was focused on PDF authoring of reports, rather than editing existing forms.
  • Be zero-cost, open source, and have a license that allows us to easily incorporate it into an open source project. Windward appears to be a paid, proprietary software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants