Text knockout implementation

This commit is contained in:
Jakub Melka
2021-02-16 18:50:24 +01:00
parent 6844114397
commit 20f4e7f554
3 changed files with 20 additions and 7 deletions

View File

@ -2596,12 +2596,13 @@ void PDFPageContentProcessor::operatorTextBegin()
updateGraphicState();
++m_textBeginEndState;
performTextBegin(ProcessOrder::AfterOperation);
if (m_textBeginEndState > 1)
{
throw PDFRendererException(RenderErrorType::Error, PDFTranslationContext::tr("Text object already started."));
}
performTextBegin(ProcessOrder::AfterOperation);
}
void PDFPageContentProcessor::operatorTextEnd()