is there any changes done to the arguments of ghostcript in the new release 9.55.0 - ghostscript

we recently upgraded ghostscript from 9.18.0 to 9.55.0. The pdf to tiff conversion is not working with ghostscript version 9.55.0 but it still works with 9.18.0.
We are trying to convert .pdf file to .tiff file using ghostscript. Recently we upgraded the version of ghostscript from 9.18.0 to 9.55.0. below is the arguments we are passing to the version 9.18.0 and it still works fine.tiff file is created
-q -sDEVICE=tiffg4 -r200x200 -dNOPAUSE -dBATCH -sOutputFile=E:\iCapture\mu\X25470003012022022440.tif E:\iCapture\mu\X25470003012022022440.pdf
But when we are passing same arguments to version 9.55.0 its not cretaing the tiff file. Please let me know if any changes to be done to the arguments or do we need to perform any printer setup action after upgradation of the ghostscript. Because we upgraded the ghostscript software and directly we were trying to convert. are we missing any steps after installation?. Thank you! It will be very helpful if we get any insights on this this issue.

Related

Error using Ghostscript to convert PDF to PDF/A

I tried this command:
gs -dPDFA -dBATCH -dNOPAUSE -sProcessColorModel=DeviceRGB -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=/tmp/test/pdfa/pdftopdfa.pdf /tmp/test/pdftopdfa.pdf
But I got this error:
Artifex Ghostscript 9.14: Can't find initialization file gs_init.ps.
I tried another command:
gs -dPDFA -dBATCH -dNOPAUSE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=/tmp/test/pdfa/23238input.xml_2.pdf 23238input.xml_2.pdf
But i got this error:
Artifex Ghostscript 9.14 (2014-03-26) Copyright (C) 2014 Artifex
Software, Inc. All rights reserved. This software comes with NO
WARRANTY: see the file PUBLIC for details. Can't find (or open)
initialization file (gs_std_e.ps) Unrecoverable error: undefined in
.uninstallpagedevice Operand stack: gs_std_e.ps gs_std_e.ps
gs_std_e.ps
Well firstly you are using an old version of Ghostscript, you should probably upgrade.
Secondly wherever you got it from, its non-standard because it has the PostScript resources stored on disk, the default is for them to be built into the binary as a ROM file system.
Finally it appears that the resources on disk are either missing or corrupted. You could search for them, they are usually in somewhere like /usr/local/bin/ghostpdl/Resource and then use the -I switch to present that path to Ghostscript so it knows where to look.
But since its an old version then I'd suggest you get the current version (9.21) instead. If you get a package, and that fails to work, then you should complain to the package maintainer. If you feel up to it you can simply clone the Ghostscript Git repository and build it yourself, its not hard if you have a working C compiler (gcc). Lastly, there are pre-built Linux binaries here which may work on your system, depending on what your setup is.
A couple of notes on your command line; you have not specified the PDFA_def.ps file which you will have to do in order to create a valid PDF/A file, see this documentation but note that's the current 9.21 docs. If you don't supply that file (properly modified from the supplied model) then you won't be able to create a conforming PDF/A file.
Do not use -dUseCIEColor unless you have a very good reason, if you don't know what it does (and I'm guessing you don't) then you don't have a good reason. If you use it without understanding you'll only adversely impact performance and possibly get poor colour reproduction.

TYPO3 can't read or create pdf thumbnails with imagemagick or graphicsmagick

I'm using TYPO3 CMS 7.6 with PHP 5.5.2 on a Windows Server 2012 (IIS), my Server administrator installed ghostscript, graphicsmagick 1.3.25 and imagemagick. Now I use graphicsmagick:
C:/GraphicsMagick/gm.exe
It works, test all graphic manipulation on install tool: Convert image formats to jpg or scaling or combining images ... only PDF Thumbnails or convert PDF to JPG isn't working.
Screenshot:
Error:
Read pdf
Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['im_path'] and ['GFX']['im_path_lzw'] and ensure Ghostscript is installed on your server.
The path to gm or im is correct, because the other formats are working fine.
[GFX][im_path] = C:/GraphicsMagick/
[GFX][im_path_lzw] = C:/GraphicsMagick/
Me and my system admin don't know why TYPO3 can't create PDF Thumbnails in backend and frontend. Maybe there's something with ghostscript .. but he can create pdfs via windows command line?!? So that's a TYPO3 Problem?!
Thanks for your help or hints. ..
No PDF Thumbnails , see backend
with installing GraphicsMagick also install Ghostscript on window Server. You can download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html. Before downloading please check also the window is 64 bit or 32 bit.Then again check Environment>image Processing and Test Image. Then in "Image processing" everything is loaded successfully also "Read pdf" and "Read ai"
I have still the same problem. My TYPO3 7.6.24 LTS will not convert PDF- and AI-files to jpg. All other files are working.
Today I've update ghostscript 9.22 and graphicsMagic 1.3.23 on my windows server (IIS). Everything runs with 64bit now.
Successfully, I also tested GraphicsMagick to convert the pdf to jpg via command line cmd.exe, f.e.
"c:\Program Files\GraphicsMagick\gm.exe" -convert -geometry 160x130 c:\temp\test.pdf c:\temp\test123.jpg
But it won't work with TYPO3, see error on initial post ... now I've no idea anymore ..?! anyone else?
Have you also set the path of GraphicsMagick in TYPO3 admin panel settings>Configuration Presets>Image handling settings>write a path or select a path it should be like this screenshot as below

Getting error, ImageMagick/GraphicsMagick is not installed. windows

I am trying to use ImageMagick to manipulate photos in my rails app but when I upload the photo and post it I get this error,
"Picture Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed"
Also when I try do,
irb
require 'mini_magick'
filename = '/Users/me/tmp/testfile.jpg'
image = MiniMagick::Image.open(filename)
it gives error "gives error...MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed"
ImageMagick is added to the system path, and installed successfully, I can open imagemagick through the cmd line and bring up the interface, wondering if anyone can offer some help.
correct versions are installed of ImageMagick for my operating system.
Also vcomp120.dll is installed as well.
EDIT: This is just on the development sever, not, in production.
To answer, my own question, on the ImageMagick website binaries download section, windows x64 I used and there it has a list of three commands
magick logo: "logo.gif"
magick identify "logo.gif"
magick display "logo.gif"
I was getting error display: delegate library support not built-in '' (X11) # error/display.c/DisplayImageCommand/1888. with this. I then installed GraphicsMagick as per #Bonzo comment. Still had problems and read that alot of people were having trouble with converting images and installing the legacy utilities in the windows installer corrected this adding, convert.exe, mogrify, etc. I was then getting a error ...Wrong JPEG library version: library is 90, caller expects 62... I then searched and found that other peoples were having trouble with this error, and to remove the program that is having the conflicting "libjpeg" file, for me this was GraphicsMagic, I uninstalled and displaying images is fine now.
Also check your delegates configuration magick convert -list configure and make sure jpeg or whatever format is in there you are wanting to use.

Ghostscript silent/unattended installation

I want to install ghostscript silently but actually it does not work. The Winzip SELF-Extractor pops up.
As I read the FAQ on the ghostscript site it should work with parameters /S and /NCRC
From the ghostscript site;
Can I install Ghostscript on Windows unattended?
Yes, give gsxxxw32/64.exe the /S (for silent) option.
In addition, you can add the /NCRC option (that will suppress
the CRC check, which, unfortunately, pops up a dialogue to show
progress). And /D=<install dir> to change the target directory
for the install.
But with my 8.7 Version of Ghostscript it does not work, any ideA?
Try using a recent version of Ghostscript (the current version is 9.15). The version you are using is 5 years old, I believe the documentation you are quoting is for the current version, hardly surprising it doesn't work !
It seems like the recent version doesn’t work either. This answer helped me:
choco install --yes ghostscript --version=9.24
Trying to install without a specific version also failed. Passing 9.24 did the trick.

PDF print using powerbuilder 10.5/Ghostscript

Can anyone pls tell me how to use ghostscript to print files using powerbuilder 10.5
what files I need to add. what version of ghostscript I need to use. different version for vista/xp/win 7.
Assuming that what you're looking for is printing via datawindow’s SaveAs command to PDF...
ll_rc = dw_report.saveas(ls_filename, PDF!, false)
...you'll need Ghostscript installed (available) in two locations:
C:\Program Files (x86)\Sybase\gs
C:\Program Files (x86)\Sybase\Shared\PowerBuilder\gs
The second folder is for the PowerBuilder IDE.
I’m using Ghostscript version 8.7.1. It works fine with PowerBuilder 11/12/12.5 in both Win XP and Win 7 environments.
Not sure about PB10.5 and more recent GS versions. The older Ghostscripts can be found here:
http://downloads.ghostscript.com/public/
Hope this helps.

Resources