To begin, open your Visual Studio app and save the following files:
Step 2: Install Request Module
Next, install the request module for file upload. Type the
npm install requests in the terminal.
Step 3: PDF.co API Key
In line 13, add your API key inside the double quote. You can get the PDF.co API Key in your dashboard here.
Step 4: Source and Destination Files
In line 17, enter your source PDF file and type in your desired XML output file name in line 23.
Step 5: Run Program
Once you complete the setup. Let’s run the program by typing the
node app.js in the terminal.
Extract Bold Text Demo
Here’s a quick demo to extract bold text from PDF.