LayoutOptions.IgnorePrinterMetrics

LayoutOptions IgnorePrinterMetrics property. Gets or sets indication of whether the Use printer metrics to lay out document compatibility option is ignored. Default is true.

LayoutOptions.IgnorePrinterMetrics property

Gets or sets indication of whether the “Use printer metrics to lay out document” compatibility option is ignored. Default is true.

public bool IgnorePrinterMetrics { get; set; }

Examples

Shows how to ignore ‘Use printer metrics to lay out document’ option.

ConverterContext context = new ConverterContext();
context.LayoutOptions.IgnorePrinterMetrics = false;

Converter.Create(context)
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "LayoutOptions.IgnorePrinterMetrics.pdf")
    .Execute();

See Also