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

Michael Klink commented on PDFBOX-5170:
---------------------------------------

{quote}No, I thought there where a difference between tables and streams and 
that you only needed one of them.
{quote}
Ah, ok.
 Well, as long as all the cross references are present in one type of cross 
reference structure (table or stream), only that structure is needed.
 *But* in case of hybrid reference documents some information may only be 
present in table form and some in stream form. To understand the whole 
document, therefore, you need to read both structures and combine the data from 
them according to the specification.
 _(The original idea here was that the objects needed for features present only 
in PDF 1.5 and higher can be referenced by streams while objects needed for 
features already present before PDF 1.5 must be referenced in tables; this in 
particular allows to put the objects needed for features present only in PDF 
1.5 and higher into object streams which allows for substantially better 
compression.)_

> Compression creates issue with Page structure
> ---------------------------------------------
>
>                 Key: PDFBOX-5170
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5170
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Daniel Persson
>            Priority: Minor
>
>  
> Hi Team.
>  
> PDFBox version 3.0.0-RC1
> pdftoppm version 21.04.0
> mupdf-gl version 1.18.0
>  
> This might be an unusual issue but might needs to be checked. The simple code 
> below creates a PDF that can't be viewed with Poppler because of "error: 
> malformed page tree"​
> {code:java}
> PDDocument testPdf = Loader.loadPDF(new File("input.pdf"));
> testPdf.save(new File("output.pdf"));
> testPdf.close();
> PDDocument testPdf2 = Loader.loadPDF(new File("input.pdf"));
> testPdf2.save(new File("output2.pdf"), CompressParameters.NO_COMPRESSION);
> testPdf2.close();
> {code}
> This is not a content issue because all PDFs from the same producer have the 
> same problem, I've just picked an example.
> Best regards
> Daniel
>  



--
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