Input

NameDescriptionRequired
PDF Source LinkProvide a URL to the PDF file or a filetoken:// link from PDF.co Built-In Files Storage. For cloud services like Google Drive or Dropbox, ensure the link is publicly accessible.Yes
ModeSelect the operation mode: rotate pages or delete pages.No
Rotation AngleDefine the rotation angle in degrees for the Rotate Pages mode. AI-based auto-rotation based on text analysis is also available.No
OCR Language for auto-rotateChoose the OCR language for text recognition in scanned PDFs, primarily for auto-rotation. Default is English.No
Page NumbersIndicate the pages to process. Use comma-separated page numbers or ranges. Note: For Rotate Pages mode, the first page is 0; for Delete Pages, it starts from 1. Example: 1,2-5,7-.No
Custom ProfilesInput a JSON string for additional customization options in the process. See API Profiles for more details.No

Source PDF URL & Google

When using Google Drive, it’s typically recommended to choose the File option. For more advanced file integration techniques, see Integrating File Sources with pdf.co.

Output

NameDescription
urlThe temporary URL on the PDF.co file server.
outputLinkValidTillA timestamp which indicates how long the url will be available for.
errorDetails of any errors (if any).
statusThe response status code. If all good this will be 200.
nameThe name of the file.
jobIdThe unique identifier for the job.
creditsThe credits spent on the process.
remainingCreditsThe credits left on your account.
durationThe time it took for the process.