Closed Bug 1742293 Opened 2 years ago Closed 2 years ago

PDF form filling has issue with Unicode content

Categories

(Firefox :: PDF Viewer, defect)

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 1666824

People

(Reporter: daniel, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

Open a PDF with forms to be filled in (e.g. https://www.ceskaposta.cz/documents/10180/461522/Podaci_listek_avizovani_vpis.pdf )
Fill in unicode content, like +ěščřžýáíé to one of the fields.
A) Choose PRINT
B) Choose SAVE (in the PDF ribbon at far right)

Actual results:

A) The print preview has mangled characters.
B) Opening the file in Acrobat reader has same mangled characters.

Tested both Windows (64b) and Linux (32b) versions of FF 94.0.1 and then behave exactly the same.

Expected results:

The characters should have stayed as were typed in the form, for both print and save, with reopening in different PDF viewer.

Things I have noticed: dropping the saved PDF with the form contents attachment into FF shows the form field with the correct unicode characters.

I had a look in hexeditor in the saved file - there are two occurences of the data, one in UTF16-BE format, and one in 8-bit format. Editing the 8-bit version wrote a different ascii text there causes this behaviour: FF shows the 16-bit text, but when going for print, the print preview shows the different text I wrote in hexeditor.

Seems there is some inconsistency in both the form saving (can not open in Acrobat) and printing (can not print in FF).

The Bugbug bot thinks this bug should belong to the 'Core::Printing: Output' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Printing: Output
Product: Firefox → Core
Component: Printing: Output → PDF Viewer
Flags: needinfo?(cdenizet)
Product: Core → Firefox
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
Flags: needinfo?(cdenizet)

Could not reproduce issue on Win10x64 using build 109.0a1(20221116182402). "+ěščřžýáíé" are correctly displayed on pdf, pdf print-preview and saved pdf.

Could not reproduce issue on Win10x64/Ubuntu20.04/Mac10.13 using build 109.0a1(20221122214324) and Beta 108.0b5(20221122190120). "+ěščřžýáíé" are correctly displayed on pdf, pdf print-preview and saved pdf.

You need to log in before you can comment on or make changes to this bug.