You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Felix Rudolphi (Jira)" <ji...@apache.org> on 2022/09/12 12:58:00 UTC
[jira] [Created] (PDFBOX-5512) PDRadioButton.setValue(..) does not work for non-ASCII values
Felix Rudolphi created PDFBOX-5512:
--------------------------------------
Summary: PDRadioButton.setValue(..) does not work for non-ASCII values
Key: PDFBOX-5512
URL: https://issues.apache.org/jira/browse/PDFBOX-5512
Project: PDFBox
Issue Type: Bug
Components: AcroForm
Affects Versions: 2.0.26
Environment: OpenJDK 8/Linux/x64, probably irrelevant
Reporter: Felix Rudolphi
Attachments: Unfallmeldung_Bildungseinrichtungen_bf_01-2020.pdf
When setting a value of a PDRadioButton programmatically by calling setValue(value), it works well if value is just ASCII characters, but for example "Universität" is encoded internally as "Universit#e4t", neither approach works (the 2nd throws an exception).
The fix should write the correct encoded value, so that the respective options is displayed as checked in PDF viewers.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org