IMG to PDF
我们需要将多张图片合并为 PDF 文档,所以该部分将记录将 IMG 转化为 PDF 的方法;
gscan2pdf
How to Convert Multiple Images to PDF in Ubuntu Linux
apt install gscan2pdf
// => File => Open
// => 选中所有图片
// => Save => PDF
img2pdf
bash – How can I convert a series of images to a PDF from the command line on Linux? – Stack Overflow
apt install img2pdf
img2pdf img1.png img2.jpg -o out.pdf
已知问题: 1)如果图片长度较长,则生成的 PDF 文件中,该图片无法正确显示(显示为细长条);
PDF to IMG
Compile a LaTeX document into a PNG image that’s as short as possible
我们需要将 PDF 转化为图 IMA 文件。该部分将记录将 PDF 转为 PNG 图片的方法;
latex(失败)
latex to dvi to png 对 \rotatebox 支持有问题,我们只能 latex to pdf to png)
ImageMagick: convert
convert -density 300 file.pdf -quality 90 file.png
Q:attempt to perform an operation not allowed by the security policy `PDF’ A:参考 ImageMagick 文档
参考文献[……]