Absolutely. Check out PdfStamper.getOverContent(). You might end up composing your text-etc in a separate Document, saving it to a ByteArrayOutputStream and importing those pages as templates onto the existing page content.
--Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::Disclaimer<Cardiff> DisCard; > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Wednesday, January 20, 2010 12:25 AM > To: [email protected] > Subject: Spam: [iText-questions] Adding text to an existing PDF > > > Hello list > > I have this problem, I've been given one PDF with just a > background image on > it and I have to write on it some text. > > The first solutions I adopted had been to get the image they > originally used > for the PDF, and use it to compose a brand new PDF with the > content I need in > it. It nearly works in the way that the PDF is composed > correctly, but the > customers object that the background is slightly less defined > than the one in > the PDF they gave me, so they're asking to actually put the > context in the PDF > they gave me to keep the "graphical part" as the one they gave me. > > Is it possible to use an existing PDF like it was a blank > sheet and add the > text and graphical components to it? > > I'm looking around since some days now, but what I found is > the append of > pages from different original PDFs and a lot of advices not > to try to modify > existing PDFs as it brings a lot of problems. > > Thanks in advance > > Raffaele Mottalini > > -------------------------------------------------------------- > ---------------- > Throughout its 18-year history, RSA Conference consistently > attracts the > world's best and brightest in the field, creating > opportunities for Conference > attendees to learn about information security's most > important issues through > interactions with peers, luminaries and emerging and > established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > 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 > 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/ ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ 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 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/
