Skip to main content
Command Line Error Codes
PDF2XL Support avatar
Written by PDF2XL Support
Updated over 2 years ago

If an error occurs when using command line variables, one of the error codes in the following table will be returned.

*Note that there are two sets of error codes below. Please check the set related to your version

A more detailed error message can be found in the standard error output (see the silent conversion example for a way to redirect the standard error output into a file).

To see a list of Commands, click here.
โ€‹


New Error Codes in version 8.0 and higher:

  • 0 - No error

  • 1 - PDF2XL failed to execute

  • 101 - Layout flag without a value

  • 102 - Format flag without a value

  • 103 - Output flag without a value

  • 104 - Range flag without a value

  • 105 - NoUI flag WITH a value

  • 106 - AutoClose flag WITH a value

  • 107 - Run flag WITH a value

  • 108 - AutoConvert flag WITH a value

  • 109 - Auto Open flag with a non no/off value

  • 110 - Auto Layout flag WITH a value

  • 111 - Layout flag AND auto layout flag

  • 112 - Existing flag without a value

  • 113 - AutoOpen flag without a NoUI flag or with invalid value

  • 114 - AutoOpen flag found more than once

  • 115 - Error loading file from -options-from

  • 131 - Invalid format value

  • 132 - Output format needs a filename but no Output flag was found

  • 133 - Invalid range value

  • 134 - Output flag found without a Format flag

  • 135 - Output flag found for a non-file Format flag

  • 136 - Format flag found more than once

  • 137 - Output flag found more than once

  • 151 - Invalid existing value

  • 152 - Existing flag found more than once

  • 201 - Ask Range found with NoUI

  • 202 - Multiple input files with NoUI or Managed flags

  • 203 - Failed to open input file with NoUI or Managed flags

  • 204 - Range flag found more than once

  • 205 - No input file informed

  • 301 - Failed to convert with NoUI flag

  • 302 - Failed to convert with NoUI flag: Excel application not found

  • 303 - Failed to convert with NoUI flag: Word application not found

  • 304 - Failed to convert with NoUI flag: Powerpoint application not found

  • 305 - Failed to load the OCR

  • 401 - Error while loading layout specified by layout flag in NoUI mode

  • 402 - Cannot convert because there's no layout with NoUI flag

  • 403 - Layout flag found more than once

  • 404 - File cannot be converted as it is protected

  • 501 - Unknown value for template flag

  • 502 - Template flag found more than once

  • 503 - Template flag without a value

  • 504 - Repeat template specified without pagerepeat count

  • 505 - pagerepeat flag without value

  • 506 - pagerepeat flag found more than once

  • 507 - pagerepeat flag with an invalid value

  • 508 - firstpagediff WITH a value

  • 509 - lastpagediff WITH a value

  • 601 - Password flag without a value

  • 602 - Password flag found more than once

  • 701 - Invalid license

  • 702 - Invalid version for perpetual license

  • 1001 - Unknown command in the command line

*****

Legacy Error Codes for versions 6.5 and lower:

Did this answer your question?