GhostScript and pdf2swf need to be installed manually. GhostScript is used to convert from PDF to PDF/A2, which is available as a Share action.
The following new property has been added to determine how often the temporary files are cleaned:
tempfilecleaner.cronExpression.windows
Note
Alfresco Content Services 5.2 and later versions do not need pdf2swf. It is required by Alfresco One 5.0 if the installation is configured to continue using the deprecated Flash preview. If the administrator does not provide a link to a valid instance of pdf2swf, the warning will continue to appear in the log file. The warning can be ignored if the Document Transformation Engine is using Alfresco One 5.1, or Alfresco Content Services 5.2 and later versions.
-
Download and install pdf2swf.
-
Install GhostScript:
-
Download Ghostscript (32 bit) from the Ghostscript Downloads Page.
-
Browse to the location of your downloaded file and install the application.
-
Update the
img.gslibproperty in thealfresco-global.propertiesfile as shown:img.gslib = <GhostScript_installation_dir>/lib -
Set the installation paths in the Document Transformation Engine
TransformationServer\tomcat\webapps\transformation-server\WEB-INF\classes\default-configuration.propertiesfile:transformer.pdf2swf.executable=C:/Program Files (x86)/SWFTools/pdf2swf.exe transformer.ghostscript.executable=C:/Program Files/gs/gs9.19/bin/gswin64c.exe
From Source:
-
Download Ghostscript from the Ghostscript Downloads Page.
-
Make sure that building toolchains specific to your OS version are installed (for example,
gcc,makeor any related packages). -
Run the following commands to install Ghostscript:
./configure make make installThis installs Ghostscript at
/usr/local/. -
Add the following to the
alfresco-global.propertiesfile:img.gslib = /usr/local/share/ghostscript/<version>/lib
From repositories/CD:
- Make sure that your OS is connected to the online repository/repositories or the installation media is accessible by the package manager.
- Open your distribution's terminal program.
-
Based on your Linux distribution, type the following command in the terminal.
RHEL:
yum install ghostscriptSLES:
zypper install ghostscriptUbuntu:
apt-get install ghostscript -
Wait as the files are downloaded and installed onto your system. A list of added files will show when the process is complete.
-
Set the installation paths in the Document Transformation Engine
TransformationServer\tomcat\webapps\transformation-server\WEB-INF\classes\default-configuration.propertiesfile:transformer.pdf2swf.executable=C:/Program Files (x86)/SWFTools/pdf2swf.exe transformer.ghostscript.executable=C:/Program Files/gs/gs9.19/bin/gswin64c.exe
From Source:
- Download Ghostscript from the Ghostscript Downloads Page.
- Make sure that building toolchains specific to your OS version are installed (for example,
gcc,makeor any related packages). -
Run the following commands to install Ghostscript:
./configure make make installThis installs Ghostscript at
/usr/local/. -
Add the following to the
alfresco-global.propertiesfile:img.gslib = /usr/local/share/ghostscript/<version>/lib
From repositories/CD:
- Make sure that your OS is connected to the online repository/repositories or the installation media is accessible by the package manager.
- Open your distribution's terminal program.
-
Type the following command in the terminal:
pkgadd SUNWgscr -
Wait as the files are downloaded and installed onto your system. A list of added files will show when the process is complete.
-
Set the installation paths in the Document Transformation Engine
TransformationServer\tomcat\webapps\transformation-server\WEB-INF\classes\default-configuration.propertiesfile:transformer.pdf2swf.executable=C:/Program Files (x86)/SWFTools/pdf2swf.exe transformer.ghostscript.executable=C:/Program Files/gs/gs9.19/bin/gswin64c.exe
If GhostScript and pdf2swf are not installed properly or the configured path does not match the installation path, the following message will be displayed on startup of the Document Transformation Engine:
2017-03-28 09:06:10,847 WARN [localhost-startStop-1] c.w.w.a.t.t.e.CommandLineTransformer - Propertytransformer.executable not found at path
C:/Program Files (x86)/SWFTools/pdf2swf.exe
....
2017-03-28 09:00:46,115 WARN [localhost-startStop-1] c.w.w.a.t.t.e.CommandLineTransformer - Propertytransformer.executable not found at path
C:/Program Files/gs/gs9.19/bin/gswin64c.exe.