I've need to turn 4 png files into a pdf with 1 file per page, and was trying to do this using
Code: Select all
convert example1.png example2.png example3.png example4.png example.pdf
The conversion appears ok, (no errors reported, pdf gets created) but I am unable to open them, I have tried zathura and epdfview but both report the pdfs are broken. Running epdfview in bash gives;
Code: Select all
$ epdfview test.pdf
Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
I used imagemagick to reduce the colours in the initial files I wanted to convert and this worked fine so parts of it at least are working.
I cant decide if this is something I'm doing wrong, a dependency I'm missing, or an bug?