[poppler] invisible text rendering error

Oliver Sander oliver.sander at tu-dresden.de
Fri Jun 8 12:54:43 UTC 2018


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
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5158 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20180608/709a155a/attachment.bin>


More information about the poppler mailing list