In order to create a PDF of the Contact Sheet, Asset Bank uses the existing 'print' stylesheet (print.css). This style sheet is used to generate a HTML file of the 'Contact Sheet'.
To generate the PDF file Asset Bank uses a tool called 'wkhtmltopdf'. We currently recommend version 0.10.0_rc2 of the tool which is a standalone application available here:
For Windows, the application should already exist and be available on the system path in <tomcat home>\webapps\asset-bank\WEB-INF\manager-config\win-tools directory.
On Linux and OSX the file needs to be placed in the PATH. (e.g. /usr/bin).
In order for Asset Bank to show this option enter the PATH in the property ‘wkhtmltopdf-path‘ in ApplicationSettings.properties. By default the value is 'wkhtmltopdf', assuming the install is Windows based.
Printing as PDF document
The viewable contact sheet is exported to a PDF document. There are 6 application setting parameters that need to be configured for this feature:
This setting lets the system know when to display the download option. This setting takes in 3 values,
none – the download option is not visible to any user
all – the download option is visible to all users
admin – the download option is visible only to admin users
This setting holds the installation path of wkhtmltopdf application. For windows based server, the parameter is already configured. In case of Linux/Unix system, we need to download the application from (http://code.google.com/p/wkhtmltopdf/downloads/list) and install it; after installation provide the path of the executable in this variable.
NOTE: the application for Linux/Unix is a part of the libwkhtmltox-0.10.0_rc2.zip
This setting should contain the list of comma separated attribute id's whose values are associated to the asset would be displayed by default. The attribute id's can be seen in the URL when editing the attributes in question (Admin > Attributes).
This setting should contain the list of comma separated attributes id's that would be mandatory to be displayed on the contact sheet page, these attribute id's will be selected and disabled. The attribute id's can be got from the admin settings attribute page
This setting helps enable or disable the watermark settings on the ‘Contact Sheet’. The setting takes 3 values,
none – the checkbox will not be visible to any user
all – the checkbox will be visible to all users
admin – the checkbox will be visible to admin users
This setting used in conjunction with the ‘contact-sheet-print-high-resolution’ setting parameter, the default value is 2500 which is the side or the image and the resolution of the image is calculated accordingly by ImageMagik.
Please note: ensure that the setting below reflects the port Tomcat is running on: