最佳答案
有没有什么实际的方法可以使用 Python 从图像文件列表中创建 PDF?
在 Perl 中我知道 that module,用它我只需要3行就可以创建一个 PDF 文件:
use PDF::FromImage;
...
my $pdf = PDF::FromImage->new;
$pdf->load_images(@allPagesDir);
$pdf->write_file($bookName . '.pdf');
我需要做一些非常类似的事情,但是是在 Python 中。我知道 pyPdf模块,但我想要一些简单的。