Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfSaveOptionsFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfSaveOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • PdfSaveOptionsFluent

Methods

public static PdfSaveOptions AllowLoss(PdfSaveOptions pdfSaveOptions, bool value = true) #

Sets PdfSaveOptions.AllowLoss: Accepts fidelity loss introduced by native PDF serialization. The default blocks it.

Parameters

pdfSaveOptions OfficeIMO.Pdf.PdfSaveOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfSaveOptions The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfSaveOptions { AllowLoss = value };    pdfSaveOptions.AllowLoss(value);
public static PdfSaveOptions ConflictPolicy(PdfSaveOptions pdfSaveOptions, OfficeConversionFileConflictPolicy value) #

Sets PdfSaveOptions.ConflictPolicy: Controls whether a file destination may replace an existing file.

Parameters

pdfSaveOptions OfficeIMO.Pdf.PdfSaveOptions required
The instance.
value OfficeIMO.OfficeConversionFileConflictPolicy required
The value.

Returns

PdfSaveOptions The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfSaveOptions { ConflictPolicy = value };    pdfSaveOptions.ConflictPolicy(value);
Encryption 2 overloads
public static PdfSaveOptions Encryption(PdfSaveOptions pdfSaveOptions, PdfStandardEncryptionOptions? value) #

Sets PdfSaveOptions.Encryption: Encrypts this output after native fidelity validation. Null preserves existing security.

Parameters

pdfSaveOptions OfficeIMO.Pdf.PdfSaveOptions required
The instance.
value OfficeIMO.Pdf.PdfStandardEncryptionOptions? required
The value.

Returns

PdfSaveOptions The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfSaveOptions { Encryption = value };    pdfSaveOptions.Encryption(value);
public static PdfSaveOptions Encryption(PdfSaveOptions pdfSaveOptions, Action<PdfStandardEncryptionOptions> configure) #

Configures PdfSaveOptions.Encryption in place: Encrypts this output after native fidelity validation. Null preserves existing security.

Parameters

pdfSaveOptions OfficeIMO.Pdf.PdfSaveOptions required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfStandardEncryptionOptions> required
Configures the value.

Returns

PdfSaveOptions The same instance.