I've already used iReport/JasperReport, iNetDesigner and others reporting systems with dedicated editor.

For a new project, I'm trying to get a template with placeholder like $NAME$, then merge/inject the actual data.

PDFBox can manipulate a PDF, there's an example that sounds interesting: ReplaceString takes a PDF file in input then replaces some text .... BUT!!!

I tried to produce a PDF template with LibreOffice then export to PDF, Word 2k and PDF Creator (a virtual printer) but none worked!

PDFBox reads always the text correctly, but with LibreOffice's PDF I need to encode/decode text, with PDF Creator's the text is plain but my placeholders are splitted along several COSString objects (1-3 chars each), making the replace a nightmare!

Is there a way to create (export) a PDF with the placeholder intact, or am I doomed to use a dedicated (and limited) editor?

link|improve this question
feedback

migrated from stackoverflow.com Dec 13 '11 at 16:50

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.