Mike Ferrando wrote: > Friends, > Ok, I guess I will have to start over. (not enough info) > > 1. The most basic problem I am having is that I need to import pages as > PageSize.A4 > > The HelloWorldWriter does not import pages (using PdfContentByte) with the > addTemplate > method settings. > > cb.addTemplate(page, -0.5f, 0f, 0f, -0.5f, PageSize.A4.getWidth(), > PageSize.A4.getHeight()); > > What would be the standard settings for a PageSize.A4 using the addTemplate > method?
If you've read the book, you've skipped the algebra part in chapter 10. With the 0.5 you indicate that you want to scale the X and Y dimensions of the page to 50%. With the negative values, you indicate that you want to rotate them. You also define an offset. You probably want 1, 0, 0, 1, 0, 0 as values for the CTM. > 2. Is it possible to tag an imported page or pages? Er... First I thought you wanted to tag the content inside the pages; that would be difficult. Now I see you want to tag complete pages; I assume that's possible. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- 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
