Page 1 of 1
imprimir pdf con comando execute
Posted: Wed Aug 24, 2011 3:12 am
by jparada
Hola,
Estoy intentando imprimir un pdf con el siguiente comando:
Code: Select all
EXECUTE OPERATION "PRINT" FILE "AcroRd32.exe" PARAMETERS cFileName //MAXIMIZE
Sin embargo no se envia ninguna impresión, si utilizo:
Code: Select all
EXECUTE OPERATION "OPEN" FILE "AcroRd32.exe" PARAMETERS cFileName //MAXIMIZE
Si funciona la apertura de los archivos pdf.
Esta faltando algo en el comando para la impresion en modo silencioso de los archivos pdf...?
Cualquier ayuda es bienvenida.
Gracias.
Saludos,
Javier
Re: imprimir pdf con comando execute
Posted: Wed Aug 24, 2011 2:09 pm
by ClaudioGalera
jparada wrote:Hola,
Estoy intentando imprimir un pdf con el siguiente comando:
Code: Select all
EXECUTE OPERATION "PRINT" FILE "AcroRd32.exe" PARAMETERS cFileName //MAXIMIZE
Sin embargo no se envia ninguna impresión, si utilizo:
Code: Select all
EXECUTE OPERATION "OPEN" FILE "AcroRd32.exe" PARAMETERS cFileName //MAXIMIZE
Si funciona la apertura de los archivos pdf.
Esta faltando algo en el comando para la impresion en modo silencioso de los archivos pdf...?
Hola Javier , para poder imprimir con el acrobat por medio del acrobat reader tenes que mandar la siguiente linea de comando :
AcroRd32.exe /P PdfFile
otros parametros son :
Open a PDF file:
AcroRd32.exe PdfFile
Open a PDF file in a new instance of Adobe Reader:
AcroRd32.exe /N PdfFile
Open a PDF file at page 7:
AcroRd32.exe /A "page=7=OpenActions" PdfFile
Open a PDF file with navigation pane active, zoom out to 50%, and search for and highlight the word "batch":
AcroRd32.exe /A "zoom=50&navpanes=1=OpenActions&search=batch" PdfFile
Print a PDF file with dialog:
AcroRd32.exe /P PdfFile
Print a PDF file silently:
AcroRd32.exe /N /T PdfFile PrinterName [ PrinterDriver [ PrinterPort ] ]
The last command will open a new Adobe Reader window, print the PDF file and then terminate its window unless that window happens to be the only Adobe Reader window left: at least one Adobe Reader window will be left open.
Fuente :
http://www.robvanderwoude.com/commandli ... hp#Acrobat
Espero que te sea útil
Saludos
Claudio
Re: imprimir pdf con comando execute
Posted: Tue Aug 30, 2011 3:11 am
by jparada
Hola Claudio,
Gracias por contestar.
Pues bien me estoy enfrentando a un tema que ingenuamente creí era muy fácil, pero ya llevo un par de días investigando sobre ellos y la verdad o no he buscado bien o no es tan fácil cómo lo había pensado, y no me refiero al tema de la impresión, eso ya lo resolví, pero el problema que ahora tengo es que me deja una ventana minimizada del acrobat y yo no quiero este comportamiento.
Así que toca seguir investigando.
Gracias.
Saludos,
Javier
Re: imprimir pdf con comando execute
Posted: Tue Aug 30, 2011 5:13 am
by Rathinagiri
Instead of Acrobat, have you tried the open source viewer Sumatra?