imprimir pdf con comando execute

HMG en Español

Moderator: Rathinagiri

Post Reply
jparada
Posts: 430
Joined: Fri Jan 23, 2009 5:18 pm

imprimir pdf con comando execute

Post 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
ClaudioGalera
Posts: 47
Joined: Tue Jul 14, 2009 1:14 pm
Location: Mar del Plata, Argentina

Re: imprimir pdf con comando execute

Post 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
jparada
Posts: 430
Joined: Fri Jan 23, 2009 5:18 pm

Re: imprimir pdf con comando execute

Post 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
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: imprimir pdf con comando execute

Post by Rathinagiri »

Instead of Acrobat, have you tried the open source viewer Sumatra?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply