On 14/09/2010 12:29, jerrin.cvarghese wrote:
>   I am using the Itext java lib for scaling the pdf.

Let me specify: you are using iText to scale pages
in a PDF document, more specifically by taking the
content stream of each page and applying a transformation.

> But this final Pdf do not contain the text
> box.

The text box to which you are referring is an annotation.
Annotations are NOT part of the content stream.
You are not copying or scaling that text box.

> If i use pdfCopy , then i will not be able to scale the pdf.

That's documented in chapter 6: PdfCopy preserves
the interactive content, PdfWriter doesn't.

> Is my understanding correct ?

I think that you assumed that annotations are part
of the content stream of a page. If that's so,
your understanding was wrong.

> Is there any way i can achieve scaling and adding of form
> fields.

The annotations are in the /Annots entry of the
page dictionary. You could try to fetch them,
apply a transformation to the rectangle that defines
their position, and copy them into the new document.

> Similarly , some hidden fields are getting visible.

I'm guessing that you aren't talking about fields
(as fields aren't copied), but I assume that you
are talking about OCGs?

In any case: you are doing something complex, using
code that assumes you're facing a simple task.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to