First this: you've send your mail to
devnull@...
This devnull address is a reference to /dev/null
See
http://en.wikipedia.org/wiki/Dev/nullIn other words: it's a Trash bin address and mails sent
to that address are hardly ever read. It's an address
to fool SPAM engines. I thought it wouldn't fool real people,
assuming they know that my name is Bruno and that they are
familiar enough with IT development to know the meaning of
/dev/null ;-) Maybe I'm just old fashioned. (I hope I'm not.)
Muralidhara K. wrote:
> There is one problem that we're having and have not found any clues as
> to how to implement this. We'd like to generate a watermark on the
> fly that is an outline font rather than anything using transparent
> fonts. The reason is that transparent fonts often cause printing
> problems when on top of scanned documents due to the cost involved in
> Flattening.
>
> If you would be so kind as to provide some insight or direction here,
> our team would be very grateful.
Change the text rendering mode as described on p349.
I assume you are adding the textual watermark like this:
canvas.beginText();
canvas.setFontAndSize(bf, 24);
canvas.showTextAligned(Element.ALIGN_CENTER, "Watermark", mx, my, 45);
canvas.endText();
Now add one line:
canvas.beginText();
canvas.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_STROKE);
canvas.setFontAndSize(bf, 24);
canvas.showTextAligned(Element.ALIGN_CENTER, "Watermark", mx, my, 45);
canvas.endText();
This will cause the outlines of the glyphs to be stroked instead
of filled.
Please use the mailing list for this kind of questions in the future:
http://1t3xt.com/about/contact.phpbr,
Bruno
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questionsDo you like iText?
Buy the iText book:
http://www.1t3xt.com/docs/book.phpOr leave a tip:
https://tipit.to/itexttipjar