Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfDestructiveCropOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
22fb5b2be3d2 with working tree changes
Implements
IPdfOperationCancellation
Modifiers
sealed
Attributes
Fluent

Controls fail-closed raster replacement for destructive page cropping.

Inheritance

  • object
  • PdfDestructiveCropOptions

Usage

Explore 17 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 9

Constructors

public PdfDestructiveCropOptions() #

Properties

public double Dpi { get; set; } #

Rasterization DPI. Default: 144.

public OfficeColor Background { get; set; } #

Opaque replacement background.

public long MaxPixelsPerPage { get; set; } #

Maximum pixels per destructively cropped page.

public bool AllowSimplifiedRendering { get; set; } #

Allows documented simplified renderer capabilities such as system-font substitution.

Extension Methods

public static PdfDestructiveCropOptions AllowSimplifiedRendering(PdfDestructiveCropOptions pdfDestructiveCropOptions, bool value = true) #

Sets PdfDestructiveCropOptions.AllowSimplifiedRendering: Allows documented simplified renderer capabilities such as system-font substitution.

Parameters

pdfDestructiveCropOptions OfficeIMO.Pdf.PdfDestructiveCropOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfDestructiveCropOptions The same instance.

Examples

// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Pdf.PdfDestructiveCropOptions { AllowSimplifiedRendering = value };    pdfDestructiveCropOptions.AllowSimplifiedRendering(value);
public static PdfDestructiveCropOptions Background(PdfDestructiveCropOptions pdfDestructiveCropOptions, OfficeColor value) #

Sets PdfDestructiveCropOptions.Background: Opaque replacement background.

Parameters

pdfDestructiveCropOptions OfficeIMO.Pdf.PdfDestructiveCropOptions required
The instance.
value OfficeIMO.OfficeColor required
The value.

Returns

PdfDestructiveCropOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfDestructiveCropOptions { Background = value };    pdfDestructiveCropOptions.Background(value);
public static PdfDestructiveCropOptions Dpi(PdfDestructiveCropOptions pdfDestructiveCropOptions, double value) #

Sets PdfDestructiveCropOptions.Dpi: Rasterization DPI. Default: 144.

Parameters

pdfDestructiveCropOptions OfficeIMO.Pdf.PdfDestructiveCropOptions required
The instance.
value double required
The value.

Returns

PdfDestructiveCropOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfDestructiveCropOptions { Dpi = value };    pdfDestructiveCropOptions.Dpi(value);
public static PdfDestructiveCropOptions MaxPixelsPerPage(PdfDestructiveCropOptions pdfDestructiveCropOptions, long value) #

Sets PdfDestructiveCropOptions.MaxPixelsPerPage: Maximum pixels per destructively cropped page.

Parameters

pdfDestructiveCropOptions OfficeIMO.Pdf.PdfDestructiveCropOptions required
The instance.
value long required
The value.

Returns

PdfDestructiveCropOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Pdf.PdfDestructiveCropOptions { MaxPixelsPerPage = value };    pdfDestructiveCropOptions.MaxPixelsPerPage(value);