jjzjj

PDAcroForm

全部标签

java - PDFBox:如何将 "flatten"设为 PDF 格式?

如何使用PDFBox“展平”PDF表单(删除表单字段但保留字段的文本)?Samequestionwasansweredhere:aquickwaytodothis,istoremovethefieldsfromtheacrofrom.Forthisyoujustneedtogetthedocumentcatalog,thentheacroformandthenremoveallfieldsfromthisacroform.Thegraphicalrepresentationislinkedwiththeannotationandstayinthedocument.所以我写了这段代码:i