Page 1 of 1

Burning annotations to docx fails

Posted: Tue Dec 12, 2017 4:17 pm
by mgolland
Hi,

In GDPicture 14, I am able to add and save annotations to a .docx file, but when I try to burn the annotations to a .docx for exporting I always seem to end up with a blank document.

I think this is because I am trying to create a gdpictureimage object from the .docx stream (before calling BurnAnnotationsToPage) which returns 0 and creates a status of 'UnknownImageFormat'.

Code looks like:

Code: Select all

var gdImageId = gdImaging.CreateGdPictureImageFromStream(originalDocumentStream, GdPicture14.DocumentFormat.DocumentFormatOpenXMLWord);

oAnnotationManager.LoadAnnotationsFromXMP(annotationsStream);
for (var i = 1; i <= gdImaging.GetPageCount(gdImageId); i++)
{
	oAnnotationManager.SelectPage(i);
	oAnnotationManager.BurnAnnotationsToPage(true, false);
}

Thanks,

Mark