Skip to main content

[archive] "Silently" print a PDF?

  • March 19, 2010
  • 5 replies
  • 1 view

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel

5 replies

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel
Are you printing an already existing PDF file? I use a command line utility PDFP.EXE to print existing files.

i.e.

CALL "C$SYSTEM" USING "PDFP TESTFILE.PDF" 32.

It prints to the default printer. It actually calls adobe routines and as such you must have at least the adobe free reader installed. If you're printing multiple forms you will need to pause a couple of seconds between calls.

There are other ways, but this is simple and straight forward. I have used the active-x control and it would work too.

Just search for pdfp.exe on the web if you're interested.

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel
Are you printing an already existing PDF file? I use a command line utility PDFP.EXE to print existing files.

i.e.

CALL "C$SYSTEM" USING "PDFP TESTFILE.PDF" 32.

It prints to the default printer. It actually calls adobe routines and as such you must have at least the adobe free reader installed. If you're printing multiple forms you will need to pause a couple of seconds between calls.

There are other ways, but this is simple and straight forward. I have used the active-x control and it would work too.

Just search for pdfp.exe on the web if you're interested.

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel
Are you printing an already existing PDF file? I use a command line utility PDFP.EXE to print existing files.

i.e.

CALL "C$SYSTEM" USING "PDFP TESTFILE.PDF" 32.

It prints to the default printer. It actually calls adobe routines and as such you must have at least the adobe free reader installed. If you're printing multiple forms you will need to pause a couple of seconds between calls.

There are other ways, but this is simple and straight forward. I have used the active-x control and it would work too.

Just search for pdfp.exe on the web if you're interested.

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel
Darrell,

That works very well, thanks!

Nigel

[Migrated content. Thread originally posted on 18 March 2010]

Hi all,

I have a need to "silently" print a PDF. I've tried creating an invisible browser control, loading the PDF, and using:

MODIFY MY-BROWSER, PRINT-NO-PROMPT = 1

but that still pops up a dialog (presumably because it's a PDF).

Am I going to have to start delving around in the Adobe Active-X control? If so, has anyone already done that?

Cheers

Nigel
Wow! Cool - thanks.