LoadOptions.PreserveIncludePictureField

LoadOptions PreserveIncludePictureField property. Gets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. The default value is false.

LoadOptions.PreserveIncludePictureField property

Gets or sets whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. The default value is false.

public bool PreserveIncludePictureField { get; set; }

Remarks

By default, the INCLUDEPICTURE field is converted into a shape object. You can override that if you need the field to be preserved, for example, if you are using a MERGEFIELD as a child field to dynamically change the source path of the picture. In this case you need the INCLUDEPICTURE to be preserved in the model.

Examples

Shows how to preserve INCLUDEPICTURE fields when loading a document.

LoadOptions loadOptions = new LoadOptions();
loadOptions.PreserveIncludePictureField = true;

Converter.Create()
    .From(MyDir + "IncludePicture.docx", loadOptions)
    .To(ArtifactsDir + "LoadOptions.PreserveIncludePictureField.docx")
    .Execute();

See Also