[
https://issues.apache.org/jira/browse/PDFBOX-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539629#comment-13539629
]
Andreas Lehmkühler commented on PDFBOX-1480:
--------------------------------------------
Let us have a look at the content stream of the first pdf
...
BT -> begin text
/F1 11.04 Tf -> set font to F1
1 0 0 1 72.024 709.56 Tm -> set the text matrix
1 0 0 rg -> set non stroking cs to DeviceRGB using the color value 1,0,0 = red
1 0 0 RG -> set stroking cs to DeviceRGB using the color value 1,0,0 = red
[(R)] TJ -> draw the text "R" using text rendering mode 0 = use non stroking cs
= red
ET -> end text
BT -> begin text
1 0 0 1 78.024 709.56 Tm -> set the text matrix
0 g -> set non stroking cs to DeviceGray using the color value 0 = black
0 G -> set stroking cs to DeviceGray using the color value 0 = black
[( )] TJ -> draw the text " " using text rendering mode 0 = use non stroking cs
= black
ET -> end text
.....
The graphic state of a page isn't static, it represents the state of a page at
a specific point of time when processing the content stream.
> PDFBox treats some DeviceRGB pdfs as DeviceGRAY
> -----------------------------------------------
>
> Key: PDFBOX-1480
> URL: https://issues.apache.org/jira/browse/PDFBOX-1480
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.7.1
> Reporter: Greg Werner
> Attachments: color.pdf, Test4.pdf
>
>
> Some PDF files are correctly processed by PDFBox as DeviceRGB and the font
> color can be retrieved. Other DeviceRGB files that can be viewed by Acrobat
> Reader as fonts with various colors are treated as DeviceGray by PDFBox. An
> example of creating such a file which is listed as DeviceGray is with Word
> 2010 and then saving as using the MinimumSize option. An example of creating
> a file which is recognized by PDFBox is to save Standard. I believe either
> case should be recognized as DeviceRGB
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira