We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Section to image

Is there anyway to get an image of a section to use as a preview, as there is in aspose slides? Thanks.

Matt

Hi

Thank you for your interest in Aspose products. You can use the DocumentRenderer class to achieve this. See the following code example.

Document doc = new Document(@"in.doc");

DocumentRenderer renderer = new DocumentRenderer(doc);

Bitmap[] arr = renderer.GetPages(); //get array of pages as bitmap[]

for (int i = 0; i < arr.Length; i++)

{

arr[i].Save(@"page"+i.ToString()+".jpg");

}

See the following links.
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.Viewer.DocumentRenderer.html
http://www.aspose.com/Products/Aspose.Words/Api/Aspose.Words.Viewer.DocumentRenderer.GetPages.html

But note that Aspose.Words.Viewer is currently in beta. Also see FAQ.

Best regards.

I see the FAQ says the viewer will be released in late 2007. Is that still accurate or do you have a better estimate now? Thanks.

Matt

Hi

Unfortunately, I can’t tell you exact date. But the production release of Aspose.Words.Viewer will be available in the ending of 2007 or beginning of 2008.

Best regards,

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

We are happy to tell you that the new Rendering Engine has replaced the “old Viewer Beta”. The Rendering Engine can print, save as images or draw onto .NET Graphics object any document page.

Please see Aspose.Words documentation to learn more about new features.

SaveToImage method renders document pages into images:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.savetoimage_overloads.html

In additional, new Rendering engine allows you to convert Word document to PDF directly (without using Aspose.Pdf).

SaveToPdf method converts the whole document or selected pages to PDF.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.document.savetopdf_overloads.html

The latest version of Aspose.Words is available for download from here:

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry158153.aspx

Best regards,