Heim  >  Artikel  >  php教程  >  在Linux下修复损坏的PDF文件

在Linux下修复损坏的PDF文件

巴扎黑
巴扎黑Original
2016-11-07 10:23:541902Durchsuche

在Linux下修复损坏的PDF文件

现在修复损坏的PDF文件,修复效果比较不错的只有“Recovery Toolbox for PDF ”这个软件的了,而且是收费的,很难找到破解版,只有windows版本。

找了很久,才发现Linux下确实有非常好的方法修复PDF文件,两种方法结合起来,效果更好:


mutool clean bad.pdf good.pdf

导出来的文件已经基本修复得差不多。


pdftocairo -pdf good.pdf  best.pdf

这样就能导出恢复效果比较好的pdf文件,当然不能保证能恢复100%的内容。

 

------ English version------


The best PDF recovery software is “Recovery Toolbox for PDF” in Windows, but it is not free and no cracked version.
I find the useful tools for a long time, and find a best way in Linux to repair corrupted  PDF file.Combining two methods will be good:


1.mutool clean bad.pdf good.pdf
This way pdf file is to be recovered the the most data .

2.pdftocairo -pdf good.pdf  best.pdf
This way is to continue to recover the  visible content.


mutool is from http://mupdf.com/  and pdftocairo is from poppler.


Original Page:http://superuser.com/questions/278562/how-can-i-fix-repair-a-corrupted-pdf-file


Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn