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

Jairo Figueroa Jiménez edited comment on PDFBOX-5086 at 1/23/21, 1:02 PM:
--------------------------------------------------------------------------

I have tried the example
 Setfield.java and effectively the structure of the COSDictionary is broken. 
This is the example:

[tatata|https://drive.google.com/file/d/1cqVxnjmbV4GydnVRq6KKl45gA8BdX-df/view?usp=sharing]

For some reason the structure of the COSDictionary is modified.


was (Author: bn75):
I have tried the example
 Setfield.java and effectively the structure of the COSDictionary is broken. 
This is the example:

it came out on the same file #######

COSDictionary{COSName

{Size}:COSInt\{933};COSName\{ID}:COSArray\{COSString{tatata};COSString\{tatata};};COSName\{Root}:COSObject\{COSDictionary{COSName{AcroForm}:COSObject\{COSNull{}};COSName\{Metadata}:COSObject\{1177377518};COSName\{Names}:COSObject\{1177377518};COSName\{PageLabels}:COSObject\{1177377518};COSName\{Pages}:COSObject\{COSDictionary{COSName{Count}:COSInt\{1};COSName\{Kids}:COSArray\{COSObject{1177377518};};COSName\{Type}:COSName\{Pages};}};COSName\{Type}:COSName\{Catalog};}};COSName\{Info}:COSObject\{1177377518};COSName\{Prev}:COSInt\{195492};}
 
 BEFORE CLOSE
 
 COSDictionary\{COSName{Size}

:COSInt

{933};COSName\{ID}:COSArray\{COSString{tatata};COSString\{tatata};};COSName\{Root}:COSObject\{COSDictionary{COSName{AcroForm}:COSObject\{COSDictionary{COSName{CO}:COSArray\{COSObject{COSDictionary{COSName{AA}:COSDictionary\{COSName{C}:COSDictionary\{COSName{JS}:COSObject\{COSDictionary{COSName{Length}:COSInt\{523};COSName\{Filter}:COSName\{FlateDecode};}COSStream\{-1814174369}};COSName\{S}:COSName\{JavaScript};};};COSName\{F}:COSInt\{6};COSName\{FT}:COSName\{Tx};COSName\{Ff}:COSInt\{0};COSName\{MK}:COSDictionary\{COSName{R}:COSInt\{270};};COSName\{P}:COSObject\{COSDictionary{COSName{AA}:COSDictionary\{COSName{O}:COSObject\{COSDictionary{COSName{JS}:COSString{if
 (!bReset)
 
 it came out on different file #########
 
 COSDictionary\{COSName{Size}:COSInt\{933}

;COSName

{ID}:COSArray\{COSString{tatata;COSString{tatata};};COSName\{Root}:COSObject\{COSDictionary{COSName{AcroForm}:COSObject\{COSNull{}};COSName\{Metadata}:COSObject\{455538610};COSName\{Names}:COSObject\{455538610};COSName\{PageLabels}:COSObject\{455538610};COSName\{Pages}:COSObject\{COSDictionary{COSName{Count}:COSInt\{1};COSName\{Kids}:COSArray\{COSObject{455538610};};COSName\{Type}:COSName\{Pages};}};COSName\{Type}:COSName\{Catalog};}};COSName\{Info}:COSObject\{455538610};COSName\{Prev}:COSInt\{195492};}
 
 BEFORE CLOSE 
 
 
COSDictionary\{COSName{Size}:COSInt\{933};COSName\{ID}:COSArray\{COSString{tatata};COSString\{tatata};};COSName\{Root}:COSObject\{COSDictionary{COSName{AcroForm}:COSObject\{COSNull{}};COSName\{Metadata}:COSObject\{455538610};COSName\{Names}:COSObject\{455538610};COSName\{PageLabels}:COSObject\{455538610};COSName\{Pages}:COSObject\{COSDictionary{COSName{Count}:COSInt\{1};COSName\{Kids}:COSArray\{COSObject{455538610};};COSName\{Type}:COSName\{Pages};}};COSName\{Type}:COSName\{Catalog};}};COSName\{Info}:COSObject\{455538610};COSName\{Prev}:COSInt\{195492};}

For some reason the structure of the COSDictionary is modified.

> DataFormatException after saving
> --------------------------------
>
>                 Key: PDFBOX-5086
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5086
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: SalesUseTaxLA_R-5402_20060705.pdf, 
> SalesUseTaxLA_R-5402_20060705_BAD.pdf
>
>
> Attached file gets corrupted when saved in 3.0.0, but not in 2.0.*.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to