Hi Alexey,

can you please open a bugreport for this at https://bugs.freedesktop.org/ ?
Otherwise your issue may just fall through the cracks.  Please attach your
patch and an example document that shows the problem.

Your patch isn't easily recognizable as such.  Can you please post the
output of git diff ?

Thanks,
Oliver

On 07.06.2018 10:02, Стадник Алексей wrote:
> Hello! 
> 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 )*
> *return;*
> 
> 
> .......
> 
> 
> -----
> Alexey
> 
> 
> _______________________________________________
> poppler mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/poppler
> 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to