mindee-api-dotnet

LocalInputSource.Compress Method

Declaring Type: LocalInputSource
Namespace: Mindee.Input
Assembly: Mindee
Assembly Version: 3.21.0+995c229708fe61b0dacbe0bfca8ad9e39db87623

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