The SaveAsPDF method reports a "GenericError" when converting a word document to a pdf document.The word document is uploaded to the Attachments.The code is as follows:
bool convertSuccess = false;
try
{
string license = System.Configuration.ConfigurationManager.AppSettings["DocuViewareLicense"];
if (!string.IsNullOrEmpty(license))
{
DocuViewareLicensing.RegisterKEY(license);
}
using (GdPictureDocumentConverter convert = new GdPictureDocumentConverter())
{
GdPictureStatus status = convert.LoadFromFile(documentPath, GdPicture14.DocumentFormat.DocumentFormatUNKNOWN);
if (status == GdPictureStatus.OK)
{
status = convert.SaveAsPDF(convertPath, pdfConformance);
if (status == GdPictureStatus.OK)
convertSuccess = true;
}
}
}
catch (Exception ex) {
logger.WriteLine("GDPictrue DocuViewareLicensing ConvertDocumentToPDF Method Error:" + ex.Message);
}
return convertSuccess;
The SaveAsPDF method reports a "GenericError" when converting a word document to a pdf document
The SaveAsPDF method reports a "GenericError" when converting a word document to a pdf document
- Attachments
-
- Offer Letter_136_Dec_07_2022.docx
- Failed to convert the document to PDF
- (304.58 KiB) Downloaded 85 times
Re: The SaveAsPDF method reports a "GenericError" when converting a word document to a pdf document
Hello,
I tried your code snippet on our latest version and everything seems to work fine. Could you try to update your SDK to the latest version and tell me if the issue still occurs, please?
Best regards,
Fabio
I tried your code snippet on our latest version and everything seems to work fine. Could you try to update your SDK to the latest version and tell me if the issue still occurs, please?
Best regards,
Fabio
Who is online
Users browsing this forum: No registered users and 0 guests