pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kushal sheth <kushal.sh...@gmail.com>
Subject Overlapping issue is coming when try to set value using PDFBox
Date Thu, 23 Jun 2011 12:13:27 GMT
Hi All,

I am facing overlapping issue when i try to set value inside text box. Text
is getting overlapped.

This is the code that i have written  to set values

PDDocument testDocument = null;

File input = new File("input.pdf");

testDocument = PDDocument.load(input);

PDDocumentCatalog documentCatalog = testDocument.getDocumentCatalog();
PDAcroForm acroForm = documentCatalog.getAcroForm();

 PDField fieldFromDocument1 = acroForm.getField("testName");
 fieldFromDocument1.setValue("Test Name");

 PDDocument updatedTestDocument = testDocument;

Can anyone give suggestions to resolve this issue?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message