Page 1 of 1

Docx to PDF GDPicture 14

Posted: Tue Jan 09, 2018 1:42 pm
by joserra

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

Re: Docx to PDF GDPicture 14

Posted: Wed Jan 10, 2018 11:56 am
by Cedric

It seems that it might be a bug, I don't see anything wrong with your code.
Could you please open a support ticket on the support platform here:
and provide the full working code snippet as well as a sample input document so the development team can investigate this?