有没有简单的方法可以转换pdf文件中的图像?
我有几本书是我绝对必须读的;它们是一套 PDF 文件形式的微积分教科书。问题是这些pdf文件中的图形和图像都是png,这显然是我的kindle不支持的。无论如何,我可以将这些图像批量转换为 jpeg 或 pdf 文件中的任何其他格式。我已经尝试了一切,从将 pdf 转换为其他格式(方程格式不允许它工作),到从 pdf 文件中提取图像并进行转换。我真的需要知道是否有任何程序可以用来帮助我,或者如果可能的话,有一种方法可以“打开”pdf 容器,并将 png 图像切换为 jpeg 图像并替换 png 文件扩展名与 jpg。任何帮助将不胜感激。 这些书是:
http://tutorial.math.lamar.edu/pdf/CalcI /CalcI_Complete.pdf
http://tutorial.math.lamar.edu /pdf/CalcII/CalcII_Complete.pdf
I have a few books that I absolutely MUST be reading; they are a set of calculus textbooks as PDF files. The problem is that the graphs and images in these pdf file are all png, which is apparently not supported by my kindle. Is there anyway I can convert these images as a batch into jpeg or any other format inside the pdf file. I have tried everything from converting the pdf to other formats (equation formatting didn't let it work), to extracting the images from the pdf file and getting them converted. I just really need to know if there is any program I can use to help me or if maybe, there is a way I could 'open' the pdf container, and switch out the png images for the jpeg images and replace the png file extensions with jpg. Any help would be greatly appreciated.
The books are:
http://tutorial.math.lamar.edu/pdf/CalcI/CalcI_Complete.pdf
http://tutorial.math.lamar.edu/pdf/CalcII/CalcII_Complete.pdf
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一些代码可以使用 GhostScript 来做到这一点(见下文)。
这解决了所有损坏的图像对我来说很好的问题。
如果您碰巧是少数使用 Windows 7/10 64 位的 Kindle 用户之一,您可以尝试以下与正确的 dll 捆绑在一起的版本。 https://github.com/zifnab87/kindleanpub 分叉自 https://github.com/hmemcpy/kindleanpub。所有这些都可以适应
原作者的旧/新版本的 Linux/Macos/Windows 示例:
There is code that can do that using GhostScript (see below).
This fixed the issue for all the broken images fine for me.
If you happen to be one of the few Kindle users with Windows 7/10 64-bit you can try a version of the below bundled with the correct dlls. https://github.com/zifnab87/kindleanpub forked from https://github.com/hmemcpy/kindleanpub. All those can be adapted to older/newer versions of Linux/Macos/Windows
Example from the original authors: