mindee-api-dotnet

LocalInputSource.Compress Method

Declaring Type: LocalInputSource
Namespace: Mindee.Input
Assembly: Mindee
Assembly Version: 3.22.0+aa1b44d54eab23ff2156f9ad9391c70a961697c0

Compresses the file, according to the provided info.

public void Compress(int quality = 85, int? maxWidth = null, int? maxHeight = null, bool forceSourceText = false, bool disableSourceText = true);

Parameters

quality int

Quality of the output file.

maxWidth Nullable<int>

Maximum width (Ignored for PDFs)

maxHeight Nullable<int>

Maximum height (Ignored for PDFs)

forceSourceText bool

Whether to force the operation on PDFs with source text. This will attempt to re-render PDF text over the rasterized original. If disabled, ignored the operation. WARNING: this operation is strongly discouraged.

disableSourceText bool

If the PDF has source text, whether to re-apply it to the original or not.


Documentation generated by MdDocs