[ 
https://issues.apache.org/jira/browse/PDFBOX-5359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470720#comment-17470720
 ] 

Michael Klink edited comment on PDFBOX-5359 at 1/7/22, 7:02 PM:
----------------------------------------------------------------

In ISO 32000-2:2020 *q* and *Q* became general graphics state operators while 
in ISO 32000-2:2017 they still were special graphics state operators.

Furthermore, ISO 32000-2:2020 section 9.4.1 now requires 

{quote}When the graphics state stack operators *q* and *Q* (see 8.4.2, 
"Graphics state stack") are combined with
the text object operators *BT* and *ET*, each pair of matching operators (*q* … 
*Q*) shall be properly
(separately) nested.{quote}

In particular, therefore, this issue should be labeled {{PDF2.0}}.


was (Author: mkl):
In ISO 32000-2:2020 *q* and *Q* became general graphics state operators while 
in ISO 32000-2:2017 they still were special graphics state operators.

Furthermore, ISO 32000-2:2020 section 9.4.1 now requires 

{quote}When the graphics state stack operators *q* and *Q* (see 8.4.2, 
"Graphics state stack") are combined with
the text object operators *BT* and *ET*, each pair of matching operators (*q* … 
*Q*) shall be properly
(separately) nested.{quote}

> Operators "q" and "Q" should also preserve text matrices
> --------------------------------------------------------
>
>                 Key: PDFBOX-5359
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5359
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing, Rendering
>    Affects Versions: 2.0.24, 3.0.0 PDFBox
>            Reporter: Jaromír Dobrý
>            Priority: Major
>         Attachments: zapf_dingbats.pdf, zapf_dingbats_page_indirect.pdf
>
>
> Open the attached file in PDFDebugger and compare to the Adobe Reader or 
> Foxit. The problem is in saving/restoring the graphics state inside text 
> object (which should be allowed according to the documentation and text 
> matrices should be part of the graphics state).
> Therefore I propose the solution to move PDFStreamEngine.textMatrix and 
> PDFStreamEngine.textLineMatrix into PDGraphicsState.



--
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