FoxInCloud
GhostScript
Gravatar is a globally recognized avatar based on your email address. GhostScript
  Vincent H.
  All
  Jun 16, 2018 @ 12:58am

Hi Thierry,
I want to use GhostScript in my application.
Is there something already in FIC, if not, what is the best location for copying libraries ?

Gravatar is a globally recognized avatar based on your email address. re: GhostScript
  Rick Strahl
  Vincent H.
  Jun 16, 2018 @ 11:30pm

Web Connection has GhostScript support. Look at the wwGhostscript class which lets you print reports to PDF by way of a Postscript printer driver.

More info here:

This stuff hasn't changed in a long time should it should work even in old Web Connection version used by FIC.

That said, I would recommend looking at XFRX though. It's a much better solution to PDF generation as it bypasses the buggy and synchronous Windows printer driver system and goes directly to PDF. It's much more stable and a lot faster as well.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: GhostScript
  Vincent H.
  Vincent H.
  Jun 17, 2018 @ 12:03am

Thanks Rick,
In fact, I want to use GhostScript to reduce the size of a PDF with the following statement:
[-sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=] + SYS(2023) + "\PDFCompress.pdf" + MfilePDF

Gravatar is a globally recognized avatar based on your email address. re: GhostScript
  Rick Strahl
  Vincent H.
  Jun 18, 2018 @ 12:05am

wwGhostscript doesn't use the commandline tooling but plugs directly into the API Dlls. It is however much more limited in terms of options that are available.

It's possible to use the command line tooling if though - you can look at wwGhostscript and replace the DLL access with calling the Command Line version instead. The main work of the class isn't in the conversion but making sure the postscript driver prints the document properly before doing the conversion.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: GhostScript
  Vincent H.
  Rick Strahl
  Jun 18, 2018 @ 12:57am

Well understood Rick, thanks for the answers.

© 1996-2024