embed serial number to PDF file?

独自空忆成欢 提交于 2019-12-11 07:34:23

问题


To prevent the casual distribution of pdf document, is there any way such as embedding the serial number to the file?

My idea is to embed the id bound to user and enable to find who distribute the file. I know it's not preventing the distribution but may discourage the casual distribution by the certain level.

Any other solution is also welcome.

Thanks!


回答1:


Common way is placing of meta data, but you can easily remove them. Let's search hideouts (most of them low-level)!

  • Non-mark text
  • Text under overlapping objects
  • Objects of older versions (doesn't noticed by reader, but there with redundant information)
  • Marks in streams between BX-EX (with weird information from readers point of view)
  • Information before %PDF-X
  • Information above %%EOF
  • Substitution of names for some elements (like font name)
  • Steganography
    • Manipulation from used fonts
    • Whitespacing
    • Images with setganograpy

My favorite are steganography and BX-EX block within stream, with proper compression and/or encryption it is hard to find (if do not know, where it is). To make search harder wrap some normal blocks with BX-EX.

Some of ways are easy to remove, some harder, but decided attacker will be able to find and sanitize them all. Think about copy-paste of text or print trough PDF-printer.





回答2:


You can render transparent text. You can write text outside the media box of a page. You can add custom document property. There are plenty of ways to do this.




回答3:


Why not create a digital id on the documents?



来源:https://stackoverflow.com/questions/5348053/embed-serial-number-to-pdf-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!