Hello !!!
We are using the Aspose.Words version 4.2. I have a requirement in our project where i should be able to preview the document which i have generated. we are using Aspose.Words for generating the word documents.
I am trying to get the images from the document generated using the below code
Document doc = new Document(documentPath);
DocumentRenderer renderer = new DocumentRenderer(doc);
Bitmap[] arr = renderer.GetPages();
int i = 0;
foreach (Bitmap bitmap in arr)
{
bitmap.Save("Image" + i + ".png");
}
The problem i am facing is that the saved bitmaps are empty with only header generated and rest of the content is missing.
Can you point me in right direction whether i am missing something.
Thanks & Regards
Rajesh