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

Simple API for generating FDF files #12

Open
alexanderkjeldaas opened this issue Jan 2, 2015 · 5 comments
Open

Simple API for generating FDF files #12

alexanderkjeldaas opened this issue Jan 2, 2015 · 5 comments

Comments

@alexanderkjeldaas
Copy link

As I understand it, a FDF file is a very simple PDF file with one object containing key/value pairs.

I'm really after populating PDF forms, where generating FDF files is one aspect.

@Yuras
Copy link
Owner

Yuras commented Jan 6, 2015

Hmm... That is the first time I hear about FDF.

Do you have examples of FDF files? Any ideas how the API should look like?

(NOTE: described in PDF Reference, section 12.7.7.2)

@alexanderkjeldaas
Copy link
Author

It's the end of the year, and I needed to file some paperwork. PDF forms use FDF.

I used pdftk to create FDF files from official filing documents. Forms - the tax authority in Sweden has lots of them!

http://www.skatteverket.se/funktioner/sok/sok.4.64a656d113f4c7597011b3.html?query=form&searchTab=0

@Yuras
Copy link
Owner

Yuras commented Jan 11, 2015

@alexanderkjeldaas I downloaded few PDF files from your URL, and they have PDF forms. But I have no idea what to do with them. How to produce FDF file from PDF form? How FDF files are used? What software can be used to read them? What "simple API" you means? Sorry so so many questions, but I really have no idea what FDF file are for.

@alexanderkjeldaas
Copy link
Author

I think the following link describes it pretty well.

http://www.myown1.com/linux/pdf_formfill.shtml

@Yuras
Copy link
Owner

Yuras commented Jan 14, 2015

@alexanderkjeldaas Thank you, now it makes more sense.

Will simple "writeFDF :: Handle -> HashMap Text (Object ()) -> IO ()" function work for you? It requires handle to write to and a map from field name to PDF object.

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

2 participants