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

[AcroTex][LaTeX][eforms] radioButtons not visible #10656

Closed
mpw-wwu opened this issue Mar 20, 2019 · 7 comments
Closed

[AcroTex][LaTeX][eforms] radioButtons not visible #10656

mpw-wwu opened this issue Mar 20, 2019 · 7 comments

Comments

@mpw-wwu
Copy link

mpw-wwu commented Mar 20, 2019

Attach (recommended) or Link to PDF file here:

radiobuttondemo.pdf

Configuration:

  • Web browser and its version: Firefox 65.0.1 64-bit
  • Operating system and its version: Ubuntu 18.04
  • PDF.js version: shipped with Firefox
  • Is a browser extension: no

Steps to reproduce the problem:

  1. Open PDF file

What is the expected behavior? (add screenshot)
Two radiobuttons should be visible (screenshot taken with Foxit Reader)

Bildschirmfoto von 2019-03-20 10-35-19

What went wrong? (add screenshot)
The radiobuttons aren't visible

Bildschirmfoto von 2019-03-20 10-35-50

According to #7898 radiobuttons should be supported already. And Chrome does show them (although they still don't work).

If it is helpful, here's the source code for this pdf:

\documentclass{article}
\usepackage{eforms}
\begin{document}
\begin{Form}
  \noindent\radioButton{radioButtonGroup}{0.5cm}{0.5cm}{radioButtonA} radioButton A\\
  \radioButton{radioButtonGroup}{0.5cm}{0.5cm}{radioButtonB} radioButton B\\
\end{Form}
\end{document}
@mpw-wwu mpw-wwu changed the title [AcroText][LaTeX][eforms] radioButtons not visible [AcroTex][LaTeX][eforms] radioButtons not visible Mar 20, 2019
@timvandermeij
Copy link
Contributor

You need to enable rendering interactive forms in order for them to become visible. This option is disabled by default since forms are still experimental. You can enable it by running PDFViewerApplication.preferences.set('renderInteractiveForms', true); in the web console, for example at https://mozilla.github.io/pdf.js/web/viewer.html and opening your test file. The radio buttons then render just fine. Closing as answered.

@mpw-wwu
Copy link
Author

mpw-wwu commented Mar 21, 2019 via email

@mpw-wwu
Copy link
Author

mpw-wwu commented Mar 21, 2019

Thanks, that indeed works nicely.

But they aren't printed and comboFields (drop down plus textfield for self defined answers) aren't working. Should I create separate issues for those problems?

@timvandermeij
Copy link
Contributor

Printing is already tracked in #7613. I'm not sure what combofields are, so for that it may be good to create a separate issue.

@MPW1412
Copy link

MPW1412 commented Mar 21, 2019

@timvandermeij, combo fields are drop down menus combined with text fields. So you can select pregiven values or input any text you want to.

@timvandermeij
Copy link
Contributor

If you have an example PDF file with such a field, then please provide it in a new issue so we can take a look. Thanks.

@mpw-wwu
Copy link
Author

mpw-wwu commented Mar 22, 2019

Voilà: #10669

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

No branches or pull requests

3 participants