[ 
https://issues.apache.org/jira/browse/PDFBOX-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-4417:
------------------------------------
    Comment: was deleted

(was: Possible explanation for the double StructTreeRoot is that when cloning, 
the root doesn't exist in the cloner map. Thus it is cloned when accessed 
through the /P (parent) entries.

A possible solution that I'll think about is whether to add the ability to add 
elements to the map of the cloner.)

> Merged file has several structure trees
> ---------------------------------------
>
>                 Key: PDFBOX-4417
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4417
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.13
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: StructureTree
>             Fix For: 2.0.14, 3.0.0 PDFBox
>
>         Attachments: 001031.pdf, 054080.pdf, PDFBOX-4417-merged-bad.pdf
>
>
> Something goes wrong with all the cloning. The result file has a 
> StructTreeRoot at objects 8, 697 and 730. And there is also the "COSStream 
> has been closed and cannot be read" exception (PDFBOX-3999) if one closes the 
> source before saving.
> If the close is removed the current tests pass, so the tests are not yet 
> complete.
> Merging  [^001031.pdf] (file from FDA) with itself also brings an orphan 
> check error.
> Merging  [^054080.pdf] (file also at 
> https://pubs.usgs.gov/wdr/wdr-sc-04/wy04/pdfs/02148000.2004.sw.pdf ) with 
> itself also shows two StructTreeRoot dictionaries (and no other failing test, 
> despite the commits related to  [^001031.pdf] ).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to