You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by ma...@polaris.co.in on 2010/12/22 12:16:53 UTC

Replace PDF Content

Hi ,

     I am using pdfbox api 0.7.3. I am trying to find a particular pdf
content and then replace some text or content. (For ex: XXX to YYY)

    Some text are find and replace properly. But some text are not find and
not replace.

   And i am trying to replace length of the data, after getting my pdf
contents are overlapped.

   And another one is [Test] [Test1] [Test2] these three words are pdfbox
treated as a single word. But i need to replace each word separately.

   Am giving length of the data rest of the pdf content should wordwrap or
goto nextline. How to do this.

Please kindly give me the solution as soon as possible.


Thanks & Regards
Manikandan N
+91 9894519062



This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in


RES: Replace PDF Content

Posted by José Rodolfo Carrijo de Freitas <jo...@softplan.com.br>.
Keep in mind that you have to build the strings you´re looking for, cause
there´s no rule about how the word will be formed inside the pdf operators.

For example:
If you have the word 'pdfbox'.

It might be constructed as:
One operator with: 'pdfbox'
Or many operators each one with a piece of information: 'p'+ 'df' + 'bo' +
'x'



-----Mensagem original-----
De: manikandan.n@polaris.co.in [mailto:manikandan.n@polaris.co.in] 
Enviada em: quarta-feira, 22 de dezembro de 2010 09:17
Para: users@pdfbox.apache.org
Assunto: Replace PDF Content


Hi ,

     I am using pdfbox api 0.7.3. I am trying to find a particular pdf
content and then replace some text or content. (For ex: XXX to YYY)

    Some text are find and replace properly. But some text are not find and
not replace.

   And i am trying to replace length of the data, after getting my pdf
contents are overlapped.

   And another one is [Test] [Test1] [Test2] these three words are pdfbox
treated as a single word. But i need to replace each word separately.

   Am giving length of the data rest of the pdf content should wordwrap or
goto nextline. How to do this.

Please kindly give me the solution as soon as possible.


Thanks & Regards
Manikandan N
+91 9894519062



This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only.  If by an addressing or transmission
error this mail has been misdirected to you, you are requested to delete
this mail immediately. You are also hereby notified that any use, any form
of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in