In this tutorial, we will show you how to Split PDF by Text from URL in JavaScript using Web API. Below is the image of the 3-page PDF input and three individual pages of PDF output files.

  1. Source Code
  2. Add API Key
  3. Fill Parameters
  4. Run Code
  5. Demo
Split PDF By Text Input And Output Files
Split PDF by Text Input and Output Files

Step 1 – Source Code

To begin, copy the sample code here and open it in your favorite editor.

Step 2 – Add API Key

In line 7, enter your API Key. You can get it in your dashboard.

Enter API Key

Step 3 – Fill Parameters

In line 12, add the source file link. You can enter the split search string in line 14.

Source File And Search String

Step 4 – Run Code

Now, run the program to see the result.

Step 5 – Demo

Here’s a quick demo from start to finish.

Split PDF By Text From URL Demo
Split PDF by Text from URL Demo

In this tutorial, you learned how to split PDF by text from URL in JavaScript using Web API. You also learned how to get started right away by changing only 3 lines in the sample code.