You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2015/02/03 10:06:34 UTC
[jira] [Comment Edited] (PDFBOX-159) Field renaming character set
problem
[ https://issues.apache.org/jira/browse/PDFBOX-159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14302971#comment-14302971 ]
Maruan Sahyoun edited comment on PDFBOX-159 at 2/3/15 9:06 AM:
---------------------------------------------------------------
I’ve created a small static PDF file using Adobe LiveCycle Designer, removed the XFA and renamed two fields. Works without issues.
Testwed with PDFBox 2.0 trunk and PDFBox 1.8
was (Author: msahyoun):
I’ve created a small static PDF file using Adobe LiveCycle Designer, removed the XFA and renamed two fields. Works without issues.
> Field renaming character set problem
> ------------------------------------
>
> Key: PDFBOX-159
> URL: https://issues.apache.org/jira/browse/PDFBOX-159
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 0.7.0
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: fieldNamesAfter.png, fieldNamesBefore.png
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1482334
> Originally submitted by mmajis on 2006-05-05 02:30.
> If I take an XFA PDF, remove the XFA form, rename one
> of the AcroForm fields and open the resulting PDF in
> Acrobat, the field name is garbled.
> To begin with, it seems the field name is UTF-16BE
> encoded. PDFBox writes the new /T entry in ISO-8859-1
> since it finds no character values larger than 255. if
> I change the source code to write UTF-16BE with the two
> prefix bytes 0xFF and 0xFE (not sure of the byte order
> here), the field name shows correctly in Acrobat.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org