[ 
https://issues.apache.org/jira/browse/PDFBOX-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin updated PDFBOX-5391:
-----------------------------
    Description: 
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;

 

 

 

 

  was:
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.

I use the showGlyph function to 'parse' pdf to text for a number of projects, 
and will not be able to upgrade to 3 if this functionality is removed - perhaps 
theres another way to go about it but it seems like the community uses 
overriding of the showGlyph function a fair bit.

The signature I am using:

showGlyph(Matrix textRenderingMatrix, PDFont font, int code, String unicode, 
Vector displacement)

the signature in 3

showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector 
displacement)

 

 

 

 


> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to