将 PDF 中的所有文本颜色转换为黑色,同时确保文本可选择
寻找使用开源命令行工具(或包)将 PDF 中所有文本的颜色更改为黑色的方法,同时确保文本呈现为文本。
感谢 SO 上的一些答案,找到了将 PDF 转换为灰度的命令。
gs -o op.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -f ../ColorTest.pdf
PDF 示例 此处
但是,要求文本为黑色。
任何关于如何实现这一点的详细步骤或指示将受到高度赞赏。
Looking for ways to change the color of all text in a PDF to black using an open-source command-line tool (or package) while ensuring that text is rendered as text.
Thanks to some answers on SO, found a command to convert the PDF to grayscale.
gs -o op.pdf -sDEVICE=pdfwrite -sColorConversionStrategy=Gray -f ../ColorTest.pdf
PDF Sample here
However, the requirement is for the text to be black.
Any detailed steps or pointers on how this can be accomplished would be highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)