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

Tilman Hausherr commented on PDFBOX-5779:
-----------------------------------------

What version are you using? 2.0? It was changed in 3.0, there is no method with 
a file parameter.

>From what I see, 2.0 loads the entire stream into memory first before parsing. 
>IIRC parsing isn't done on the entire file, parts are on demand.

> Loading font streams has poorer performance compared to loading font files
> --------------------------------------------------------------------------
>
>                 Key: PDFBOX-5779
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5779
>             Project: PDFBox
>          Issue Type: Improvement
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: arial.ttf, pdfbox.java
>
>
> Run the attached program, then open the code on line 41 and comment out the 
> code on line 44, and compare the time consumption of the two font loading 
> methods.
> Why does using font streams have poorer performance compared to using font 
> files? Is this a limitation? If I can only use font streams, are there any 
> ways to improve performance?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to