You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Christian Grobmeier <gr...@gmail.com> on 2011/10/01 18:10:28 UTC

Cannot replace Strings in PDF

Hello,

I have copied the example "ReplaceString" from the current pdfbox
1.6.0 (java version).
Now i started it with a PDF generated with LibreOffice. It contains
only one word which should be replaced. Unfortunately this doesn't
happen. Debugging the example, it seems there are many spaces
reckognized but not my word.

I have had "Times New roman" as font, and tried "Arial" later. No success.

So....... is it my fault using LibreOffice? ;-)

Looking at another pdf from the internet, I could at least all the
signs on my console (added sysout) and replace a string.

Just curious - what are the requirements to make a PDF which works with PDFbox?

Thanks
Christian

-- 
http://www.grobmeier.de