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:

<script src="https://quickformtools.space/v1/sdk.min.js"></script>
CLIENT SDK

Compress Image

Compresses a Blob or File object to a specific target file size (in KB) while maintaining the highest possible visual quality.

ParameterTypeRequiredDescription
fileFile/BlobYesThe original image file (JPG, PNG, WebP).
targetKbNumberYesThe maximum file size allowed in Kilobytes.
optionsObjectNoOptional maxWidth, maxHeight, and format.
// Example: Compress an image to under 100KB const fileInput = document.getElementById('upload'); const file = fileInput.files[0]; const options = { maxWidth: 1920, format: 'image/jpeg' }; QFT.compressImage(file, 100, options) .then(resultBlob => { console.log('Compressed size:', resultBlob.size); // Upload resultBlob to your own server }) .catch(err => console.error(err));
CLIENT SDK

Images to PDF

Combines multiple image files into a single, optimized PDF document. Handles orientation and automatic fitting.

ParameterTypeRequiredDescription
imagesArray<File>YesArray of JPG/PNG files to merge.
pageSizeStringNo'A4' or 'Letter'. Default is A4.
// Example: Merge scanned photos into a PDF const imageArray = [file1, file2, file3]; QFT.imagesToPdf(imageArray, { pageSize: 'A4' }) .then(pdfBlob => { const url = URL.createObjectURL(pdfBlob); window.open(url); });

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.