pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PDFBOX-4080) Improve memory consumption of PDAbstractAppearanceHandler
Date Tue, 13 Aug 2019 17:22:00 GMT

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

Tilman Hausherr edited comment on PDFBOX-4080 at 8/13/19 5:21 PM:
------------------------------------------------------------------

Yes, passingĀ {{PDDocument}} is a good idea because it would also solve another recent problem
with FreeText annotations:

[https://stackoverflow.com/questions/57425575/]

Here we'd need to put a chinese font into the acroform default resources. Similar problem
with the file here:

[https://gitlab.freedesktop.org/poppler/poppler/issues/6]

the FreeText annotation should use the font "Impact".

[~msahyoun] do you support that change?

[~gena77] why removal of the {{appearanceDictionary.setRolloverAppearance(rolloverAppearanceEntry);}}
line?


was (Author: tilman):
Yes, passingĀ {{PDDocument}} is a good idea because it would also solve another recent problem
with FreeText annotations:

[https://stackoverflow.com/questions/57450039/]

Here we'd need to put a chinese font into the acroform default resources. Similar problem
with the file here:

[https://gitlab.freedesktop.org/poppler/poppler/issues/6]

the FreeText annotation should use the font "Impact".

[~msahyoun] do you support that change?

[~gena77] why removal of the {{appearanceDictionary.setRolloverAppearance(rolloverAppearanceEntry);}}
line?

> Improve memory consumption of PDAbstractAppearanceHandler
> ---------------------------------------------------------
>
>                 Key: PDFBOX-4080
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4080
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Maruan Sahyoun
>            Assignee: Maruan Sahyoun
>            Priority: Major
>              Labels: Annotations
>
> PDAbstractAppearanceHandler calls new COSStream(), this has a huge memory footprint (PDFBOX-3868
and PDFBOX-3852). We'd need to find a way to pass the document, or the document scratch file,
or there will be trouble for files with many annotations, e.g. a long scientific document
with many footnotes.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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


Mime
View raw message