API V2

Resize Image

  • Method: POST
  • Endpoint: /api/v2/ResizeImage?schemaVal=Percentange

Parameters

docNameString, Required

Source PDF file name with .pdf extension

docContentbase64, Required

The content of the input file

Image Resize TypeString, Required
  • Percentage
  • Specific
Resize Percentagedecimal, Required

The content of the input file, it should be decimal
Example-“20.1010”

Widthinteger, Required

Image width will be display in numbers
Example - 60

Heightinteger, Required

Image height will be display in numbers
Example - 60

Maintain Aspect Ratioboolean, Required
Default: true

It will be in boolean format
true
false

output

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "docName": "stamp.jpg",
  "docContent": "Please put image base64 content",
  "ImageResizeType": "Percentage",
  "ResizePercentage": "20.1010",
  "Width": 60,
  "Height": 60,
  "MaintainAspectRatio": true
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda