If you want to add text to an existing PDF you can use PdfStamper.
----- Original Message -----
From: "Dilan" <[EMAIL PROTECTED]>
To: "'Paulo Soares'" <[EMAIL PROTECTED]>
Sent: Friday, July 29, 2005 11:59 AM
Subject: RE: [iText-questions] help editing pdf via java
> Hello Paulo,
>
> I got the pdf file on the input = new ByteArrayInputStream(af.getImg());
> as InputStream, so I figure out I have to use the
> PdfWriter to get the file,
>
> As PdfWriter(input)
>
> If I want to use ,
> document.addTitle("Hello World example");
> how can I use, Document, with input stream?
>
> All im trying to do is, read the pdf off the database and edit it, then
> output to web, via jsp.
>
>
> Dilan
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paulo
> Soares
> Sent: Friday, 29 July 2005 8:21 PM
> To: Dilan; [email protected]
> Subject: Re: [iText-questions] help editing pdf via java
>
> What do you want to do?
>
> ----- Original Message -----
> From: "Dilan" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, July 29, 2005 9:54 AM
> Subject: [iText-questions] help editing pdf via java
>
>
> >
> >
> > Hello,
> >
> >
> >
> > Im try to edit a pdf stored in database via java/itext, can some1 help
me
> or
> > guide me through?
> >
> >
> >
> > // getting the file from the database
> >
> > InputStream input = new ByteArrayInputStream(af.getImg());
> >
> >
> >
> > // writing to the pdf
> >
> > // not sure how to convert from
input
> > stream to
> >
> > //...
> >
> > Document doc = new Document();
> >
> > doc = Document.getInstance(input);
> >
> > ByteArrayOutputStream objByteOut =
new
> > ByteArrayOutputStream();
> >
> > PdfWriter writer =
> > PdfWriter.getInstance(doc, objByteOut);
> >
> > document.addTitle("Hello World
> > example");
> >
> > document.close();
> >
> >
> > response.setContentType("application/pdf");
> >
> > response.setContentLength(objByteOut
> > .size());
> >
> >
> > objByteOut.writeTo(response.getOutputStream());
> >
> > response.getOutputStream().flush();
> >
> >
> >
> > Regards,
> >
> >
> >
> >
> >
> > Dilan
> >
> >
> >
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
September
> 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions