How to hide text in an PDF file?

How can I add text to a pdf document, which is not visible? The document manipulation should be done in java. The usecase is to add further metadata to a document (in a proprietary format, about 40kb), before the document is signed and archived. I tried: - annotation field with size 0,0 - .txt file attachment but, this annoys readers of the PDF, because they see a difference (comment / attachment bar). Is there a comment object or a syntax to comment out lines in a PDF document? EDIT: I've tried adding text between PDF objects. This works, the problem is: acrobat reader asks to resave the file when closing window. Adding the text after %EOF is not a solution, because signing is not applied to the metadata, which is a needed feature.
You can draw smth and hide the text behind it, or write it in the same color as the background is, check this post stackoverflow.com/questions/5138286/…

以上就是How to hide text in an PDF file?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏