[poppler] invisible text rendering error

Стадник Алексей giliker at bk.ru
Thu Jun 7 08:02:21 UTC 2018

Operation Tr in PDF with parameter 3 in accordance with the specification
https://wwwimages2.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf     PAGE 246
should make the text invisible, but the result is a black rectangle

My patch - Gfx.cc
void Gfx::doShowText(GooString *s) {
GfxFont *font;
int wMode;
double riseX, riseY;
CharCode code;
Unicode *u = NULL;
double x, y, dx, dy, dx2, dy2, curX, curY, tdx, tdy, ddx, ddy;
double originX, originY, tOriginX, tOriginY;
double x0, y0, x1, y1;
double oldCTM[6], newCTM[6];
double *mat;
Object charProc;
Dict *resDict;
Parser *oldParser;
GfxState *savedState;
char *p;
int render;
GBool patternFill;
int len, n, uLen, nChars, nSpaces, i;
font = state->getFont();
wMode = font->getWMode();
if (out->useDrawChar()) {
out->beginString(state, s);
// if we're doing a pattern fill, set up clipping
render = state->getRender();
// My patch 
if( render == 3 )

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180607/b4486cfb/attachment.html>

More information about the poppler mailing list