pdf - 将文件中的图像嵌入到 groff 中?

标签 pdf groff troff

我试过 .PSPIC image.eps.PSPIC image.ps在 converthub.com 上将 jpeg 转换为 postscript 后,使用 groff -ms -p file.ms -Tpdf > file.pdf 编译,它显示为一个具有正确尺寸的框,但只有文件名作为标签,没有图像。这正是this thread说可以,但是不行。我可以很好地处理文字,但对ps图像了解不多。我究竟做错了什么?

最佳答案

来自 groff_tmac(5) man page :

The following output devices support inclusion of PS images: -Tps, -Tdvi, -Thtml, and -Txhtml; for all other devices the image is replaced with a hollow rectangle of the same size.


您可以使用 -Tps而不是 -Tpdf ,然后用 ps2pdf 进行转换:
groff -ms -p file.ms -Tps | ps2pdf - file.pdf

关于pdf - 将文件中的图像嵌入到 groff 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53038378/

相关文章:

manpage - 手册页中的句点?

image - 使用 PDF 文件作为图像

unix - 如何在手册页中转义新行

java - 如何将 EOF 发送到 Java 中的进程?

unix - 哪些工具可用于编辑联机帮助页,即 GUI WYSIWYG 编辑器(任何平台)

groff:分页后行宽不正确

java - PDF 中的文本以不同方式吐出

c# - 如何初始化 Amyuni Pdf 库的多个实例?

java - 使用 Tesseract OCR 将 PDF 转换为文本