mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.96k stars 9.92k forks source link

[LaTeX][forms][hyperref] ChoiceMenu combo not editable #10669

Open mpw-wwu opened 5 years ago

mpw-wwu commented 5 years ago

As discussed in #10656, the ChoiceMenu in combo-mode is not editable.

Attach (recommended) or Link to PDF file here:

combofield.pdf

Configuration:

Steps to reproduce the problem:

  1. Open PDF file
  2. Set PDFViewerApplication.preferences.set('renderInteractiveForms', true); in the JS console
  3. Reload document
  4. Try to insert any random text in the ChoiceMenu like ”abc“

What is the expected behavior? (add screenshot)

You should be able to insert any text into the field.

What went wrong? (add screenshot)

You can only select the pregiven choices. The field is not editable.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Adobe Reader or FoxxitReader can handle those fields correctly.

LaTeX-Code used to generate the PDF:

\documentclass{article}
\usepackage{hyperref}

\begin{document}
  \ChoiceMenu[combo,width=4.5cm,bordercolor=,name=demo,charsize=0pt]{Demo-Label}{answer1,answer2,answer3}
\end{document}

Best, Matthias

timvandermeij commented 5 years ago

The PDF specification states the following about this: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=452&zoom=auto,-215,265

develroo commented 7 months ago

The PDF specification states the following about this: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=452&zoom=auto,-215,265

Ahem. Given that links to a 404 Adobe page, methinks it is time to revisit what the real problem is and see how other open source projects deal with it.

Just a thought.

urijah commented 7 months ago

https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=452&zoom=auto,-215,265

develroo commented 7 months ago

https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#page=452&zoom=auto,-215,265

Thanks for updating the link. But doesn't explain why 5 years later no one has even flagged this as needing triage. Is there seriously no one on the team who has ever used combo boxes in a PDF before? :roll_eyes:

Timeswitch commented 1 month ago

Hi!

Having support for this would be fantastic!