[
https://issues.apache.org/jira/browse/PDFBOX-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Juraj Lonc updated PDFBOX-1396:
-------------------------------
Description:
The Length value of stream is written by reference:
"2 0 obj
<<
/Length 8 0 R
/Subtype /XML
/Type /Metadata
>>
stream"
but it is always better to tell parser the length of stream BEFORE the stream
comes to parser. Currently parser gets that information after stream was read,
which is sort of useless...
Proper structure should look like this:
"2 0 obj
<<
/Length 3576
/Subtype /XML
/Type /Metadata
>>
stream"
was:
The Length value of stream is written by reference:
"2 0 obj
<<
/Length 8 0 R
/Subtype /XML
/Type /Metadata
>>
stream"
but it is always better to tell parser the length of stream BEFORE the stream
come to parser. Currently parser gets that information after stream was read,
which is sort of useless...
Proper structure should look like this:
"2 0 obj
<<
/Length 3576
/Subtype /XML
/Type /Metadata
>>
stream"
> The Length of stream should be written directly, not by reference
> -----------------------------------------------------------------
>
> Key: PDFBOX-1396
> URL: https://issues.apache.org/jira/browse/PDFBOX-1396
> Project: PDFBox
> Issue Type: Improvement
> Components: Writing
> Affects Versions: 1.7.1
> Reporter: Juraj Lonc
> Priority: Minor
> Attachments: PDFBOX-1396_COSStream.patch, PDFBOX-1396_COSWriter.patch
>
>
> The Length value of stream is written by reference:
> "2 0 obj
> <<
> /Length 8 0 R
> /Subtype /XML
> /Type /Metadata
> >>
> stream"
> but it is always better to tell parser the length of stream BEFORE the stream
> comes to parser. Currently parser gets that information after stream was
> read, which is sort of useless...
> Proper structure should look like this:
> "2 0 obj
> <<
> /Length 3576
> /Subtype /XML
> /Type /Metadata
> >>
> stream"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira