Test the OCR API endpoint and see the raw JSON response
Upload a PDF or image file to extract and render its contents
Drag & drop a file here
or click to select a file
Supports PDF, JPEG, PNG, WebP, GIF, BMP, TIFF
const formData = new FormData();
formData.append('file', fileInput.files[0]);
fetch('/api/ocr', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => console.log(data));curl -X POST \ http://localhost:3000/api/ocr \ -F 'file=@document.pdf'