Hi,
I have a problem when trying to apply watermark to landscape oriented PDF
document.
Watermark that I'm using is another single paged landscaped PDF document
(both documents have identical size).
Here is the code:
...
PdfReader documentReader = new PdfReader(new
FileInputStream("c:\\inLandscape.pdf"));
PdfReader watermarkReader = new PdfReader(new
FileInputStream("c:\\watermarkLandscape.pdf"));
PdfStamper stamper = new PdfStamper(documentReader, new
FileOutputStream("c:\\out.pdf"));
PdfImportedPage importedPage = stamper.getImportedPage(watermarkReader,
1);
PdfContentByte underContent = stamper.getUnderContent(1);
underContent.addTemplate(importedPage, 0, 0);
stamper.close();
...
Problem is that the watermark on resulting document is rotated 90 degrees
counterclockwise.
Why is that happening ?
Regards,
Kruno
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions