1T3XT info,
With the information you provided and the "document.newPage()" code, I was able 
to add tags to the PDF which consisted of pages imported from another pdf.

I appreciated the tip for info from Chapter 10 (10.4.1: CTM; 10.4.2: 
PdfTemplates). 

I had read over these chapters (the index provided me with pages to consult, 
when the chapter headings indicated dealing with images, etc.), but I did miss 
the relevance of the CTM for importing pages.

I especially appreciate the HelloWorldWriter and MarkedContent examples which 
really gave me a good start.

Thanks
-Mike



----- Original Message ----
From: 1T3XT info <[EMAIL PROTECTED]>
To: Post all your questions about iText here 
<[email protected]>
Sent: Thursday, August 14, 2008 12:30:45 PM
Subject: Re: [iText-questions] Tagged PDF (Re-send)

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



      

-------------------------------------------------------------------------
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

Reply via email to