Está en la página 1de 2

-------------------------

la siguiente linea es muy util para convertir el pdf en varias imagenes. la


ruta "sOutputFile=d:/preview.jpg d:/hola-mundo.pdf" indica en donde
esta el archivo y en donde va a quedar
--------------------------

Gswin64c -dSAFER -dBATCH -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4


-dFirstPage=1 -dLastPage=1 -r300 -sOutputFile=d:/preview.jpg d:/hola-mundo.pdf

------
Se puede especificar cuantas paginas seran convertidas a jpeg definiendolas con
-dFirstPage y -dLastPage,
"realmente no me ha funcionado y toca hacerlo una por una"
------

Gswin64c -dSAFER -dBATCH -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4


-dFirstPage=1 -dLastPage=24 -r300 -sOutputFile=d:/bodega.jpg d:/bodega.pdf

--------------------
esta variante si genera los pdf numerados de todas las paginas

Gswin64c -dSAFER -dBATCH -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4


-r300 -sOutputFile=d:/hola-mundo-%03d.jpeg d:/hola-mundo.pdf

---------------
concatenando
--------

Gswin64c -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite


-sOutputFile=d:/resultado.pdf d:/page1.pdf d:/page2.pdf

---------------
Comprimiendo
--------------------------

Gswin64c -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite


-sOutputFile=d:/page1-compress.pdf d:/page1.pdf

------------------------------
imagenes a pdf***** todavia no funciona

----------------

Gswin64c -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=d:/foo.pdf "C:\Program


Files\gs\gs9.54.0\lib\viewjpeg.ps" d:\first.jpg viewJPEG showpage

-------------------------------------
para convertir a imagenes PNG

Gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4


-sOutputFile=d:/salidapng-%03d.png d:/origen.pdf

------------------------------------
para renderizar la imagen anterior a 300 dpi

Gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -r300


-sOutputFile=d:/salida-renderizada_300.png d:/entrada.png

-----------------------
cambiar fuentes

Gswin64c -q -dBATCH -sFONTDIR=c:/windows/fonts -sCIDFMAP=lib/cidfmap -dNOPAUSE


-dBATCH -sDEVICE=pdfwrite -sOutputFile=d:/salida.pdf d:/entrada.pdf

También podría gustarte