[英]Combining a page map with a PDF so that annotations move with pages in updated PDFs
Has anyone managed to provide an end-user with an updated PDF, allowing that user to transfer his local annotations to the new PDF and keeping the annotations on the correct page, even when there are pages inserted into the update PDF at a point earlier in the PDF than the annotations. 是否有人设法向最终用户提供了更新的PDF,即使该用户在更新的PDF的早期版本中插入了页面,也允许该用户将其本地注释转移到新的PDF并将注释保留在正确的页面上。 PDF而不是注释。
I thought there might be a page map or page guid approach that someone has used. 我认为可能有人使用过页面地图或页面导航方法。
Sorry - I hope that is clear. 抱歉-我希望这很清楚。
Instead of using the page index as ID of the page, you can use the page content stream instead (after decoding/decompression). 除了使用页面索引作为页面的ID之外,您还可以使用页面内容流(在解码/解压缩之后)。 Most PDF libraries will give you access to that, so you could compute an MD5 hash from the page content and search for that instead on your "updated" file in order to know where to transfer your annotations.
大多数PDF库都会为您提供访问权限,因此您可以从页面内容中计算MD5哈希值,然后在“已更新”文件中进行搜索,以了解将注释传输到何处。
This is assuming that the page content will be indeed identical, which is not a common scenario. 这是假定页面内容确实相同,这是不常见的情况。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.