Burning annotations to docx fails
Posted: Tue Dec 12, 2017 4:17 pm
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:
Thanks,
Mark
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);
}
Mark