Page 1 sur 1

GhostScript : Logiciel libre pour le traitement des fichiers PS et PDF

Posté : 05 oct. 2016 15:26
par simon.bernard
Image

Logiciel : GhostScript
Développeur : Artifex Software Inc.
Type de licence : Libre
Compatible XP : Oui
Compatible Win7 : Oui
Existe aussi sous Linux : Oui
Version : 9.23


GPL Ghostscript est une suite logicielle permettant le traitement des formats de fichiers PostScript et PDF. C'est un logiciel libre distribué sous licence GNU GPL.

A noté que ce paquet est indispensable si vous déployez aussi le logiciel "Scribus". Ce paquet installe GhostScript 32 bits sur les OS 32 ET 64 bits, mais aussi GhostScript sur les OS 64 bits (en complément donc de la version 32 bits).

Téléchargements à faire à la main et à mettre dans softwares\GPLGhostScript
https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923/gs923w32.exe
https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs923/gs923w64.exe

Xml :
<package
    id="GPLGhostScript"
    name="GPL GhostScript : suite logicielle permettant le traitement des fichiers PostScript et PDF, indispensable a Scribus"
    revision="%version%.1"
    reboot="false"
    priority="11">

    <variable name="version" value="923"/>
    <variable name="version_point" value="9.23"/>
    <variable name="version_ancienne" value="9.07"/>
    <variable name="ComSpec" value="%SystemRoot%\System32\cmd.exe" architecture="x86"/>
    <variable name="ComSpec" value="%SystemRoot%\SysWOW64\cmd.exe" architecture="x64"/>

<eoledl dl="http://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%version%/gs%version%w32.exe" destname="GPLGhostScript\"/>
<eoledl dl="http://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%version%/gs%version%w64.exe" destname="GPLGhostScript\"/>

<check type="uninstall" condition="exists" path="GPL Ghostscript"/>
<check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version_point%\bin\gswin32.exe"/>
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES% (x86)\gs\gs%version_point%\bin\gswin32.exe"/>
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%version_point%\bin\gswin64.exe"/>

  <!-- installation version 32 bits sur OS 32 et 64 bits -->
<install cmd='"%SOFTWARE%\GPLGhostScript\gs%version%w32.exe" /S'/>
  <!-- installation version 64 bits sur OS 64 bits -->
<install cmd='"%SOFTWARE%\GPLGhostScript\gs%version%w64.exe" /S' architecture='x64'/>

  <!-- suppression version precedente -->
<upgrade cmd='%ComSpec% /C if exist "%PROGRAMFILES%\gs\gs%version_ancienne%" "%PROGRAMFILES%\gs\gs%version_ancienne%\uninstgs.exe" /S _?=%PROGRAMFILES%\gs\gs%version_ancienne%'/>
<upgrade cmd='%ComSpec% /C if exist "%PROGRAMFILES%\gs\gs%version_ancienne%" rmdir /S /Q "%PROGRAMFILES%\gs\gs%version_ancienne%"'/>
<upgrade architecture="x64" cmd='%ComSpec% /C if exist "%PROGRAMFILES% (x86)\gs\gs%version_ancienne%" "%PROGRAMFILES% (x86)\gs\gs%version_ancienne%\uninstgs.exe" /S _?=%PROGRAMFILES% (x86)\gs\gs%version_ancienne%'/>
<upgrade architecture="x64" cmd='%ComSpec% /C if exist "%PROGRAMFILES% (x86)\gs\gs%version_ancienne%" rmdir /S /Q "%PROGRAMFILES% (x86)\gs\gs%version_ancienne%"'/>
  <!-- installation de la mise a jour -->
<upgrade include='install'/>

<downgrade include='upgrade'/>

  <!-- suppression version 32bits sur les OS 32bits et la version 64bits sur les OS 64 bits -->
<remove cmd='%PROGRAMFILES%\gs\gs%version_point%\uninstgs.exe /S _?=%PROGRAMFILES%\gs\gs%version_point%'/>
<remove cmd='%ComSpec% /C if exist "%PROGRAMFILES%\gs" rmdir /S /Q "%PROGRAMFILES%\gs"'/>
  <!-- suppression version 32bits sur les OS 64 bits -->
<remove architecture="x64" cmd='%PROGRAMFILES% (x86)\gs\gs%version_point%\uninstgs.exe /S _?=%PROGRAMFILES% (x86)\gs\gs%version_point%'/>
<remove architecture="x64" cmd='%ComSpec% /C if exist "%PROGRAMFILES% (x86)\gs" rmdir /S /Q "%PROGRAMFILES% (x86)\gs"'/>

</package>

Re: GhostScript : Logiciel libre pour le traitement des fichiers PS et PDF

Posté : 01 juin 2018 15:01
par gerome.guilhermin
Mise à jour en 9.23

Adapter la ligne suivante avec la version que vous avez si GhostScript est déjà installé
<variable name="version_ancienne" value="9.07"/>