Input

NameDescriptionRequired
Input URLProvide the URL of the source file (PDF, PNG, JPG, TIFF) or a filetoken:// link from PDF.co Built-In Files Storage. Ensure the link is publicly accessible if using cloud services like Google Drive or Dropbox.Yes
Barcode Type to ReadSelect the barcode type for decoding. Defaults to QR Codes, with support for various other formats.No
Pages to Read FromSpecify page numbers or ranges for barcode reading. Leave blank to scan all pages. The first page starts at 0. Example: 0,2-5,7-.No
Custom ProfilesInput a JSON string to add custom options for the barcode reading. Refer to 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
barcode1An Object containing form barcode information such as Barcode 1 Value, Barcode 1 Type Name, Barcode 1 Rect, Barcode 1 Page etc.
barcode2An object holding another barcode information, following the same pattern as barcode1 for each output file.
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.