Input

NameDescriptionRequired
Input Document URLProvide the URL of the input PDF document or a filetoken:// link from PDF.co Built-In Files Storage. For other cloud services like Google Drive or Dropbox, ensure the link is publicly accessible.Yes
Custom Classification RulesDefine classification rules in CSV format, if required. Format per row: classname,logic,keyword1,keyword2. Example: Amazon,AND,Amazon AWS,AWS Invoice. Refer to PDF Classifier for detailed instructions.No
CSV Rules URLProvide a URL to a CSV file containing custom classification rules. The format for each row should be: classname,logic,keyword1,keyword2. Example: Amazon,AND,Amazon AWS,AWS Invoice.No
Enable Case Sensitive Custom RulesIndicate if the keywords in the custom rules should be case sensitive.No
Custom ProfilesEnter additional options for the classification process in a JSON string format. See API Profiles for more information.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.
classesAn array containing possible category of input document.
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.
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.