Docx to PDF GDPicture 14

Discussions about Office OpenXML & Open Document formats support.
Post Reply
joserra
Posts: 1
Joined: Tue Jan 09, 2018 1:20 pm

Docx to PDF GDPicture 14

Post by joserra » 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

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: Docx to PDF GDPicture 14

Post by Cedric » Wed Jan 10, 2018 11:56 am

Hello

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: https://support.orpalis.com/index.php?/Tickets/Submit/
and provide the full working code snippet as well as a sample input document so the development team can investigate this?

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests