Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] how to read a pdf file exactly (example)

Sanche Schwab

2006-08-08


Bruno Lowagie <bruno <at> lowagie.com> writes:


> sanche.schwab wrote:
>
> > The pdffile is already read in a Java object wrapped. now, i want to
> > read this pdf which is in the java object with the help of the PdfReader.
>
> OK, have a look at http://itextdocs.lowagie.com/tutorial/general/copystamp/
> To see what you can do once you have a PDF file in a PdfReader object:
> you can use it to import pages in PdfWriter, PdfStamper or PdfCopy.
>
> > I want to do this because we used earlier tiffs which we then
> > converted in pdfs with the help of the image object.
>
> > now we have direct pdfs and no tiffs more. we want to add to them
> > watermarks, etc.
>
> Then you need PdfStamper. There is a watermark example in the tutorial.
> Of course, if you have a PDF full of images that aren't transparent, you
> won't see any watermark that is added UNDER the existing content.
> You will have to add your watermark ABOVE the content.
> In this case, you might want to make the watermark transparent.
>
> Before you claim there are no examples online, there is a transparency
> example here:
> http://itextdocs.lowagie.com/tutorial/directcontent/colors/index.html#transparency
>
> br,
> Bruno
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>

That works. Thanks.

Previously, when we used tiffs, we used the method
- document.add(tiffimage).
My question. When we have already a pdf,wrapped in a java object, added with a
watermark (with PdfStamper)
what is the method to add it to the document?
- document.add(xxx) there is not possibility to give a pdf as parameter to this
method.
Is there another method for that?
Cheers





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.