wrsyd 发表于 2021-10-2 09:13

iPad上如何对pdf等文件实现增量同步

平时有在电脑和iPad上标注和同步pdf的需求,同步软件使用的是群晖的Drive,电脑上标注完后上传同步很快,但是在iPad上就遇到了问题。

目前在iPad上使用pdf expert进行标注,每次标注完成进行同步的方式是重新上传整个文件,于是问题就来了,我有很多pdf文件都有几百兆大小,次次重新上传着实麻烦,所以有什么好的解决方案么

SICP 发表于 2021-10-2 09:32

iCloud

六尺之下 发表于 2021-10-2 10:09

估计不太行,同步盘都是监测文件改动的,只要是笔记被添加到PDF文件里,就得整个PDF重新上传到服务器。

要实现你的目标有两个条件,一是笔记跟PDF是单独文件保存;二是笔记文件在PC上也要能识别,也就是说这个PDF阅读器在手机和PC上都要有客户端。

zouyun147 发表于 2021-10-4 16:36

增量在二进制文件实现起来没啥通用的好办法吧

—— 来自 vivo NEX S, Android 10上的 S1Next-鹅版 v2.4.4.1

Redis 发表于 2021-10-4 16:44

SICP 发表于 2021-10-4 16:57

Redis 发表于 2021-10-4 16:44
这个不大可能

pdf的注释是格式内部的,注释一改,你的文件的md5就变了。不管什么网盘,最后其实都是对比md ...

不是吧,我记得软件的注释是不修改PDF本身的,额外存在另外文件里

password 发表于 2021-10-4 17:24

SICP 发表于 2021-10-4 16:57
不是吧,我记得软件的注释是不修改PDF本身的,额外存在另外文件里

Adobe官方的标准,Comments就是放文件里面的,否则LZ哪来这个问题

https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf

7.2.3 Comments
Any occurrence of the PERCENT SIGN (25h) outside a string or stream introduces a comment. The comment consists of all characters after the PERCENT SIGN and up to but not including the end of the line, including regular, delimiter, SPACE (20h), and HORZONTAL TAB characters (09h). A conforming reader shall ignore comments, and treat them as single white-space characters. That is, a comment separates the token preceding it from the one following it.
EXAMPLE
The PDF fragment in this example is syntactically equivalent to just the tokens abc and 123.
abc% comment ( /%) blah blah blah
123
Comments (other than the %PDF–n.m and %%EOF comments described in 7.5, "File Structure") have no semantics. They are not necessarily preserved by applications that edit PDF files.

Redis 发表于 2021-10-4 17:31

SICP 发表于 2021-10-4 18:08

password 发表于 2021-10-4 17:24
Adobe官方的标准,Comments就是放文件里面的,否则LZ哪来这个问题

https://www.adobe.com/conten ...

我以为他想把在PDF上用“笔”写的东西保存

回忆and无语 发表于 2021-10-4 20:09

自己造个轮子,文件分块后计算哈希,只传更新过的部分
页: [1]
查看完整版本: iPad上如何对pdf等文件实现增量同步