I have 280 pgn files that I want to merge and convert into one pdf.
PNG files names are in the sequence p000.png, p001.png etc and total space is about 30mb.
I did:
convert p00*.png to myfile.pdf
and it worked fine. Luckly enough in the right order.
But when I do:
conver p*.png to myfile.pdf
It consumes all my 4Gb of memory and half my swap. Then it crashes with the error
convert: memory allocation failed `myfile.pdf' @ error/pdf.c/WritePDFImage/1595.
Any idea of how to make a workaround to this problem?
I think that a good enough solution would be to use convert
one file at a time to pdf, with the same name. Then use pdfunite
or pdftk
to merge them. But I don't know how to use convert
in this way.
pdflatex
to place all the pngs on one pdf. More infos are on TeX.SX.