2016-01-22 36 views

回答

2

您可以编写一个简单的shell脚本,将图像集转换为pdf:How can I convert a series of images to a PDF from the command line on linux?并为1,2,3,...,在特定目录中的所有图像文件。

创建包含单个图像拷贝的目录应该也很简单,从一个具有所需大小的图像文件开始,例如, 64KB。

# pseudocode - don't test it 
END=5 
for i in {1..$END}; do cp ./image ./image_$i; done 
for i in {1..$END}; do convert ./image_{1..$i} mydoc_$i.pdf; done 
相关问题