Convert Word Document to one PNG Image

Hi,
I need to convert an entire Word document to one PNG Image.
Is this possible? At this time, when I convert, only the first page of the word document its exported, is this an aspose limitation?

My project its a java project,
Best Regards,
PAMP

@pamp,

Thanks for your inquiry. Aspose.Words does not provide API to convert document’s pages to one single image. However, you can convert each page of Word document into image. Please check the following code example.

Could you please share some more detail about your requirement why you need single image for all pages of document? If your document have 100 pages, what will be the output?

Please also share the Java version that you are using at your end. Thanks for your cooperation.

Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.PNG);
options.setPageSavingCallback(new IPageSavingCallback() {
    public void pageSaving(PageSavingArgs args)
    {
        args.setPageFileName(MyDir + "Page_"+ args.getPageIndex()  + ".png");
    }
});
doc.save(MyDir + "out.png", options);

A post was split to a new topic: Convert first page of Word Document to Image