ImageMagick或GhostScript:将多页TIFF转换为多页PDF
我需要将多页TIFF转换为多页PDF。我可以访问ImageMagick和GhostScript(在* nix环境中)。我该怎么做呢?谢谢。
I need to convert a multi-page TIFF to a multi-page PDF. I have access to ImageMagick and GhostScript (in *nix environment). How do I do this? Thanks.
更新:
事实证明我的测试文件错误了(它没有多页),这让我觉得我的命令错了。这似乎对我有用:转换input.tif output.pdf
It turns out that my test file was wrong (it didn't have multiple pages), which made me think my command was wrong. This seems to work for me: convert input.tif output.pdf
使用libtiff提供的工具集中名为tiff2ps的工具:
Use a tool called tiff2ps from the tool set provided by libtiff:
http://www.libtiff.org/tools.html
一旦你有ps格式的tiff,就可以调用ps2pdf转换为pdf,这是大多数Linux发行版中ghostscript包的一部分。
Once you have the tiff in ps format, you can call ps2pdf to convert to pdf, which is part of the ghostscript package in most linux distributions.