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

John Hewson commented on PDFBOX-2210:
-------------------------------------

{quote}
PageDrawer.drawGlyph2D() to become part of the API (make it protected instead 
of private) so that I can intercept it and call something else on our special 
G2D implementation.
{quote}

I've recently added some new glyph APIs to a new class PDFGraphicsStreamEngine, 
which PageDrawer extends. You can probably get what you need by overriding 
those methods. Use of drawGlyphVector will be entirely removed from 2.0 soon.

Really though, PageDrawer isn't meant to be subclassed, ideally for 2.0 it will 
be marked final and PDFGraphicsStreamEngine can be used for anyone interested 
in intercepting the graphics commands (I do this myself, somewhat like your PCL 
output).



> [PATCH] Allow caching of glyphs
> -------------------------------
>
>                 Key: PDFBOX-2210
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2210
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>            Assignee: John Hewson
>         Attachments: drawglyphs.patch
>
>
> If you seperate transform from glyph it means we can reuse glyphs in fop 
> postscript output and get smaller output files



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to