Skip to main content

PDF Enhancement Parameters

The PDF Enhancer uses a JSON-style configuration structure to control PDF processing, image enhancement, and file handling operations. This document describes all available configuration parameters organized by functional categories.


Overview

The PDF Enhancer uses a JSON-style configuration structure to control PDF processing, image enhancement, and file handling operations. This document describes all available configuration parameters organized by functional categories.

General Settings

Core configuration parameters for PDF processing behavior.

ParameterTypeDefaultDescription
viesusIniStringC:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\IsEnhance.jsonLocation of the VIESUS configuration file
archiveBoolean1Enable/disable archiving of processed files
deleteBoolean1Enable/disable deletion of source files after processing
debugBoolean1Enable/disable debug mode and logging
minFileSizeInteger20Minimum file size (KB) of images for processing
destFileLogBoolean0Enable destination file logging
useColorRatioBoolean0Enable color ratio analysis for artificial image detection
colorRatioThresFloat0.05Threshold for color ratio analysis
checkAdjacentImagesBoolean1Check for adjacent images to merge for enhancement
adjacencyThresInteger10Threshold for determining image adjacency (pixels)
overlapThresInteger10Threshold for determining image overlap (pixels)
includeSoftMaskedImagesBoolean1Enable enhancement of images with soft masks
streamReadingBoolean1Enable JPEG stream reading (disable for files with zipped images)
skipFullPageBackgroundBoolean1Skip background images that fill the entire page

For boolean types: 0 = OFF | 1 = ON

Notes

  • checkAdjacentImages: Should be disabled for very complex PDF files to avoid performance issues
  • streamReading: May cause problems with PDFs containing compressed/zipped images

Resizing Configuration

Controls image resizing and enhancement parameters.

ParameterTypeDefaultDescription
enableBoolean1Enable/disable image resizing
modeInteger0Resizing mode
thresholdFloat1.2Resize factor to trigger AI Upscaling
targetResolutionInteger300Target resolution in DPI
maxFactorFloat16.0Maximum allowed resize factor
maxTargetSizeFloat500.0Maximum output file size (MB)
removeArtifactsBoolean0Enable artifact removal processing
arModeInteger2Artifact removal mode (see table below)

Resizing Modes

Refer to the resizing modes described in the Viesus Image Enhancement - Parameter and CLI Reference.

Artifact Removal Modes

ModeBehaviorDescription
0OffNo artifact removal
1AutomaticAI decides when to apply artifact removal
2Always OnApply artifact removal to all images

Folder Configuration

Defines folder paths for PDF processing workflow.

ParameterTypeDefaultDescription
srcFolderStringC:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\Folders\PDFHotFolderSource folder for input PDF files
destFolderStringC:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\Folders\PDFDestFolderDestination folder for processed PDF files
archiveFolderStringC:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\Folders\ArchiveFolderArchive folder for original files
statusFolderStringC:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\Folders\PDFDestFolderStatus folder for processing information
debugFolderString""Debug folder for diagnostic files

Folder Structure Requirements

  • All folders must exist and be accessible to the application
  • Source folder is monitored for new PDF files
  • Archive folder stores original files when archiving is enabled
  • Debug folder contains diagnostic information when debug mode is active

Trigger Configuration

Controls file-based processing triggers and notifications.

ParameterTypeDefaultDescription
triggerStringorder.readyName of the trigger file to monitor
removeTriggerBoolean0Remove trigger file after processing
renameTriggerBoolean1Rename trigger file during processing
outTriggerString""Output trigger file name

Trigger Workflow

  1. Application monitors source folder for trigger file
  2. When trigger file appears, processing begins
  3. Trigger file handling depends on removeTrigger and renameTrigger settings
  4. Optional output trigger can signal completion

File Extension Settings

Controls naming conventions for processed files.

ParameterTypeDefaultDescription
destExtensionString_destSuffix appended to output filenames
archiveExtensionString_arcSuffix appended to archived filenames
tempDestPrefixString""Prefix for temporary destination files

Example File Naming

  • Input: document.pdf
  • Output: document_dest.pdf
  • Archive: document_arc.pdf

Special Functions

Render to Image (RTI)

Configuration for converting PDF pages to image format.

ParameterTypeDefaultDescription
renderToImageBoolean0Enable PDF to image conversion
renderToImageDPIInteger301DPI resolution for rendered images
renderToImageStartPageString""Starting page number for conversion

Render to PDF (RTPDF)

Configuration for PDF reconstruction from enhanced images.

ParameterTypeDefaultDescription
renderToImageToPDFBoolean0Enable image-to-PDF conversion
renderToImageToPDFSinglePagesBoolean1Create single-page PDF files

Troubleshooting

Please refer to Viesus Image Enhancement - Parameter and CLI Reference for exit codes and general troubleshooting information.

Common Issues

  • File not found: Verify all paths exist and are accessible
  • Permission denied: Ensure exclusive read access to the source file and exclusive write access to the destination and archive folders
  • Invalid INI/JSON: Check INI/JSON file syntax and parameter values
  • Port conflicts: Use -p to specify alternative port if default is in use
  • Memory errors: Reduce batch size or increase available system memory
  • Processing fails: Check folder permissions and paths
  • Images not enhanced: Verify minFileSize and threshold settings
  • Memory errors: Reduce maxFactor or maxTargetSize
  • Trigger not working: Ensure trigger file format and folder monitoring