Upgrade My PDF Files from Version Using Java
I am currently using Java to get a PDF document and add text using PDFBox to it.
I would like to know how I can 开发者_开发技巧upgrade my existing PDFs from version 1.2 to version 1.3 and above.
Thanks
I can recommend the iText library http://itextpdf.com/ . It has some very useful PDF manipulating functions.
The 1.3 version adds features and is backwardly compatible with 1.2 so you would need to recreate it really with a tool which can produce 1.3 output.
If you just want to hack the version number for some reason, you could just edit the version number in the first line of the PDF file (remember it is a binary file so do not edit it in a text editor as this would generally corrupt the file).
The problem was the SAP business Objects when creating a PDF file it was not allowing any other program alter the PDF.
精彩评论