Am 08.01.2019 um 11:16 schrieb Hesham Gneady:
Thanks Telman!
I have tested the PrintTextColors example and I am getting the same results!
Still, PDFBox reports RGB values different than the ones I see in Adobe
Acrobat when using the PrintTextColors example with my PDF sample.
Yes but what colors are wrong? All of them, some of them, or what?
I can't investigate if you're not telling me where you searched.
The example tool also outputs some text. That makes it easier to find
the actual color command in the content stream.
Tilman
Best regards,
Hesham Gneady
----------------------------------------------------------------------------
----------------------
Included Message:
Hi,
Please use the PrintTextColors example and combine this to your code, then
show where these colors come up, i.e. for what glyph. Hopefully at the
beginning or at the end of the output.
Tilman
Am 07.01.2019 um 10:22 schrieb Hesham Gneady:
Hello,
In this sample PDF file:
https://www.dropbox.com/s/2z5b3vrvnzjo0lo/Font%20color%20Sample.pdf?dl
=0
I am trying to check the font colors for all letters, but I have
noticed that PDFBox gets colors with values partially different from
the ones that I see in Adobe Acrobat. I use this code:
@Override
public void processTextPosition( TextPosition t ) {
try {
PDGraphicsState gs = getGraphicsState();
Color color = new Color( gs.getNonStrokingColor().toRGB() );
System.out.println( color.getRed() );
System.out.println( color.getGreen() );
System.out.println( color.getBlue() );
}
catch (IOException ioe) {}
}
For example PDFBox prints the values:
Red:64, Green:96, Blue:172
While in Adobe Acrobat the values appear as:
Red:66, Green:105, Blue:178
Is there a reason for this?
Best regards,
Hesham
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]