VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.Pdf.AspNetCore.ApiControllers Namespace / VintasoftPdfApiController Class / CompressPdf(CompressPdfRequestParams) Method
Syntax Requirements SeeAlso
In This Topic
    CompressPdf(CompressPdfRequestParams) Method (VintasoftPdfApiController)
    In This Topic
    Compresses a PDF file.
    Syntax
    'Declaration
    
    <HttpPostAttribute("HttpMethods = System.Collections.Generic.List`1string", "Template = null", "Order = 0", "Name = null")>
    Public Overridable Function CompressPdf( _
    ByVal requestParams
    Settings for PDF document compression.
    As Vintasoft.Imaging.Pdf.Web.Services.CompressPdfRequestParams _
    ) As Vintasoft.Imaging.Pdf.Web.Services.FileResponseParams
    [HttpPost("HttpMethods = System.Collections.Generic.List`1string", "Template = null", "Order = 0", "Name = null")]
    public virtual Vintasoft.Imaging.Pdf.Web.Services.FileResponseParams CompressPdf(
    Vintasoft.Imaging.Pdf.Web.Services.CompressPdfRequestParams requestParams
    )
    [HttpPost("HttpMethods = System.Collections.Generic.List`1string", "Template = null", "Order = 0", "Name = null")]
    public: virtual Vintasoft.Imaging.Pdf.Web.Services.FileResponseParams* CompressPdf(
    Vintasoft.Imaging.Pdf.Web.Services.CompressPdfRequestParams* requestParams
    )
    [HttpPost("HttpMethods = System.Collections.Generic.List`1string", "Template = null", "Order = 0", "Name = null")]
    public:
    virtual Vintasoft.Imaging.Pdf.Web.Services.FileResponseParams^ CompressPdf(
    Vintasoft.Imaging.Pdf.Web.Services.CompressPdfRequestParams^ requestParams
    )

    Parameters

    requestParams
    Settings for PDF document compression.

    Return Value

    Response from the server, which contains information about compressed PDF document.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7, .NET 6

    See Also