Hi Maruan,

sorry for the late reply. The issue is completely fixed. Great work!

Kind regards
Markus


> -----Ursprüngliche Nachricht-----
> Von: [email protected] <[email protected]>
> Gesendet: Dienstag, 24. März 2026 18:16
> An: [email protected]
> Betreff: Re: PdfBox renames RadioButton with Umlaut
> 
> Hello Markus,
> 
> a new snapshot build is available at
> 
> https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pd
> fbox-app/3.0.8-SNAPSHOT/
> 
> for testing.
> 
> BR
> Maruan
> 
> 
> Am Dienstag, dem 24.03.2026 um 12:36 +0100 schrieb
> [email protected]:
> > Hello Markus,
> >
> > thank you for pointing that out. That needs several additional
> > internal changes as before we were handling names as strings which is
> > incorrect now in many cases.
> >
> > I've reopened PDFBOX-6178 because of that.
> >
> > BR
> > Maruan
> >
> > Am Dienstag, dem 24.03.2026 um 11:06 +0000 schrieb Markus Mensinger
> > via
> > users:
> > > Hi Tilman,
> > >
> > > I tested pdfbox-3.0.8-20260323.163747-15 and update the value of
> > > field "Geschlecht" to "männlich". The issue is half fixed.
> > >
> > > Fixed:
> > > The appearance name (/AP) "/m#e4nnlich" is not renamed any more.
> > > Great work!
> > >
> > > Not fixed:
> > > - But the value (/V) of the field is still being encoded as
> > > "/m#c3#a4nnlich". The same name as in /AP must be used here, right?
> > > - And the selected appearance (/AS) of the field is not changed to
> > > "/m#e4nnlich". It remains "/Off". The field is not selected visually
> > > on the rendered page.
> > >
> > > The result file:
> > > https://signotecgmbh-my.sharepoint.com/:b:/g/personal/markus_mensing
> > > er_signotec_de/IQC6ZpRWlFX4R5nY4rHk7DP8AcNO-
> Gl1dvTBBt6OTTCTU7U?e=cgf
> > > qS1
> > >
> > >
> > > Kind regards
> > > Markus
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Tilman Hausherr <[email protected]>
> > > > Gesendet: Dienstag, 24. März 2026 08:59
> > > > An: [email protected]
> > > > Betreff: Re: PdfBox renames RadioButton with Umlaut
> > > >
> > > > Hi,
> > > >
> > > > Please test with a snapshot build
> > > > https://repository.apache.org/content/groups/snapshots/org/apache/
> > > > pdfbox/pd
> > > > fbox-app/3.0.8-SNAPSHOT/
> > > >
> > > > Tilman
> > > >
> > > > Am 20.03.2026 um 13:05 schrieb Markus Mensinger via users:
> > > > > Hi Maruan,
> > > > >
> > > > > I have tested PdfBox 3.0.5, 3.0.6 and 3.0.7. Always the same
> > > > > result.
> > > > >
> > > > > Kind regards
> > > > > Markus
> > > > >
> > > > >
> > > > > > -----Ursprüngliche Nachricht-----
> > > > > > Von: [email protected] <[email protected]>
> > > > > > Gesendet: Donnerstag, 19. März 2026 10:27
> > > > > > An: [email protected]
> > > > > > Cc: Markus Mensinger <[email protected]>
> > > > > > Betreff: Re: PdfBox renames RadioButton with Umlaut
> > > > > >
> > > > > > Hello Markus,
> > > > > >
> > > > > > for completeness: which version of PDFBox are you using? I've
> > > > > > added the files to the ticket. Thank you for sharing.
> > > > > >
> > > > > > BR
> > > > > > Maruan
> > > > > >
> > > > > > Am Donnerstag, dem 19.03.2026 um 08:03 +0000 schrieb Markus
> > > > > > Mensinger via
> > > > > > users:
> > > > > > > Hi Maruan,
> > > > > > >
> > > > > > > you are free to use and edit the documents.
> > > > > > >
> > > > > > > The updated links:
> > > > > > >
> > > > > > > The original document. No radio button is selected:
> > > > > > > https://signotecgmbh-my.sharepoint.com/:b:/g/personal/markus
> > > > > > > _mensing
> > > > > > > er
> > > > > > > _signotec_de/IQAG_LM96YsmR5Bbs-
> > > > > > B6GdjZAe_Ohx5ZXtTrGjqhBhbnvlI?e=Mk8uto
> > > > > > > Radio button "männlich" selected with PdfBox:
> > > > > > > https://signotecgmbh-my.sharepoint.com/:b:/g/personal/markus
> > > > > > > _mensing
> > > > > > > er
> > > > > > > _signotec_de/IQBd-bq-
> > > > > > lOxGSoxfH6RRv1DiAekmMQ45a237dHKxaarJonc?e=2msGPD
> > > > > > > Radio button "männlich" selected with Acrobat Pro:
> > > > > > > https://signotecgmbh-my.sharepoint.com/:b:/g/personal/markus
> > > > > > > _mensing
> > > > > > > er
> > > > > > >
> > > > > >
> > > >
> _signotec_de/IQB5nYOYQEJ8QJMizyMsxnTjAUC7RLehA9jHOR9NGUDVd7A?e=mc
> > > > > > zIzV
> > > > > > >
> > > > > > > Best regards
> > > > > > > Markus
> > > > > > >
> > > > > > > > -----Ursprüngliche Nachricht-----
> > > > > > > > Von: [email protected] <[email protected]>
> > > > > > > > Gesendet: Mittwoch, 18. März 2026 15:55
> > > > > > > > An: [email protected]
> > > > > > > > Cc: Markus Mensinger <[email protected]>
> > > > > > > > Betreff: Re: PdfBox renames RadioButton with Umlaut
> > > > > > > >
> > > > > > > > Hello Markus,
> > > > > > > >
> > > > > > > > I've created PDFBOX-6178. Unfortunately the links are
> > > > > > > > expired.
> > > > > > > > Could you provide
> > > > > > > > the test file again. OK to add it to the issue?
> > > > > > > >
> > > > > > > > BR
> > > > > > > > Maruan
> > > > > > > >
> > > > > > > > Am Mittwoch, dem 18.03.2026 um 14:30 +0000 schrieb Markus
> > > > > > > > Mensinger via
> > > > > > > > users:
> > > > > > > > > Hi PdfBox Team,
> > > > > > > > >
> > > > > > > > > may I ask if this issue is still being addressed? I'd be
> > > > > > > > > happy to help with additional documents or test code.
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > > Markus
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > -----Ursprüngliche Nachricht-----
> > > > > > > > > > Von: Markus Mensinger via users
> > > > > > > > > > <[email protected]>
> > > > > > > > > > Gesendet: Freitag, 13. Februar 2026 08:49
> > > > > > > > > > An: [email protected]
> > > > > > > > > > Cc: Markus Mensinger <[email protected]>
> > > > > > > > > > Betreff: AW: PdfBox renames RadioButton with Umlaut
> > > > > > > > > >
> > > > > > > > > > Hi Andreas,
> > > > > > > > > >
> > > > > > > > > > sorry for the late reply. I didn't receive the email
> > > > > > > > > > about your message.
> > > > > > > > > >
> > > > > > > > > > The original document. No radio button is selected:
> > > > > > > > > > https://signotecgmbh-
> > > > > > > > > > my.sharepoint.com/:b:/g/personal/markus_mensinger_sig
> > > > > > > > > > no
> > > > > > > > > > tec_de/I
> > > > > > > > > > QAG_
> > > > > > > > > > LM96
> > > > > > > > > > YsmR5Bbs-B6GdjZAe_Ohx5ZXtTrGjqhBhbnvlI?e=hLirvE
> > > > > > > > > >
> > > > > > > > > > Radio button "männlich" selected with PdfBox:
> > > > > > > > > > https://signotecgmbh-
> > > > > > > > > > my.sharepoint.com/:b:/g/personal/markus_mensinger_sig
> > > > > > > > > > no
> > > > > > > > > > tec_de/I
> > > > > > > > > > QBd-
> > > > > > > > > > bq-
> > > > > > > > > > lOxGSoxfH6RRv1DiAd05O7Pq6qRBlJJBafeklP4?e=SHrniB
> > > > > > > > > >
> > > > > > > > > > Radio button "männlich" selected with Acrobat Pro:
> > > > > > > > > > https://signotecgmbh-
> > > > > > > > > > my.sharepoint.com/:b:/g/personal/markus_mensinger_sig
> > > > > > > > > > no
> > > > > > > > > > tec_de/I
> > > > > > > > > > QB5n
> > > > > > > > > > YOYQ
> > > > > > > > > > EJ8QJMizyMsxnTjAXDRsSO12tsNbvLwQxKbZ3Y?e=bNhHOR
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > > Markus
> > > > > > > > > >
> > > > > > > > > > > -----Ursprüngliche Nachricht-----
> > > > > > > > > > > Von: Markus Mensinger via users
> > > > > > > > > > > <[email protected]>
> > > > > > > > > > > Gesendet: Freitag, 6. Februar 2026 17:06
> > > > > > > > > > > An: [email protected]
> > > > > > > > > > > Cc: Markus Mensinger <[email protected]>
> > > > > > > > > > > Betreff: PdfBox renames RadioButton with Umlaut
> > > > > > > > > > >
> > > > > > > > > > > [Sie erhalten nicht häufig E-Mails von
> > > > > > > > > > > [email protected].
> > > > > > > > > > > Weitere Informationen, warum dies wichtig ist,
> > > > > > > > > > > finden Sie unter
> > > > > > > > > > > https://aka.ms/LearnAboutSenderIdentification ]
> > > > > > > > > > >
> > > > > > > > > > > Hi PdfBox team,
> > > > > > > > > > >
> > > > > > > > > > > is the following maybe an issue in PdfBox?
> > > > > > > > > > >
> > > > > > > > > > > Steps to reproduce
> > > > > > > > > > > ===============
> > > > > > > > > > > 1. Create a document that contains a radio button
> > > > > > > > > > > with Umlaut in name.
> > > > > > > > > > > I can give you an example document.
> > > > > > > > > > > Let's say: A radio group "Geschlecht" with the
> > > > > > > > > > > buttons "männlich"
> > > > > > > > > > > and
> > > > > > > > > > "weiblich".
> > > > > > > > > > > Do not use PdfBox for this step. I used Acrobat Pro
> > > > > > > > > > > 2020.
> > > > > > > > > > > The name/value of the "männlich" button is encoded
> > > > > > > > > > > as "/m#e4nnlich" in the PDF.
> > > > > > > > > > >
> > > > > > > > > > > 2. Update the value of the radio group with PdfBox
> > > > > > > > > > > to "männlich"
> > > > > > > > > > > and
> > > > > > > > > > > save it to a new document.
> > > > > > > > > > >
> > > > > > > > > > > import java.io.File; import
> > > > > > > > > > > org.apache.pdfbox.Loader; import
> > > > > > > > > > > org.apache.pdfbox.pdmodel.PDDocument;
> > > > > > > > > > >
> > > > > > > > > > > public class UpdateRadioGroup {
> > > > > > > > > > >
> > > > > > > > > > >      private static final String INPUT_FILE =
> > > > > > > > > > > "form_empty.pdf";
> > > > > > > > > > >      private static final String OUTPUT_FILE =
> > > > > > > > > > > "form_selected.pdf";
> > > > > > > > > > >      private static final String FIELD_NAME =
> > > > > > > > > > > "Geschlecht";
> > > > > > > > > > >      private static final String FIELD_VALUE =
> > > > > > > > > > > "männlich";
> > > > > > > > > > >
> > > > > > > > > > >      public static void main(String[] args)
> > > > > > > > > > >              throws Exception {
> > > > > > > > > > >
> > > > > > > > > > >          try (PDDocument document =
> > > > > > > > > > > Loader.loadPDF(new
> > > > > > > > > > > File(INPUT_FILE))) {
> > > > > > > > > > >              document.getDocumentCatalog()
> > > > > > > > > > >                      .getAcroForm(null)
> > > > > > > > > > >                      .getField(FIELD_NAME)
> > > > > > > > > > >                      .setValue(FIELD_VALUE);
> > > > > > > > > > >
> > > > > > > > > > >              document.save(new File(OUTPUT_FILE));
> > > > > > > > > > >          }
> > > > > > > > > > >      }
> > > > > > > > > > > }
> > > > > > > > > > >
> > > > > > > > > > > 3. Validate the name/value of the "männlich" button
> > > > > > > > > > > in the new document in a text editor. PdfBox encodes
> > > > > > > > > > > "männlich"
> > > > > > > > > > > to
> > > > > > > > > > > "/m#c3#a4nnlich" (see
> > > > > > > > > > > COSName.writePDF() ).
> > > > > > > > > > >
> > > > > > > > > > > The problem
> > > > > > > > > > > ===============
> > > > > > > > > > > PdfBox renames the radio button from "männlich" to
> > > > > > > > > > > "männlich".
> > > > > > > > > > > Or "/m#e4nnlich" to "/m#c3#a4nnlich" in PDF-format.
> > > > > > > > > > > When you read the document again, PdfBox converts
> > > > > > > > > > > "#c3#a" to "ä"
> > > > > > > > > > > but
> > > > > > > > > > > all other programs do not. I tested Acrobat Pro
> > > > > > > > > > > 2020, actual Acrobat Reader, PDFXplorer from
> > > > > > > > > > > https://www.o2sol.com
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > > Markus
> > > > > > > > > > >
> > > > > > > > > > > ---------------------------------------------------
> > > > > > > > > > > --
> > > > > > > > > > > --------
> > > > > > > > > > > ----
> > > > > > > > > > > ----
> > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > > [email protected]
> > > > > > > > > > > For additional commands, e-mail:
> > > > > > > > > > > [email protected]
> > > > > > > > > >
> > > > > > > > > > -----------------------------------------------------
> > > > > > > > > > --
> > > > > > > > > > --------
> > > > > > > > > > ----
> > > > > > > > > > --
> > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > > [email protected]
> > > > > > > > > > For additional commands, e-mail:
> > > > > > > > > > [email protected]
> > > > > > > > >
> > > > > > > > > -------------------------------------------------------
> > > > > > > > > --
> > > > > > > > > --------
> > > > > > > > > ----
> > > > > > > > > To unsubscribe, e-mail:
> > > > > > > > > [email protected]
> > > > > > > > > For additional commands, e-mail:
> > > > > > > > > [email protected]
> > > > > > > -----------------------------------------------------------
> > > > > > > --
> > > > > > > -------
> > > > > > > - To unsubscribe, e-mail:
> > > > > > > [email protected]
> > > > > > > For additional commands, e-mail:
> > > > > > > [email protected]
> > > > > ---------------------------------------------------------------
> > > > > --
> > > > > ----
> > > > > To unsubscribe, e-mail: [email protected]
> > > > > For additional commands, e-mail: [email protected]
> > > > >
> > > >
> > > >
> > > > -----------------------------------------------------------------
> > > > --
> > > > --
> > > > To unsubscribe, e-mail: [email protected]
> > > > For additional commands, e-mail: [email protected]
> > >
> > >
> > > -------------------------------------------------------------------
> > > --
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to