-
Notifications
You must be signed in to change notification settings - Fork 110
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
How to fill out an Acroform or XFA? #44
Comments
+1. I'd also like to know the answer to this question. |
Been poking around here comparing PDFs with forms filled vs PDFs without forms filled using If you do something like this you'll find you'll fill a field
Though the problem I'm having is that when I write the pdf like this, mac preview appears visually to have not have the field filled in until i click on the field at which point the text is visible. When I used an online tool as an alternative to convert the PDF to a JPG the fields do show up... I suspect another part of the PDF needs to be modified at the same time but I was also poking around other libraries which don't seem to make other changes when form filling? (though maybe theres another calculation that happens on save?) ... anyways I'll keep investigating this or eventually give up and switch to something PDFTK based. |
Adding a bit more ... super weird behavior -- If I manually set the form text content via Mac Preview + save and open the file -- I find the content in @gdelugre Perhaps this is a bug? I really don't know enough about PDF to know if this is behaving as expected or if it is something else. I noticed you tagged this as both |
I'm finding that the above snipped doesn't appear to work. When I I'm personally looking for a pure ruby implementation of something like PDFTK or FillablePDF because both of those require a lot of memory. In FillablePDF's case, it requires Java. |
any updates here? I've same issue and happy for any pointers.. thx |
First read this post. Now basically after chanding the 'V' value you also need to change the AppearanceStream, and Origami does that automatically to you when you set: pdf.Catalog.AcroForm.NeedAppearances=true |
Hi, First off, thanks for an awesome library! I was reading through the docs and examples, but I couldn't figure out if it's possible to fill out an XFA or Acroform using Origami. I figured out how to extract XFA data from a pdf, but I'm still not sure how to fill one out. Can you point me in the right direction? Thanks!
The text was updated successfully, but these errors were encountered: