Endpoint
Request
This endpoint accepts multipart/form-data with a file upload.PDF file to parse. Must be a valid PDF with
application/pdf MIME type. Maximum file size is 5MB.Response
Total number of pages in the PDF
Number of pages rendered during parsing
PDF metadata including title, author, creation date, and other document properties
Additional metadata from the PDF document
Extracted text content from the PDF
PDF version number
Example
Response
Error responses
Error message describing what went wrong
Additional error details (only present in 500 errors)
400 Bad Request
Returned when the uploaded file is not a valid PDF:413 Payload Too Large
Returned when the PDF file exceeds the 5MB limit:500 Internal Server Error
Returned when PDF parsing fails:Implementation
The endpoint usespdf-parse-new with the SmartPDFParser configured for serverless environments:
/app/api/parse-resume/route.ts:14-21