System.AccessViolationException in Convert.OfficeToPDF with .DOC file

Product:
PDFTron.NET.x64

Product Version:
12.1.0

Please give a brief summary of your issue:
System.AccessViolationException in Convert.OfficeToPDF with .DOC file

Please describe your issue and provide steps to reproduce it:
We get a AccessViolationException when trying to convert a .DOC file (old MS Word format) to PDF.

Here is the call stack (only pdftron part is shown):

Ausnahmeinformationen: System.AccessViolationException
bei pdftron.PDFNetPINVOKE.TRN_ConvertOfficeToPdfWithPath(IntPtr, IntPtr, IntPtr)
bei pdftron.PDF.Convert.OfficeToPDF(pdftron.PDF.PDFDoc, System.String, pdftron.PDF.ConversionOptions)

Please provide a link to a minimal sample where the issue is reproducible:
A sample .DOC file is attached.

Edit: Sorry, I forgot to mention that we are working with password-protected documents. I updated the attachment. The Password is: Test123

19325.DOC (22.5 KB)

The relevant code:

OfficeToPDFOptions _options = new OfficeToPDFOptions();
_options.SetPassword(password);

// perform the conversion with no optional parameters
Convert.OfficeToPDF(pdfdoc, inFile, _options);
// save the result
pdfdoc.Save(outFile, SDFDoc.SaveOptions.e_linearized);
1 Like

Hi Stefan,

We’re reproduced the crash when converting the .doc file. I’ve passed this onto the devs to investigate more thoroughly.