Skip to main content

Viesus PDF Enhancer - Error Codes

This document provides a comprehensive list of error codes returned by the Viesus PDF Enhancer, organized by category for easier troubleshooting and debugging.

Error Code Categories

Success Code

CodeError NameDescription
0eNoFailureProcessing completed successfully with no errors

General System Errors (1-8)

CodeError NameDescription
1eErrUnknownAn unknown or unspecified error occurred
2eErrAlreadyEnhancedThe PDF file has already been enhanced (use force option to re-process)
3eErrLoadSettingsFileFailed to load the configuration/settings file
4eErrOpenDocumentUnable to open the PDF document (file may be corrupted or password-protected)
5eErrCreateDirFailed to create required directories
6eErrInvalidPDFThe input file is not a valid PDF document
7eErrLicenseLicense validation failed or license is invalid
8eErrPdfLibPDF library initialization or operation failed

File System & Path Errors (9, 12, 14-18)

CodeError NameDescription
9eOmitFileSizeFile size is below the minimum threshold for processing
12eErrFileNotFoundThe specified input file could not be found
14eErrPathNotFoundThe specified path does not exist
15eErrViesusSettingsNotFoundVIESUS configuration file not found
16eErrDestFolderNotFoundDestination folder does not exist or is not accessible
17eErrArchiveFolderNotFoundArchive folder does not exist or is not accessible
18eErrDebugFolderNotFoundDebug folder does not exist or is not accessible

File Operations & Permissions (10-11, 21-22, 29)

CodeError NameDescription
10eErrSavingFileFailed to save the processed file
11eErrReplacingImageError occurred while replacing images in the PDF
21eErrFilePermissionsInsufficient file permissions for the operation
22eErrFilePermissionsChangeFailed to modify file permissions
29eErrDeleteFileUnable to delete the specified file

Configuration & Parameters (19-20)

CodeError NameDescription
19eErrCmdLineParameterWrongInvalid or incorrect command line parameters provided
20eErrViesusErrorGeneral VIESUS processing error

PDF Processing Errors (13, 23-28)

CodeError NameDescription
13eErrPdfLibraryInitFailedPDF library failed to initialize properly
23eErrPdfFlatteningError during PDF flattening process
24eErrPdfColConvertPDF color conversion failed
25eErrPdfFlatteningInitPDF flattening initialization failed
26eErrViesusEnhancementImage enhancement process failed
27eErrReadingImageLocationFailed to read image location data from PDF
28eErrNoPDFforTOXFileNo corresponding PDF found for TOX file

Trigger & Workflow Management (30-35)

CodeError NameDescription
30eErrRenameTriggerFailed to rename the trigger file
31eErrCopyFolderError occurred while copying folders
32eErrDeleteTriggerFailed to delete the trigger file
33eErrRenameFolderUnable to rename the specified folder
34eErrCreateTriggerFailed to create the trigger file
35eErrArchiveError during file archiving process

License & Resource Limits (36)

CodeError NameDescription
36eErrLicenseExhaustedProcessing limit has been reached for the current license

Cropping & Region Processing (37-39)

CodeError NameDescription
37eErrWrongCroppingRectInvalid cropping rectangle specified
38eErrCroppingRectOutofPageCropping rectangle extends beyond page boundaries
39eErrDuringCroppingError occurred during the cropping operation

Troubleshooting Tips

Common Solutions by Error Category

File System Issues (Codes 12, 14-18)

  • Verify all file and folder paths exist
  • Check read/write permissions
  • Ensure sufficient disk space

Permission Errors (Codes 21-22)

  • Run with appropriate user privileges
  • Check file/folder permissions
  • Ensure exclusive access to files

PDF Processing Issues (Codes 6, 13, 23-28)

  • Verify PDF file integrity
  • Check for password protection
  • Ensure PDF version compatibility

License Issues (Codes 7, 36)

  • Verify license validity and expiration
  • Check processing limits
  • Contact support for license issues

Configuration Errors (Codes 3, 15, 19)

  • Validate configuration file syntax
  • Check parameter values and ranges
  • Verify file paths in configuration

Error Handling Best Practices

  1. Log Error Codes: Always capture and log the specific error code for debugging
  2. Check Prerequisites: Verify file permissions, paths, and license status before processing
  3. Validate Input: Ensure PDF files are valid and accessible
  4. Monitor Resources: Check available disk space and memory
  5. Backup Originals: Use archiving to preserve original files before processing