-
Notifications
You must be signed in to change notification settings - Fork 10k
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
PDF doesn't display anything, complains about my pdf viewer #1773
Comments
Interesting messages from console:
|
i think this type of document has some input fields - pdf works great in adobe reader |
From my experience that message means that the file is not an old-fashioned AcroForms PDF, but actually an XFA form created by Adobe's LiveCycle Designer. Most PDF renderers outside of Acrobat can't render these XFA forms. To get pdf.js to render this type of form, XFA standard support would have to be implemented. |
I have just had the same problem occur. It would be nice if pdf.js could at least show a printable version of the form. This is mentioned in the wiki but there doesn't seem to be any recent updates. |
Unfortunately, this PDF is no longer available and there's no new version. This document http://www.cic.gc.ca/english/pdf/kits/forms/IMM5257E.PDF seems to be another example. |
Solved!! I updated my Adobe Reader to the latest and greatest version using Chrome and getting the same message. |
Apparently Adobe found a way to screw the nice standard "PDF". :( |
After upgrading to latest, which presumably would install the necessary plugins, these horrid XFA pdfs still don't load in Safari. My heartfelt wishes for a fast and painful death to Adobe. |
The reason is simple. You need to launch this in the original Acrobat Adobe Reader, not 'in-browser'. 'In-browser' pdf reading is often a plugin or is 3th party rendering and does not support interactive elements. So the simple fix is, download locally the pdf and open it with the actual Acrobat Adobe Reader and not in browser or with another reader than the Adobe's one. |
Sadly these XFA form PDFs can only be opened and printed from Adobe Reader. My workaround is to use this printer driver on macOS https://github.com/emilianbold/PDFwriter and get Adobe to print to it. This produces a normal PDF that pdf.js / Preview can open. |
I have found a copy of the original document at https://web.archive.org/web/20121105185256if_/http://www.northeastern.edu/hrm/pdfs/resources/benefits/MBTA-pretax-form-July2012.pdf. |
The forms appear to be working well now. @calixteman do you want to add them to reftests? |
Add PDFs from #1773 to the reftests
* commit '62808cb3c232ade45cc19495d68a70410daf1682': (168 commits) Fix the remaining ESLint `operator-assignment` errors Enable the ESLint `operator-assignment` rule Remove the `version` field from the `package.json` file XFA - Don't use system font when a font is not embeded but there is a substitution - always use a font coming from pdf.js when there is one: this way we don't use a system font which could looks wrong. [api-minor] Support accessing both the original and modified PDF fingerprint Don't attempt to structure clone unsupported types with workers disabled Replace `instanceof Object` with `typeof` checks XFA - Don't fill when the fill element is not visible (bug 1718735) XFA - Remove empty pages - it aims to fix mozilla#13583; - fix the switch to breakBefore target; - force the layout of an unsplittable element on an empty page; - don't fail when there is horizontal overflow (except in lr-tb); - handle correctly overflow in the same content area (bug 1717805, bug 1717668); - fix a typo in radial gradient first argument. Add PDFs from mozilla#1773 to the reftests XFA - Support non-embedded fonts without a Widths entry - some pdf use some fonts which are not embedded or they don't have any width array or don't have any css info (e.g. for standard fonts or Arial). - so add widths arrays for Liberation fonts in order to compute the ones for other fonts in using scale factors array. XFA - Choice list has no selected value by default XFA - Implement aspect property on image element - it aims to fix issue mozilla#13634; - move some img-related functions in test/drivers.js in order to have images in xfa reftests. XFA - Fix width of a container with lr-tb layout (bug 1718037) XFA - Remove quotes of font name in xhtml Add non-PRODUCTION/TESTING overflow `assert`s to various string helper-functions (issue 6759) XFA - Replace deprecated break element (bug 1718053) - the break element has been deprecated in XFA 2.4 but some old documents can use it, so replace it with one (or more) of its possible substitutions: - breakBefore; - breakAfter; - overflow. Add a `OnProgressParameters` typedef to reduce (some) duplication in `src/display/api.js` Use the `RefProxy` typedef in more JSDoc comments in `src/display/api.js` Update l10n files ... # Conflicts: # src/display/canvas.js
This PDF http://www.northeastern.edu/hrm/pdfs/resources/benefits/MBTA-pretax-form-July2012.pdf produces the following error message as the contents of the pdf:
Neither Evince nor OS X Preview works either.
The text was updated successfully, but these errors were encountered: