Importing pages removes all the fields. To keep the fields flatten them
first and then import the pages. Please send the follow up to the
mailing list.

Paulo

> -----Original Message-----
> From: David K. Levine [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, April 02, 2006 7:00 PM
> To: Paulo Soares
> Cc: Paulo Soares
> Subject: RE: RE: Jarnal: PDF background loading
> 
> Dear Mr. Soares:
> 
> I am reluctant to write to developers of open-source 
> software, as it is easy to get quickly overwhelmed by "how do 
> I turn the power switch on" support requests. I have a 
> program for annotating pdf files called Jarnal that 
> incorporates itext - which is a fabulous program. A user 
> recently sent me some pdf files with strange properties. The 
> attached file is a pdf tax form that appears to have a 
> non-printing part at the stop. All of the renderers I use all 
> render the top "non-printing" portion; however, if I import 
> the file into itext using (roughly)
> 
> com.lowagie.text.Rectangle r = new 
> com.lowagie.text.Rectangle((float) w, (float) h);
> document = new com.lowagie.text.Document(r);
> writer = com.lowagie.text.pdf.PdfWriter.getInstance(document, os);
> document.open();
> cb = writer.getDirectContent();
> writer.getImportedPage(reader, pi + 1);
> cb.addTemplate(pg, fscale, 0f, 0f, fscale, margX, -margY + 
> pageH - (fscale * hh));
> 
> the "non-printing" portion disappears from the document, at 
> least according to my renderers.
> 
> Regards,
> 
> David
> 
> David K. Levine
> Department of Economics
> UCLA                       http://www.dklevine.com/
> Los Angeles, CA 90095      phone or fax: (310)-825-3810  
>     
>   
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to