简体   繁体   English

使用Java使PDF可编辑

[英]Make PDF editable in Java

I have a PDF which is nothing but some form , for example, i have employeesheet as PDF form which is not editable. 我有只不过是某种形式的PDF,例如,我有employeesheet作为不可编辑的PDF形式。

i want to make this editable using any Java PDF api.. 我想使用任何Java PDF API使其可编辑。

it would highly appreciated if you give me an solution. 如果您给我解决方案,将不胜感激。

Thanks 谢谢

查看Apache PDFBox。

iText can do this - but why would you want to do this from code? iText可以做到这一点-但是为什么要通过代码来做到这一点? Just create the form in Acrobat or open office and be done with it. 只需在Acrobat或开放式办公室中创建表格并完成即可。 If you are trying to populate the form from a database or something, then iText would definitely be the tool for you, but adding and manipulating form elements is best done with a GUI tool. 如果您试图从数据库或其他内容中填充表单,那么iText绝对是您的工具,但是最好使用GUI工具来添加和操作表单元素。

Make sure the PDF actually contains form elements. 确保PDF实际上包含表单元素。 Otherwise you can do very limited editing. 否则,您可以进行非常有限的编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM