Split Pdf Pn

Input

NameDescriptionRequired
PDF URL to SplitProvide the URL to the source PDF document, or a filetoken:// link from PDF.co Built-In Files Storage. If you use another cloud service such as Google Drive or Dropbox ensure the link is publicly accessible.Yes
Split ByChoose how you want to split your PDF file. You can split your PDF based on page numbers, search text, or barcode search.Yes
Page Number or RangesEnter specific page numbers or ranges to extract. Use 1 for the first page, 1-3 for a range, or 7- to include all pages from page 7 onward. Use negative numbers to count from the end (e.g., -1 = last page, -2 = second-to-last). Use * to split each page into a separate file.No, unless you’re using Split by Pages
Text Search StringEnter the text to search for in PDF. Must be a String.No, unless you’re using Split by Search Text
Barcode Search StringEnter the barcode macros string in PDF. See this guidance below to Split your PDF based on barcode search.No, unless you’re using Split by Barcode
Case-Sensitive SearchEnable case-sensitive search.No
Regular Expression SearchEnable regular expression search for the Search String parameter.No
Exclude Pages with Identified TextExclude pages where the Search String text was found.No
OCR LanguageSet the language for OCR (text from image) to use for scanned PDF, PNG, and JPG documents input when extracting text.No
File NameFile name for the generated output, the input must be in string format.No
Webhook URLThe callback URL or Webhook used to receive the output data.No
HTTP UsernameHTTP auth user name if required to access source URL.No
HTTP PasswordHTTP auth password if required to access source URL.No
Custom ProfilesUse JSON to customize PDF processing with options like output resolution, OCR settings, text extraction methods, encryption, and image handling. Check our Custom Profiles section to see all available parameters for your current endpoint.No

Custom Profiles

You can set additional options for the operation used in the PDF.co node by using Custom Profiles. A custom profile is a string in JSON-like format containing predefined parameters. Here’s an example of a Custom Profiles input:
{ "outputDataFormat": "base64" }
With this input, the PDF.co operation will return the output in base64 format. You can find the list of available parameters for customizing profiles in the PDF.co operation documentation below:
ParameterTypeDefaultDescription
outputDataFormatstring-If you require your output as base64 format, set this to base64
DataEncryptionAlgorithmstring-Controls the encryption algorithm used for data encryption. See User-Controlled Encryption for more information. The available algorithms are: AES128AES192AES256.
DataEncryptionKeystring-Controls the encryption key used for data encryption. See User-Controlled Encryption for more information.
DataEncryptionIVstring-Controls the encryption IV used for data encryption. See User-Controlled Encryption for more information.
DataDecryptionAlgorithmstring-Controls the decryption algorithm used for data decryption. See User-Controlled Encryption for more information. The available algorithms are: AES128AES192AES256.
DataDecryptionKeystring-Controls the decryption key used for data decryption. See User-Controlled Encryption for more information.
DataDecryptionIVstring-Controls the decryption IV used for data decryption. See User-Controlled Encryption for more information.

Output

NameDescription
jobIdUnique identifier for the background job.
pageCountNumber of pages in the PDF document.
errorIndicates whether an error occurred (false means success)
statusStatus code of the request (200, 404, 500, etc.). For more information, see Response Codes.
creditsNumber of credits consumed by the request
remainingCreditsNumber of credits remaining in the account
durationTime taken for the operation in milliseconds
urlDirect URL to the final PDF file stored in S3.
nameName of the output file
outputLinkValidTillTimestamp indicating when the output link will expire