This page teaches you how to integrate Postman and PDF.co step by step. It also provides screenshots and quick links to various tutorials.
5 MIN READ
Postman is the collaboration platform for API development, used by 10 million developers and 500,000 companies worldwide. The Postman API Platform’s features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.
PDF.co is the platform for intelligent document processing, OCR, PDF, barcodes and data extraction.
We have created PDF.co Collection for Postman that you can import into Postman and explore PDF.co API and functions right away!
This tutorial will show you how to import the Postman Collection JSON, set up your Postman environment, use the different PDF.co API endpoints to convert HTML to PDF and a whole lot more.
Before beginning the Postman Collection tutorial, please do the following:
Step 1 – Sign up on PDF.co and get your API key.
Step 2 – Open Postman and click the Import button on the top left.
Step 3 – Click on Upload files button and select the Postman Collection JSON file.
Step 4 – Click on Import button
Step 5 – Once you have imported the file, you should see PDF.co API v.1 under Collections Tab.
Step 1 – Next, we are going to set up an Environment. Click on the gear icon on top right.
Step 2 – Then click the Add button.
Step 3 – For this demonstration, I am going to name my environment Demo.
Step 4 – Next add the variable name x-api-key under Variable Column and your API key in Current Value
Step 5 – Then click on the Add button
Step 5 – Select your Environment name on the drop-down menu
Step 1 – Open the Collections tab and expand PDF.co API v.1 folder
Step 2 – Expand PDF Generator folder and click on PDF from HTML
Step 3 – Click on GET /pdf/convert/from/html.
Step 4 – Click on Body tab
Step 5 – Select form-data
Step 6 – Look for the HTML key and paste your HTML code for its value.
Step 8 – Write your desired output filename in the name key value.
Step 9 – Click on the Send button
Step 10 – Scroll down and make sure that the Status is 200 OK.
Step 11 – Copy the URL and paste it in your browser’s address bar to see your converted HTML Code to PDF.
NOTE: The PDF file is temporarily stored in the cloud and will expire in an hour. Be sure to download/move it to permanent storage.
PDF.co is the secure and scalable data extraction API service with a full set of PDF tools included.
Contact us if you need help or support:
Create an account, get an API key and test a request.