[pstricks] PDF output

Herbert Voss LaTeX at zedat.fu-berlin.de
Wed Jun 20 15:38:50 CEST 2007


Hi all,
attached is a little script which converts your PSTricks
images to single eps and pdf images and then run pdflatex
to create a pdf file of the document. Attached is a test suite,
which works well. It was not tested with big documents and
nested pspicture environments.

PST2pdf.pl test.tex

creates a file test-pdf.pdf and several images test-tmp-X.eps
and test-tmp-X.pdf. The pdf images will be inserted in the
last pdftex run for the pdf output of the document.

-rwxr--r--   1 voss users  7654 20. Jun 15:27 PST2pdf.pl
-rw-r--r--   1 voss users 92330 20. Jun 15:28 test-pdf.pdf
-rw-r--r--   1 voss users   530 20. Jun 15:28 test-pdf.tex
-rw-r--r--   1 voss users  2623 20. Jun 15:28 test.plog
-rw-r--r--   1 voss users   844 20. Jun 15:23 test.tex
-rw-r--r--   1 voss users 18233 20. Jun 15:28 test-tmp-0.eps
-rw-r--r--   1 voss users  3054 20. Jun 15:28 test-tmp-0.pdf
-rw-r--r--   1 voss users 19390 20. Jun 15:28 test-tmp-1.eps
-rw-r--r--   1 voss users  3508 20. Jun 15:28 test-tmp-1.pdf
-rw-r--r--   1 voss users 19779 20. Jun 15:28 test-tmp-2.eps
-rw-r--r--   1 voss users  3653 20. Jun 15:28 test-tmp-2.pdf
-rw-r--r--   1 voss users 68666 20. Jun 15:28 test-tmp-3.eps
-rw-r--r--   1 voss users 14808 20. Jun 15:28 test-tmp-3.pdf
-rw-r--r--   1 voss users 17242 20. Jun 15:28 test-tmp-4.eps
-rw-r--r--   1 voss users  3419 20. Jun 15:28 test-tmp-4.pdf
-rw-r--r--   1 voss users 51709 20. Jun 11:37 tux.jpg

The script extracts all pspicture and postscript environments as
single documents and creates the pdf images.  Tested only
under my Linux system. The script needs , of course Perl,
latex, pdflatex, dvips, ps2pdf, pdfcrop, pdftops. Should be
available with any tex distribution.

Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PST2pdf.tgz
Type: application/x-compressed-tar
Size: 54883 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20070620/6ad914aa/attachment.bin 


More information about the PSTricks mailing list