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

Can't display N-400 form #2348

Closed
cbiesinger opened this issue Nov 6, 2012 · 10 comments
Closed

Can't display N-400 form #2348

cbiesinger opened this issue Nov 6, 2012 · 10 comments
Labels

Comments

@cbiesinger
Copy link

http://www.uscis.gov/files/form/n-400.pdf

This is with the pdf.js from Firefox Nightly 19.0a1 (2012-11-02). I just get a "Please wait..." message:

If this message is not eventually replaced by the proper contents of the document, your PDF
viewer may not be able to display this type of document

@gigaherz
Copy link
Contributor

gigaherz commented Nov 7, 2012

IIRC, PDF.js doesn't support rendering of XFA forms layers. There are other related issues but I don't remember their numbers.

@waddlesplash
Copy link
Contributor

Related: #1452, #1459, #2135.
#2135 was closed because it was dup of #1459, and this is too.
Close?

@yurydelendik
Copy link
Contributor

It's a dup of #1824

The JavaScript inside this document explicitly checks in Adobe Reader is installed and if it's specific version. Otherwise it's how PDF document looks like. Also, it's XFA and not AcroForms.

@waddlesplash
Copy link
Contributor

Will you eventually support JS in PDFs?

@yurydelendik
Copy link
Contributor

probably... even if we support it, we have to spoof adobe reader and its version

@waddlesplash
Copy link
Contributor

Just a thought - you'll have to provide some callback so the viewer knows what got added so it can update text selection or add an input. Some ways of implementing this may cause pdf.js not to work outside of web browsers... Say, the node backend that @jviereck created.

@SergeySagan
Copy link

This would be a super awesome feature to implement. I definitely vote up on this issue. Is there anyway to open a PDF serverside and remove the Reader and version requirements (especially C#) then output the PDF via MemoryStream? A Google search didn't seem to turn anything up on the subject, but this seems like something that should be possible.

@gigaherz
Copy link
Contributor

This is the wrong place to ask such a question, the comments are meant for commenting on the issue, or replying to another comment in topic.

Regardless, this is the first result when I searched for "render PDF server-side": http://stackoverflow.com/questions/8840634/what-server-side-pdf-rendering-components-can-i-use-with-net-php-ruby-etc

"Opensource pdf renderer" gave me http://stackoverflow.com/questions/1645005/open-source-pdf-renderer-for-net

@marco-c
Copy link
Contributor

marco-c commented Jun 11, 2021

The PDF is no longer available, and we landed support for XFA recently anyway.

@marco-c marco-c closed this as completed Jun 11, 2021
@cbiesinger
Copy link
Author

Looks like the form is now at https://www.uscis.gov/sites/default/files/document/forms/n-400.pdf but I don't know if it still uses XFA. Glad to hear you support XFA now!

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

No branches or pull requests

7 participants