Software: MiKTeX, Ghostscript, Calibre, pdftk, imagemagick.
@echo off
setlocal
cd /d %~dp0
for %%I in (*.eps) do (
"C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\epstopdf" %%I
)
for %%I in (*.pdf) do (
"C:\Program Files (x86)\Ghostscript\gs9.00\bin\gswin32c.exe" -dSAFER -dNOPAUSE -dBATCH -sDEVICE#bbox "%%I" 2> bounding
"C:\Program Files (x86)\Calibre2\pdfmanipulate.exe" crop -o "%%~nICropped.pdf" -b bounding "%%I"
)
for %%I in (*Cropped.pdf) do (
"C:\Program Files (x86)\pdftk\pdftk.exe" "%%I" cat 1-endE output "%%~nIRotated90.pdf"
)
Wednesday, December 21, 2011
Tuesday, September 23, 2008
Welcome to my memo blog
The sole purpose of this blog, at this stage, is to serve as a repository of information. Most of the content of this blog will be gleaned from the web. Some of the content will summarize my own experience. Most of the content will be related to my laptops and the software I use.
This blog is like a giant memo.
This blog is like a giant memo.
Subscribe to:
Posts (Atom)