Docx to PDF GDPicture 14
Posted: Tue Jan 09, 2018 1:42 pm
Hi,
I´m trying to convert DOCX to PDF using:
GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
var status = converter.LoadFromStream(new MemoryStream(docx), GdPicture14.DocumentFormat.DocumentFormatOpenXMLWord);
if (status == GdPictureStatus.OK)
{
MemoryStream pdfdocument = new MemoryStream();
status = converter.SaveAsPDF(pdfdocument, PdfConformance.PDF);
if (status != GdPictureStatus.OK) throw new Exception("Exception: " + status.ToString());
return pdfdocument.ToArray();
}
LoadFromStream returns OK but SaveAsPDF returns GenericError, it returns the same error saving to a path
Any help?
Thanks in advance
I´m trying to convert DOCX to PDF using:
GdPictureDocumentConverter converter = new GdPictureDocumentConverter();
var status = converter.LoadFromStream(new MemoryStream(docx), GdPicture14.DocumentFormat.DocumentFormatOpenXMLWord);
if (status == GdPictureStatus.OK)
{
MemoryStream pdfdocument = new MemoryStream();
status = converter.SaveAsPDF(pdfdocument, PdfConformance.PDF);
if (status != GdPictureStatus.OK) throw new Exception("Exception: " + status.ToString());
return pdfdocument.ToArray();
}
LoadFromStream returns OK but SaveAsPDF returns GenericError, it returns the same error saving to a path
Any help?
Thanks in advance