Skip to main content
Participant
April 21, 2023
Question

Cannot print to Adobe PDF Printer {while every other printers work}

  • April 21, 2023
  • 1 reply
  • 798 views

I created a github link to demonstrated this:

ibjduy/Adobe-PDF-Printer-Bug: Adobe PDF Printer Bug (github.com)

To reporduce the bug, just look at the ConsoleApp1, in Program.cs.

var path = @"AAA.ps";
var printerName = "Adobe PDF";//"CutePDF Writer"; //other printers work
var printer = new Printer();
printer.PrintRawFile(printerName, path, false);

 

 

This topic has been closed for replies.

1 reply

Legend
April 21, 2023

I'm not going to download apps from GitHub. This isn't stackoverflow, nor is it a place for reporting bugs to Adobe. Sometimes, though, we can help. Please 1. Show the log, don't make us run code to make one!!

2. tell us the environment (eg GUI, service), Windows 11, what?

3. Tell us what you thought would happen? Because for sure you can't redirect PDF output this way, you have to use the Acrobat API. 

Participant
April 21, 2023

1. I don't know what log you meant.

2. It's Windows 11.

3. Basically the job is to print to PS (postscript) file and then send the PS file to the same printer again.
Adobe PDF was able to produce the PS file but it doesn't print from it again. When sending the file to the printer, it showed "spooling"

but then disappeared in the Print Queue when EndDocPrinter is called.

 

For other printers like "CutePDF Writer" and "Microsoft Print to PDF", it shows spooling and then ask where to save the file.

Legend
April 21, 2023

This is not how Adobe PDF works. Technically, it is a simple PostScript driver that prints to a PDF port. The PDF port converts PostScript to PDF. If you redirect it to a file, you bypass the file, and the BEST you could expect would be to get your PS file back again. If it hangs, I doubt you could convince Adobe to "fix" the way it has behaved for over 20 years.

The Acrobat SDK give information on how to automate Distiller, through several different APIs. It is this API you need to use if you want to convert the PostScript to PDF again. (Though it seems simpler to just keep the PDF).  Yes, this is indeed a solution specific to Adobe's software, there is no generic solution to using a "print to PDF" driver to consume PostScript, nor to select an output file - even if you have a solution which happens to work with some other PostScript drivers.