[ 
https://issues.apache.org/jira/browse/PDFBOX-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13996591#comment-13996591
 ] 

Pat Hickey commented on PDFBOX-1895:
------------------------------------

The problem is with the /Ordering and /Registry values.
When I change these in the output file to /Ordering (Japan1) and /Registry 
(Adobe)
then the document displays just fine, without any font complaints.
Is this a decryption problem, perhaps?
Or is this obfuscation at work?
The input file has these strings, which are mostly all copied verbatim to the 
output file, 
except for the very last one in the list below, which is copied as:
{code}
/Ordering (Japan1) /Registry (Adobe) 
{code}
{code}
/Ordering <E02422411A5C> /Registry <EB213D4211>
/Ordering <78219F48985C> /Registry <7324804B93>
/Ordering <F9A77005FA62> /Registry <F2A26F06F1>
/Ordering <8DA892028FFF> /Registry <86AD8D0184>
/Ordering <D863FEFF46E7> /Registry <D366E1FC4D>
/Ordering <656C078A2CD6> /Registry <6E69188927>
/Ordering <348FF58B8D0D> /Registry <3F8AEA8886>
/Ordering <CF9BFD5BA8CF> /Registry <C49EE258A3>
/Ordering <BACAEEC85639> /Registry <B1CFF1CB5D>
/Ordering <30C284CE2BE7> /Registry <3BC79BCD20>
/Ordering <0B79E46DBB2D> /Registry <007CFB6EB0>
/Ordering <D28641BEE24A> /Registry <D9835EBDE9>
/Ordering <1682A2578315> /Registry <1D87BD5488>
/Ordering <44F4239F1DB2> /Registry <4FF13C9C16>
/Ordering <505E85100279> /Registry <5B5B9A1309>
/Ordering <1065DF60B97F> /Registry <1B60C063B2>
/Ordering <959B4A3FD05D> /Registry <9E9E553CDB>
/Ordering <CDEE41188574> /Registry <C6EB5E1B8E>
/Ordering <1A622D5C99B2> /Registry <1167325F92>
/Ordering <DD2E765FA38C> /Registry <D62B695CA8>
{code}

> Modifying a damaged PDF damages it further
> ------------------------------------------
>
>                 Key: PDFBOX-1895
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1895
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 1.8.3, 1.8.4
>            Reporter: Pat Hickey
>
> When re-writing a document with font descriptions, Adobe Reader is unable to 
> display the fonts in the document.  Reader can display the fonts in the 
> original document. The difference is that in the original document, the font 
> descriptions are in lower object numbers than the font references; in the 
> output document, the font descriptions are in higher object numbers than the 
> font references.  Is there a quick way to re-order them?
> Update: the PDF file in question is actually corrupt, but somehow modifying 
> it with PDFBox causes it to no longer be readable with Adobe Reader.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to