当前位置:首页 > 资料 > 正文

pdf上的文字怎么修改,免费修改pdf文字教程

今天,我给大家分享一下如何手动修改PDF,什么样的方式才是PDF推荐的。

创造PDF不是用来取代Office,然而超乎意料的是,人们对修改PDF有着强烈的需求。PDF的页面像积木一样,把文字整齐地排列在一起。就像是活字印刷,可以说牵一发而动全身。

PDF页面由很多Box框组成

因此,你的一点修改可能要移动一大段内容,甚至另起一页,导致后面的Page都得重新排版……。好的PDF编辑软件,不会在原来的PDF上做修改,而是修改好之后覆盖原来的文件。我们先看一个示例,如何以正确的方式修改文件的作者。

%PDF-1.61 0 obj<</Type /Catalog /Pages 2 0 R>>endobj2 0 obj<</Type /Pages /Kids [3 0 R 5 0 R] /Count 2>>endobj3 0 obj<</Type /Page /Parent 2 0 R /Contents 4 0 R /Resources 7 0 R /MediaBox [0 0 500 600]>>endobj4 0 obj<</Length 44>>streamBT/F1 24 Tf 100 100 Td (Hello world!) Tj/F1 12 Tf 0 20 Td (created by simbaba) TjETendstreamendobj5 0 obj<</Type /Page /Parent 2 0 R /Contents 6 0 R /MediaBox [0 0 500 600]>>endobj6 0 obj<</Length 0>>streamendstreamendobj7 0 obj<</Font <</F1 8 0 R>>>>endobj8 0 obj<</Type /Font /Subtype /Type1 /BaseFont /Helvetica>>endobjxref0 90000000000 65535 f0000000010 00000 n0000000059 00000 n0000000140 00000 n0000000203 00000 n0000000302 00000 n0000000387 00000 n0000000437 00000 n0000000471 00000 ntrailer <</Size 9 /Root 1 0 R>>startxref600%%EOF

原始PDF内容

首先,你确实可以在原文上进行修改,但推荐的方式是根据PDF规范,采用累加的方式更新PDF文件。

The contents of a PDF file can be updated incrementally without rewriting the entire file. Changes are appended to the end of the file, leaving its original contents intact. In an incremental update, any new or changed objects are appended to the file, a cross-reference section is added, and a new trailer is inserted.

PDF文件的内容可以增量更新,而无需重写整个文件。 更改将附加到文件末尾,而其原始内容保持不变。 在增量更新中,任何新的或更改的对象都将附加到文件中,添加交叉引用部分,并插入新的trailer。

修改作者后的PDF

因此,你只要在原来PDF文件的后面,追加一段内容就可以覆盖原来的PDF对象,起到修改原文的作用。

前面内容省略。。。。。。xref0 90000000000 65535 f0000000010 00000 n0000000059 00000 n0000000140 00000 n0000000203 00000 n0000000302 00000 n0000000387 00000 n0000000437 00000 n0000000471 00000 ntrailer <</Size 9 /Root 1 0 R>>startxref600%%EOF4 0 obj<</Length 44>>streamBT/F1 24 Tf 100 100 Td (Hello world!) Tj/F1 12 Tf 0 20 Td (created by trump) TjETendstreamendobjxref0 10000000000 65535 f4 10000000822 00000 ntrailer <</Size 10 /Root 1 0 R /Prev 591>>startxref957%%EOF

今天你学到了吗?《手写PDF系列》引用的PDF文件,都是未经压缩的,你也可以复制到记事本另存为PDF文件试一试。

pdf上的文字怎么修改,免费修改pdf文字教程  第1张