Python scripting PDF reports - Customization example

Customized logo and language files

Previous  Chapter  Next

A desired language file (report.[en,de,fr,cn,jp].lng) for modifying the translation and / or setting can be added to the plugin.

 

As a type of workaround this language file can also be used to output the report in a language. Howeevr, this is not implemented in E2.



Insert customer images and modify the language


Copy the desired language file, e.g. report.de.lng to the plugin folder.

 

Open the language file.

Add or modify the item nologouse with value = False.

Modify the desired report translation items.

Note: only those items that should be modified need to be present in the copied language file.

 

Add the desired customer image (logo) into the plugin images folder.

 

Determine the required language (must fit to the copied file) with setLanguage.

Set the image names to the Python script with setHeaderLogo and / or setFooterLogo.

Set the plugin folder in the Python script to pass to the command.

 

PDF_CustomizedLngForPlugIn




Previous
Previous page
Chapter
Chapter page
Next
Next page