You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/07/15 10:28:00 UTC

[jira] [Resolved] (PDFBOX-3868) Optimize usage of COSStream construction

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

Tilman Hausherr resolved PDFBOX-3868.
-------------------------------------
    Resolution: Fixed

That's it for now. There are still some left, but these are not that important and working on them would require injecting PDDocument or COSDocument at packages where these aren't used yet.

So the mean thing we got is 1) a comment 2) smaller memory footprint when saving PDF files with XRef streams or when doing visible signing.

> Optimize usage of COSStream construction
> ----------------------------------------
>
>                 Key: PDFBOX-3868
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3868
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Documentation, PDModel
>    Affects Versions: 2.0.6
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>              Labels: optimization
>             Fix For: 2.0.7, 3.0.0
>
>
> The COSStream() constructor is evil... discovered in PDFBOX-3852: it creates a new memory scratch file... which is an array with 100000 entries. I'll improve the javadoc and make some changes to avoid the usage when possible.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org