ImageSaveOptions.PageLayout
ImageSaveOptions PageLayout property. Gets or sets the layout used when rendering multiple pages into a single output.
ImageSaveOptions.PageLayout property
Gets or sets the layout used when rendering multiple pages into a single output.
public MultiPageLayout PageLayout { get; set; }
Remarks
Use one of the factory methods of MultiPageLayout to configure this property.
For Tiff the default value is TiffFrames. For other formats the default value is SinglePage.
This property has effect only when saving to the following formats: Jpeg, Gif, Png, Bmp, Tiff, WebP
Examples
Shows how to merge several documents using fluent API and save the result as a single image.
ImageSaveOptions imageSaveOptions = new ImageSaveOptions(SaveFormat.Png);
imageSaveOptions.PageLayout = MultiPageLayout.Grid(2, 10, 10);
imageSaveOptions.PaperColor = Color.White;
imageSaveOptions.PageLayout.BackColor = Color.Gray;
imageSaveOptions.PageLayout.BorderColor = Color.Black;
imageSaveOptions.PageLayout.BorderWidth = 2;
Merger.Create()
.From(MyDir + "Merger.docx")
.From(MyDir + "Merger.doc")
.From(MyDir + "Merger.rtf")
.To(ArtifactsDir + "Merger.Grid.png", imageSaveOptions)
.Execute();
See Also
- class MultiPageLayout
- class ImageSaveOptions
- namespace Wordize.Saving
- assembly Wordize