I’ve been evaluating Aspose PDF for a couple weeks. I’ve gone through the examples provided and searched through your online support but I have a question that I hope you could answer.
I’ve been trying to figure out how to open up a .pdf file and set the footer:
It’s easy enough to create a new .pdf file and set the footer:
Pdf pdf = new Pdf();
PageSetup pageSetup = new PageSetup();
Section sec1 = pdf.getSections().add();
HeaderFooter footer = new HeaderFooter(sec1);
Text footText = new Text(sec1, “Released for Manufacturing”);
pdf.save(new FileOutputStream(new File("./MyFooter.pdf")));
But I’m trying to figure out how to open an existing .pdf file.
I’ve tried working with “PdfContentEditor”
PdfContentEditor editor = new PdfContentEditor();
but it has no method for setting the footer.
Could you please provide me with an example?
Kuka Systems Corporation
6600 Center Dr. Sterling Heights, MI 48312