-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Enable support for AcroForms in viewer #1459
Comments
Related issue #1313 |
Past issue where forms landed #749 Printing support might not be the only blocker, users might request the "save as ..." functionality? From printing point of view, currently we are keeping only number of pages (20?), there might be a case when we will not be able to print whole document / fields. |
Thanks a lot for raising this issues! For the "Save as" issue: There seems to be no real API to store data on the client. We could implement this functionality by adding some functions to the extension code, but I'm afraid that might be a security issue. What do you think about proposing a new WebAPI? To store some data on the computer, the page has to require some permission from the user first (like getting the GPS data) and once the user accepts this, can choose a location to store the files. |
We can print now (at least in Firefox). I think we should enable the form support now for the Firefox Addon at least. For saving the file:
|
Is there any way to fill in forms? I can see them, but there are no input elements displayed. Is this bug for working on this feature or is that a new bug? And... is somebody actually working on a form filling viewer interface? |
Forms were put on hold for now see https://groups.google.com/forum/#!topic/mozilla.dev.pdf-js/XSAD98rYW5I |
Those statistics don’t account for the upcoming tax season. :-) |
👍 for AcroForm/XFA support How about embedding the form data in the downloadable pdf? |
That's write, in the tax season this percentage will increase considerably. Somebody here make an excelente work, maybe somebody can merge his changes to the pdfjs. http://www.codeproject.com/Articles/466362/Blend-PDF-with-HTML |
I'm a bit confused by the previous thread comments. This seems like it is still an issue. I just downloaded the most recent stable and cannot fill out fields in a PDF form. Is this still being worked on or has it been tabled? |
We have partial AcroForms support, but indeed it's far from complete. We have seen telemetry results and asked users, but there was not much demand for AcroForms support. If someone wants to work on this, feel free to so and submit a pull request for review though! |
Thanks for the quick response. Ill keep posted. |
👍 for AcroForms and or XFA. Not sure why it's not showing up in telemetry data. Seems like a fairly common use case. Pretty much every federal .gov (and most state gov) pdf I've seen have fillable fields. @timvandermeij any idea how many dev hours it might take to ship something sort of usable? Like, are the input primitives and datastructs mapped, leaving mostly UI work? Or, is it more complicated than that? It might make sense for my team to work on it, if there is a quick win. |
Interesting, support is actually further developed than I realized. As you can see below from the AcroForm example. That said, still some issues. For example block input is currently unsupported XFA is probably a whole new kettle of fish and more complicated to support. For now however, solid a solid AcroForm implementation might be a nice win |
@1ec5 good point on preview. While we making comparisons, it's interesting to see Chrome/Blink perform really well. Block letter support and proper color/shading. I suspect that might be because Chrome is using an Adobe plugin rather than their own rendering library? |
It's really good to hear that you are interested in further developing this feature. I think the best implementation reference would be section 8.6 from the PDF specification: https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf#page=671&zoom=auto,-306,313
If you would like help with this, you can always reach us on IRC (irc.mozilla.org, #pdfjs) or ask here. |
Also cleaned up some styling code. For mozilla#1459
For what it's worth, I've had a user of PDFy request this functionality for a registration form. |
Somewhat random, and possibly off-topic question: what about adding support for more of the properties of widget annotations? As it is, the AcroForms sample demonstrates how to add basic fillable form functionality when rehosting pdf.js, but anything beyond the basics isn't really possible because the annotations returned from getAnnotations() are missing properties (sometimes vital things, like the options in a choice control.) While it would require a pretty robust solution in order to offer fillable forms in the viewer (ie: to users), simply expanding the data available via the public APIs would be useful to people like me who are rehosting/expanding on it (based on the AcroForms sample), and would also chip away at the core work that would need to be done to support forms completely. ..If that makes sense. My schedule for the next while is a bit dicey, but I might be available to work on it. I also noticed there's a fork of pdf.js here: https://github.com/mainegreen/pdf.js that has a lot of that functionality already, but it's a few hundred commits behind and the current version crashes on choice controls. Thoughts? |
This may be a chicken-egg-problem. People will download PDFs instead of opening them in Fx because they cannot edit them, or websites will force-download to work around this issue with browser sniffing. Since browsers are retiring NPAPI and thus the Acrobat Plugin next year, this method will only advance. Additionally, a 2% usage figure is huge considering the overall amount of Fx users, and does not take into account further uses of pdf.js as well as people that disabled pdf.js in favor of the Acrobat plugin, which is highly likely for people having to deal with forms in PDFs on a regular basis. Also, more up-to-date information would be nice. This issue should be top priority right now since (almost) all other major browsers (relative to market share) do support forms in one form or the other, and NPAPI plugins will be deprecated. Furthermore, some OSes do not support forms in PDF natively, leaving an opportunity for a unique selling point. |
I think some problem can be fixed if you go and watch to the site named www.smarttest.kr. |
Any news / status updates on this issue? :) |
Not yet. There is an open PR for some of this functionality, but it is a work in progress. |
Closing as duplicate of #7613, in which we now track interactive forms (AcroForms) support. Parts of this feature have already been merged and the other parts are tracked there. |
There is some code for AcroForms under examples, but it's not used within the viewer due to a bug in the Firefox printing codebase that is fixed in Firefox Aurora 13. See https://bugzilla.mozilla.org/show_bug.cgi?id=703171#c5.
The text was updated successfully, but these errors were encountered: