[
https://issues.apache.org/jira/browse/FOP-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559323#comment-13559323
]
Glenn Adams commented on FOP-2190:
----------------------------------
i've implemented a portion of this patch already in FOP-2195, however I am not
prepared to apply the code that switches between the DX/DP text drawing
functions since it imposes a significant performance and memory allocation
penalty in order to reduce PDF output size; in particular, the use of
String.substring() will cause a great amount of additional String allocation
that would not otherwise be present; in order to apply this additional
optimization, I think we need to:
(1) create a PDF renderer configuration option that allows the user to express
whether to optimize PDF size or processing speed;
(2) rewrite the proposed changes to not require additional string allocation;
> decrease PDF file size when CS are enabled
> -------------------------------------------
>
> Key: FOP-2190
> URL: https://issues.apache.org/jira/browse/FOP-2190
> Project: Fop
> Issue Type: Improvement
> Components: pdf
> Affects Versions: 1.1, trunk
> Reporter: Luis Bernardo
> Attachments: fop-2190.patch
>
>
> when CS are enabled, the current code may make use of the operators Td and Tj
> in situations where TJ would be appropriate leading to an increase in file
> size. note: this happens in the PDFPainter.drawText().
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira