Re: pdf to full page images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 26, 2006 at 12:35:57PM -0600, Frank Cox wrote:
> On Sun, 26 Nov 2006 12:02:35 +0000
> Chris Jones <jonesc@xxxxxxxxxxxxxxxxx> wrote:
> 
> > Does anyone know if there is a tool that will convert a pdf file to multiple 
> > image files (png, gif whatever..), one for each page ?
> 
> gimp


You can take a copy of pdf2ps (just a shellscript) and modify the it to 
look like this:

...
outfile=`basename "$1" \.pdf`-%02d.tif
                             ^^^^^^^^^
...
exec gs $OPTIONS -q -dNOPAUSE -dBATCH -dSAFER -r300x300 -sDEVICE=tiffg3 "-sOutputFile=$outfile" $OPTIONS -c save pop -f "$1" 
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^

and you'll get one .tif file for each page of the pdf. Using the
"-%02d" will give one file per page and number them 01, 02, ..., 99.

From there you can convert to whatever you want with 'convert'.

Or, you can use one of the other GS output options to produce some
other output format, such as png "-sDEVICE=png16m" or others. See
"gs --help" for a list of supported formats.

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
                      The eyes of the Lord are everywhere, 
                    keeping watch on the wicked and the good.
----------------------------- Proverbs 15:3 (niv) -----------------------------

Attachment: pgpULluVlezON.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux