DocSaveOptions.AlwaysCompressMetafiles

DocSaveOptions AlwaysCompressMetafiles property. When false small metafiles are not compressed for performance reason. Default value is true all metafiles are compressed regardless of its size.

DocSaveOptions.AlwaysCompressMetafiles property

When false, small metafiles are not compressed for performance reason. Default value is true, all metafiles are compressed regardless of its size.

public bool AlwaysCompressMetafiles { get; set; }

Examples

Shows how to specify DOC save options.

DocSaveOptions docSaveOptions = new DocSaveOptions();
// When save a document, smaller metafiles are not compressed for performance reasons.
// Some editors such as LibreOffice cannot read uncompressed metafiles.
docSaveOptions.AlwaysCompressMetafiles = false;
// Some word processors, such as Microsoft Word 97, are incompatible with PictureBullet data.
// The options allows converting all image bullet points to ordinary bullet points while saving.
docSaveOptions.SavePictureBullet = false;
// If the document contains a routing slip, we can preserve or skip it while saving by setting this flag.
docSaveOptions.SaveRoutingSlip = false;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "DocSaveOptions.doc", docSaveOptions)
    .Execute();

See Also