DownsampleOptions.Resolution
DownsampleOptions Resolution property. Specifies the resolution in pixels per inch which the images should be downsampled to.
DownsampleOptions.Resolution property
Specifies the resolution in pixels per inch which the images should be downsampled to.
public int Resolution { get; set; }
Remarks
The default value is 220 ppi.
Examples
Shows how to configure images downsample options.
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
// Set the "Resolution" property to "36" to downsample all images to 36 ppi.
pdfSaveOptions.DownsampleOptions.Resolution = 36;
// Set the "ResolutionThreshold" property to only apply the downsampling to
// images with a resolution that is above 128 ppi.
pdfSaveOptions.DownsampleOptions.ResolutionThreshold = 128;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "DownsampleOptions.pdf", pdfSaveOptions)
.Execute();
See Also
- class DownsampleOptions
- namespace Wordize.Saving
- assembly Wordize