Hi..

I have modifyed the tutorial Concat.java to rotate the page 180 degrees if
rotation = reader.getPageRotation(i) == -180

here:

removed lines.....
        page = writer.getImportedPage(reader, i);
        rotation = reader.getPageRotation(i);
        System.out.println("rotation: " + rotation);
        if(rotation == -180) {
                System.out.println("rotating...");
                float pageHeight = reader.getPageSizeWithRotation(i).height();
                float pageWidth = reader.getPageSizeWithRotation(i).width();
                cb.addTemplate(page, 1, 0, 0, -1, 0,pageHeight);
        }
        else if (rotation == 90 || rotation == 270) {
                cb.addTemplate(page, 0, -1f, 1f, 0, 0,
reader.getPageSizeWithRotation(i).height());
        }else {
                cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0);
        }
        System.out.println("Processed page " + i);
        }
        f++;
removed lines.....

The pages are rotated... yes, but the text is not, its mirrored ?????, the
images are rotated correct.
why is that,  ???


Regards
David Nielsen




-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to