ImageSaveOptionsPageIndex Property |
Namespace: Aspose.Words.Saving
This property has effect only when rendering document pages. This property is ignored when rendering shapes to images.
Document doc = new Document(MyDir + "Rendering.docx"); ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.Gif) { PageIndex = 1 // Define which page will save }; doc.Save(ArtifactsDir + "ImageSaveOptions.SaveIntoGif.gif", saveOptions);
Document doc = new Document(MyDir + "Rendering.docx"); ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff) { TiffCompression = TiffCompression.Ccitt3, PageIndex = 0, PageCount = 1 }; doc.Save(ArtifactsDir + "Rendering.SaveToTiffCompression.tiff", options);