West Wind Internet and Client Tools
Error accessing printer spooler.
Gravatar is a globally recognized avatar based on your email address. Error accessing printer spooler.
  Bob Powell
  All
  Apr 3, 2019 @ 12:30pm

I am trying to run a simple test of the wwPDF class. CutePDF Writer is being used as the printer. I am getting error: "Class definition PDFDISTILLER.PDFDISTILLER.1 is not found." The line being executed is : loDist = CREATEOBJECT(this.cDistillerProgId)

What am I not doing?

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Rick Strahl
  Bob Powell
  Apr 3, 2019 @ 01:00pm

Looks like you're using the wwDistiller driver and that's not going to work unless Adobe Distiller is installed. CutePdf is something differerent and needs its own config.

We don't have a built-in configuration for CutePdf, but you might be able to make it work with the generic printer driver implementation.

If you're on Windows 10 or Server 2016 or later you can also use the Microsoft PDF driver that's built in.

More info in the docs:

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Rick Strahl
  Bob Powell
  Apr 3, 2019 @ 01:00pm

Looks like you're using the wwDistiller driver and that's not going to work unless Adobe Distiller is installed. CutePdf is something differerent and needs its own config.

We don't have a built-in configuration for CutePdf, but you might be able to make it work with the generic printer driver implementation.

If you're on Windows 10 or Server 2016 or later you can also use the Microsoft PDF driver that's built in.

More info in the docs:

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Bob Powell
  Rick Strahl
  Apr 3, 2019 @ 01:09pm

I switch my code to use the wwPdfPrinterDriver. The process works without error, but the .pdf file won't open in Adobe Acrobat Reader. I was hoping to use your libraries instead of FRX2Any. I can't guarantee all our users are going to have Windows 10, plus I don't have it.

Thanks for the quick response.

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Rick Strahl
  Bob Powell
  Apr 3, 2019 @ 01:17pm

We don't provide the print driver, we only provide the interface to the driver in a consistent manner for a number of supported drivers, so the output generation to PDF is consistent and easy to switch between. You'll need to use something that is available to your clients.

XFRX2ANY is a good choice as is XFRX. Not very familiar with the first but the latter is also integrated with the wwPDF classes and XFRX doesn't rely on the printer spooler which makes it much more reliable and also much faster. I think XFRX2ANY also generates PDF internally so probably similar. XFRX is also self contained so there's nothing to install - you can ship it with your app (as XFRX2ANY).

All other things require to have something installed.

For a distributed application that needs PDF output I would highly recommend using a distributable tool like XFRX or XFRX2ANY. You can still use wwPDF as the front end to the PDF generator, or use it directly with your own wrappers.

The other tools are a good choice for server applications (which are the primary use case for wwPDF as part of Web Connection) where a one time install is all that's needed.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Bob Powell
  Rick Strahl
  Apr 3, 2019 @ 01:28pm

Well when I switched to wwGhostScript the CutePDF Writer seemed to work. Thanks again.

Gravatar is a globally recognized avatar based on your email address. re: Error accessing printer spooler.
  Rick Strahl
  Bob Powell
  Apr 3, 2019 @ 01:35pm

Right - just be aware that you then have to install both CutePDF and Ghostscript on your client machines.

+++ Rick ---

© 1996-2024