[
https://issues.apache.org/jira/browse/PDFBOX-3056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977597#comment-14977597
]
Ben McCann commented on PDFBOX-3056:
------------------------------------
I don't see an {{onGlyph}}. Do you mean {{showGlyph}}?
How do {{PageDrawer}} and {{PDFStreamEngine}} relate?
The part that I most frequently see issues with is pdfbox deciding whether or
not to put a space or a new line, which is where I was going to focus my
efforts. I really liked the {{TextPosition}} that's used in
{{PDFTextStreamEngine}} because it gives me things to work with that I
immediately understand without knowing the pdf spec at all. I was hoping I
could just work with that assuming that the {{TextPosition}} was typically
created correctly.
Is {{PDFTextStreamEngine}} fixable? It sounds like the main issue with fixing
it is that {{PDFTextStripper}} also would need to be updated? If someone can
make an alternate version of {{PDFTextStreamEngine}} that works as it should
then I might be able to make {{PDFTextStripper}} use it. {{PDFTextStripper}}
makes quite a bit of sense to me (though it does things I don't agree with), so
I'm comfortable editing it, but if I have to deal with much outside of
{{TextPosition}} then I get lost quickly. I'm afraid I don't quite know what to
do with a text rendering matrix and if I have to treat type 3 fonts
differently, etc.
> Make PDFTextStreamEngine public
> -------------------------------
>
> Key: PDFBOX-3056
> URL: https://issues.apache.org/jira/browse/PDFBOX-3056
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Ben McCann
> Fix For: 2.0.0
>
>
> I'd like to experiment with writing my own text extractor that works better
> for my use case than PDFTextStripper does. Hopefully I can port some of the
> improvements to PDFTextStripper if I get something working well. I'd really
> like PDFTextStreamEngine and its constructor to have increased visibility as
> I believe that it's pretty reasonable for people to be able write their own
> PDFTextStrippers without having to reimplement showGlyph.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]