Overview

The Create Multipage Files plugin by default is a part of export module. This plugin generates multipage PDF and TIF files for each document type of a batch inside final drop folder. This final drop folder path is a configurable property defined inside Copy Batch XML Plugin.

This plugin also generates colored, searchable and optimized PDF depending upon the configuration made.

Configuration

UI Configurations

Following are the list of configurable properties from UI:-

Configurable property Type of value Value options Description
PDF Optimization switch List of values
  • ON
  • OFF
This switch is used to create optimized PDF by adding web –view to PDF. This feature currently only works with Ghostscript.
Multipage File Export Process List of values
  • ITEXT
  • ITEXT-SEARCHABLE
  • HOCRtoPDF
  • IMAGE_MAGICK
  • GHOSTSCRIPT
This option provides user an option to select API to create multipage files.
Colored Output PDF List of values
  • TRUE
  • FALSE
This option provides the user an option to generate colored PDF as output.
Searchable Output PDF List of values
  • TRUE
  • FALSE
This option provides the user an option to create searchable PDF when this option is set to true.
PDF Creation String NA This option provides the parameter to create any multipage file.
PDF Optimization Parameters String NA This option provides the user an option to define ghostscript parameters for creating optimized PDF.
Multipage File type Creation List of Values
  • PDF
  • Tiff
  • Tiff and PDF
This option provides user an option to define which type of multipage file he wants to create.
IText searchable PDF type List of Values
  • PDF
  • Advanced PDF
This option provides user an option to define which IText searchable PDF type he wants to choose if the user has selected IText searchable in Export Process.

Property File Configurations

Following are the list of configurable properties from property file located at ‘{Ephesoft-Home}/WEB-INF/classes/META-INF/dcma-imagemagick/imagemagick.properties’:-

 

Configurable property Type of value Sample Value Description
imagemagick.tif_compression String LZW This property defines the compression mode to be used while creating multipage tiff.
imagemagick.pdf_quality int 100 This property defines the quality of PDF which can vary from 0-100.
imagemagick.colored String True This property is used to define whether multipage tiff will have colored or monochrome images
imagemagick.pdf_compression String LZW This property defines the compression mode to be used while creating multipage PDF.
imagemagick.display_image_output_parameters String -colorspace gray -alpha off This property defines imagemagick output parameters to be used while generating multipage tiff
imagemagick.max_files_processed_per_gs_cmd int 75 This property defines number of maximum files ghostscript can process to generate multipage PDF
imagemagick.height_for_pdf_page int 792 This property defines height of PDF page while generating PDF using iText
imagemagick.width_for_pdf_page int 612 This property defines width of PDF page while generating PDF using iText
imagemagick.max_files_processed_per_im_cmd int 100 This property defines number of maximum files imagemagick can process to generate multipage tiff

Steps of execution

    • This plug-in works in the export phase of the application when all processing on the batch has been done and it’s ready to be exported.
    • The plug-in creates multipage tiff or PDFs in the final drop folder for all document types in a batch.
    • After all the work is done, batch.xml is updated and batch is passed to other export plugins.

Dependency

This plugin requires hocr.xml file for creating searchable PDF. It has a dependency on one of the the plugins from: ‘Recostar HOCR’/ ‘Tesseract HOCR’.

Troubleshooting

Following are few common error messages received due to mal-functioning of the plugin:

S no. Error message Possible root cause
1 IM4JAVA_TOOLPATH is not set for converting images using image magic Environment variable for ImageMagick is either not set.
2 Environment Variable GHOSTSCRIPT_HOME not set. Environment variable for GhostScript is either not set.

<Back4.0.0.0 Release Documentation

Was this article helpful to you?

Engineering