Also, as an FYI, when I pull this up in the debugger, I get the following in my 
command line:
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNING: No Unicode mapping for .notdef (1) in font Times-Roman
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.rendering.Type1Glyph2D 
getPathForCharacterCode
WARNING: No glyph for 1 (.notdef) in font Times-Roman
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNING: No Unicode mapping for .notdef (0) in font Times-Roman
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.rendering.Type1Glyph2D 
getPathForCharacterCode
WARNING: No glyph for 0 (.notdef) in font Times-Roman
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNING: No Unicode mapping for .notdef (1) in font Times-Roman
Mar 09, 2018 10:40:45 AM org.apache.pdfbox.pdmodel.font.PDSimpleFont toUnicode
WARNING: No Unicode mapping for .notdef (0) in font Times-Roman

And, just like with other PDF Readers, the text shown in the debugger right 
hand pane is garbled while the text shown in the tree view of the field shows 
the correct text as its value.

Thanks

> On Mar 9, 2018, at 9:57 AM, Scott Tomer <[email protected]> wrote:
> 
> It is generated at a customer.
> 
> Here is an image from the debugger:
> <PastedGraphic-1.png>
> 
> Thanks
> 
>> On Mar 8, 2018, at 8:47 PM, Tilman Hausherr <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Is the form generated in your company? If yes, can you generate an empty 
>> form with just one field?
>> 
>> If not, please open the file with PDFDebugger and click "show internal 
>> structure" and then show the appearance stream (..../AP/N ) and the default 
>> appearance (..../DA) of the field. Also the details of Acroform/DR as seen 
>> here. The image should either be inline in the mail or uploaded to a 
>> sharehoster (e.g. dropbox, google drive, etc). Blacken anything that is 
>> confidential.
>> 
>> <ckdfggmbpgkfoemj.png>
>> 
>> Tilman
>> 
>> Am 09.03.2018 um 03:05 schrieb Scott Tomer:
>>> I’m using 2.0.8.  I do not have permission, nor a public site to upload the 
>>> PDF to, sorry.
>>> 
>>> Thanks
>>> 
>>>> On Mar 8, 2018, at 4:01 PM, Maruan Sahyoun <[email protected]> 
>>>> <mailto:[email protected]> wrote:
>>>> 
>>>> Hi Scott,
>>>> 
>>>>> Am 08.03.2018 um 20:42 schrieb Scott Tomer <[email protected]> 
>>>>> <mailto:[email protected]>:
>>>>> 
>>>>> All,
>>>>> 
>>>>> I’m new to the list, but tried to search pdfbox-users.markmail.org 
>>>>> <http://pdfbox-users.markmail.org/> <http://pdfbox-users.markmail.org/> 
>>>>> <http://pdfbox-users.markmail.org/> before asking with no luck.
>>>>> 
>>>>> We are using pdfbox to fill in some form fields in an Adobe generated 
>>>>> template but getting odd results when certain international characters 
>>>>> are used (some, not all).  When the pdf is first opened, the characters 
>>>>> shown are basically garbage.  Here is an example: þÿB D Aóz
>>>>> 
>>>>> However, when you click into the field (or in certain readers like Okular 
>>>>> on Linux choose “Show Forms”), the correct characters are shown.  Here is 
>>>>> what is inserted into the field and shown when field is selected: ł ń Ł ó 
>>>>> ź
>>>>> 
>>>>> It is almost like the PDF has one font selected for a read-only view and 
>>>>> the correct font for the view when editing a field.
>>>>> 
>>>>> This is happening with Polish, Russian, Chinese and other languages.
>>>>> 
>>>>> This is how I am populating the fields:
>>>>> 
>>>>> PDDocument pdfDoc = LoadPDF.load(cs, document);
>>>>> PDDocumentCatalog docCatalog = pdfDoc.getDocumentCatalog();
>>>>> PDAcroForm acroForm = docCatalog.getAcroForm();
>>>>> 
>>>>> if (acroForm != null) {
>>>>>   for (PDField field : acroForm.getFieldTree()) {
>>>>>       for (PdfField pdfField : pdfFields) {
>>>>>           if (field.getPartialName() != null && 
>>>>> field.getPartialName().equalsIgnoreCase(pdfField.getName())) {
>>>>>               field.setValue(pdfField.getValue());
>>>>>           }
>>>>>       }
>>>>>   }
>>>>> }
>>>>> pdfDoc.save(tempPdf);
>>>>> pdfDoc.close();
>>>>> 
>>>> Looks like there is an issue with the appearance generation. Which PDFBox 
>>>> version are you using? Could you upload a sample PDF to a public location 
>>>> for further investigstion?
>>>> 
>>>> BR
>>>> Maruan 
>>>> 
>>>>> Thanks for any help,
>>>>> Scott
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected] 
>>>> <mailto:[email protected]> 
>>>> <mailto:[email protected]> 
>>>> <mailto:[email protected]>
>>>> For additional commands, e-mail: [email protected] 
>>>> <mailto:[email protected]> 
>>>> <mailto:[email protected]> <mailto:[email protected]>
>> 
> 

Reply via email to