Hi, I have some problems adding an overlay-text to an existing pdf-file.
My first approach was to get the OverContent from the stamper, using it to create a Graphics2D to write a string to it. For writing the string I used a transparent black as Color. The output-pdf looks and prints just fine. Converting the pdf to ps is problematic though. Converting using xpdf's pdftops results in a 100% opaque overlay-text. Converting using gs's pdf2ps results in a ps which prints ok, but the filesize is not acceptable. (like 5-6 mb for one page) So my second approach was to use the UnderContent instead of the OverContent and use a 'normal' gray (no transparency) to write the string. Both, pdf2ps and pdftops create ps-files with a small size and both print correctly... ... however, now comes the problem I just could not solve: some of the PDFs already have a backgroundimage with solid white, writing in solid gray to the UnderContent doesn't help much ... Is there any way to write text just over the backgroundimage but under the rest of the pdf-content ? Thanks for any answers, Sebastian Koch -- View this message in context: http://www.nabble.com/problem-adding-overlay-text-tp19178035p19178035.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
