简体   繁体   English

版本控制和与 pdf 合并; 不断更新的注解

[英]version control and merging with pdfs; constantly updated annotations

I am using lots of pdfs for my research and studies.我正在使用大量 pdf 进行研究和研究。 I highlight the important statements and claims with color code, and often add text annotations to the pdf as well.我用颜色代码突出了重要的陈述和主张,并且经常在 pdf 中添加文本注释。 I do all these at my work PC, at my home pc and also on my tablet.我在工作电脑、家用电脑和平板电脑上执行所有这些操作。 I am looking for a way to share new files, as well as share the newly added annotation to my other devices.我正在寻找一种方法来共享新文件,以及将新添加的注释共享到我的其他设备。 The versioning, sharing and merging is not intended for the pdf text, but for the annotations.版本控制、共享和合并不是针对 pdf 文本,而是针对注释。 I was only able to find solutions where the text of the pdf was checked 1 (but even than, I am unsure about the merging).我只能找到 pdf 的文本被选中1的解决方案(但即便如此,我不确定是否合并)。

I've got a small NAS, which I can use as a server.我有一个小型 NAS,可以用作服务器。 I was considering a version control server, such as git, for this task, but I have not find any way how git could check whether there was any change in the pdf and merge it.我正在考虑为此任务使用版本控制服务器,例如 git,但我还没有找到 git 如何检查 pdf 是否有任何更改并将其合并的方法。 Even though pdfs are binary, but the annotations are there in plain text and I was able to see the differences in vimdiff.尽管 pdf 是二进制文件,但注释以纯文本形式存在,我能够看到 vimdiff 中的差异。 (Though diff and tkdiff did not help) (虽然 diff 和 tkdiff 没有帮助)

I have used my Dropbox account before, but I've reached the storage limit, and I do not intend to pay 200€/year if I have my own server available.我以前使用过我的 Dropbox 帐户,但我已经达到存储限制,如果我有自己的服务器可用,我不打算支付 200 欧元/年。 Also I would like to be able to work off-line on the pdfs, therefore some kind of merging will be necessary.此外,我希望能够离线处理 pdf,因此需要进行某种合并。 This is the same reason why I can't just work in one shared.network drive.这就是为什么我不能只在一个 shared.network 驱动器上工作的原因。

This issue is a complex one, and I can imagine solutions at different abstraction level.这个问题很复杂,我可以想象不同抽象级别的解决方案。 I would be glad even for solutions which does not involve git or co.即使对于不涉及 git 或 co 的解决方案,我也会很高兴。

You can use something like NextCloud to replace Dropbox.您可以使用NextCloud 之类的东西来替换 Dropbox。

As for merging PDFs, this is generally not possible due to the - as you already noted - binary nature of PDF files.至于合并 PDF,这通常是不可能的,因为 - 正如您已经注意到的 - PDF 文件的二进制性质。 Even if some parts are visible with a text-based diff, this doesn't mean that merging such changes would create a valid and functioning PDF file.即使某些部分在基于文本的差异中可见,但这并不意味着合并此类更改会创建有效且正常运行的 PDF 文件。

Your only chance would be a tool that stores the annotations outside of the PDFs, in a merge-friendly text format.您唯一的机会是使用一种工具,该工具以易于合并的文本格式将注释存储在 PDF 之外。

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

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