Recent

Author Topic: GhostScript and Lazarus?  (Read 3107 times)

snorkel

  • Hero Member
  • *****
  • Posts: 817
GhostScript and Lazarus?
« on: March 06, 2015, 07:38:35 pm »
I googled it but found little.
Just wondering if there is a component or library for Ghostscript?
I am currently using a python library https://pypi.python.org/pypi/ghostscript
***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

bylaardt

  • Sr. Member
  • ****
  • Posts: 310
Re: GhostScript and Lazarus?
« Reply #1 on: March 08, 2015, 12:11:59 am »
you can generate a .ps file with the TPostScriptPrinterCanvas from PostScriptCanvas unit.
convert it executing the ghostscript (gs on linux) with the params:
filename.ps -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile= ...

 

TinyPortal © 2005-2018