Browser SDK
Use the same browser-side helpers behind QuickFormTools for image compression and image-to-PDF workflows. Files stay on the user's device because the work runs in the browser.
Overview
The QuickFormTools SDK is a small JavaScript helper for teams who want simple client-side file utilities without building every browser workflow from scratch. It does not upload files to QuickFormTools servers, and it works best for lightweight image compression and combining images into a PDF.
Getting Started (CDN)
Include the JavaScript helper in your HTML file:
Compress Image
Compresses a Blob or File object to a specific target file size (in KB) while maintaining the highest possible visual quality.
| Parameter | Type | Required | Description |
|---|---|---|---|
file | File/Blob | Yes | The original image file (JPG, PNG, WebP). |
targetKb | Number | Yes | The maximum file size allowed in Kilobytes. |
options | Object | No | Optional maxWidth, maxHeight, and format. |
Images to PDF
Combines multiple image files into a single, optimized PDF document. Handles orientation and automatic fitting.
| Parameter | Type | Required | Description |
|---|---|---|---|
images | Array<File> | Yes | Array of JPG/PNG files to merge. |
pageSize | String | No | 'A4' or 'Letter'. Default is A4. |
Data Security & Privacy
Because the SDK executes inside the browser with standard Canvas and Blob APIs, the files passed to these helpers are not intentionally sent to QuickFormTools. If you add your own uploads, analytics, error logging or third-party scripts around the SDK, review those services separately.
Availability and Limits
The SDK is free to test and use for small browser projects. It depends on the visitor's device memory and browser support, so very large images or long batches may be slower on older phones. Build a fallback upload path if your product must process large files reliably for every user.