Handling Errors During PDF/XPS Export

When you export a document to PDF or XPS format, you may encounter some specific errors:

  • FREN_E_INVALID_CREATION_DATE_FORMAT;
  • FREN_E_INVALID_MODIFICATION_DATE_FORMAT.

They appear if the creation or modification date specified in the document metadata does not comply with the PDF 2.0 standard. The correct date format is D:YYYYMMDDHHmmSSOHH'mm, where YYYY — the year, MM — the month, DD — the date, HHmmSS — the time, OHH'mm — the absolute value of the offset from Universal Time.

To handle errors of this type, you may either change the date export settings or correct the date to fit the format.

To change the date export settings:

  1. Get the DocumentContentInfoWritingParams subobject of the export parameters object for your output format:
  2. The WriteCreationDate and WriteModificationDate properties of the DocumentContentInfoWritingParams object specify which dates should be saved into the output document. In this case, you may use the WD_No value to disable date saving and the WD_Current value to use the current date.
  3. Restart the document export using, for example, the Export method of the FRDocument object, passing the parameters object you have just set up as the last input parameter.

To correct the date:

  1. Access the DocumentСontentInfo object using the DocumentContentInfo property of the FRDocument object.
  2. Change the date in the CreationDate or ModificationDate property of the DocumentСontentInfo object.
  3. Restart the document export with the Export method of the FRDocument object.

See also

DocumentСontentInfo

Standard Return Codes

Tuning Export Parameters

Error Handling

03.07.2024 8:50:25

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.