[ https://issues.apache.org/jira/browse/PDFBOX-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508737#comment-17508737 ]
Michael Klink commented on PDFBOX-5391: --------------------------------------- In PDFBox 3 there only is {{showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement)}}. The {{String unicode}} parameter has been removed from trunk two years ago. If _drilling_ tells you something different, you probably have multiple PDFBox versions in the classes you use for drilling, and you actually end up in some 2.x version. > showGlyph override not working > ------------------------------ > > Key: PDFBOX-5391 > URL: https://issues.apache.org/jira/browse/PDFBOX-5391 > Project: PDFBox > Issue Type: Wish > Affects Versions: 3.0.0 PDFBox > Reporter: Benjamin > Priority: Major > > I use the showGlyph function by extending > org.apache.pdfbox.text.PDFTextStripperByArea, when testing using the > 3.0.0-RC1 this was not working, the error is that it does not override or > implement a method from a supertype, because the pdfbox I am using has a > different showGlyph signature. > The signature I am using, as per > https://pdfbox.apache.org/docs/2.0.1/javadocs/org/apache/pdfbox/text/PDFTextStripperByArea.html#showGlyph(org.apache.pdfbox.util.Matrix,%20org.apache.pdfbox.pdmodel.font.PDFont,%20int,%20java.lang.String,%20org.apache.pdfbox.util.Vector) > > showGlyph(Matrix textRenderingMatrix, PDFont font, int code, String unicode, > Vector displacement) > the signature in 3 that is coming through with the error is: > showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector > displacement) > When I drill into the super, this is not the signature that I see, which is > the same as in 2, but it is the signature that I am gettign an error from > when parsing using 17.0.2 openjdk - I can't explain this but can't get > through it either. > To test, try to override the showGlyph by extending > org.apache.pdfbox.text.PDFTextStripperByArea; > > > > -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org