- Code: Select all
convert foo.pdf foo.jpg
But apparently the YDL 6.1 version of ImageMagick's convert isn't able to mess with PDF's. (Same thing happened with the PS2 LInux kit's version). Now I could always compile a new version and make certain I get PDF support in there, which is what I did on the PS2, but that's annoying, and I figured I could do it another way.
1. First make a convenient directory and put your PDF in it, helps keep things organized.
2. convert the PDF to PS (postscript)
- Code: Select all
pdftops foo.pdf
3. convert the PS to a series of images in one of the PNM (ppm) formats
- Code: Select all
pstopnm -dpi=100 -xborder=0 -yborder=0 foo.ps
You can check how the images look with:
- Code: Select all
display foo.ppm
3. Then you can convert the ppm's to JPG that the PSP can handle:
- Code: Select all
for x in $(ls -1 *.ppm); do convert -quality 100 $x $(basename $x .ppm).jpg; done
4. The PSP tends to sort things funny, based on modification date, and depending on how your images get copied they might be out of order, but you can ensure they do get copied over first page first, last page last. (modify as necessary to point to the target directory on your PSP/memory card)
- Code: Select all
for x in $(ls -1 *.jpg); do sleep 1; cp $x /target_directory_on_psp_or_card/; done
Ron Rogers Jr. (CronoCloud)