{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"dd8277ae-c6b1-4249-900b-046e7e0a4bd0","name":"goPDF.pro","description":"# 🚀 Get started here\n\nThis guide will walk you through the process of generating a PDF using our APIs. To begin working with the APIs, you can follow these steps:\n\n### **Step 1: Making Requests**\n\nThere are two types of requests you can make using your API key: GET and POST. Please make sure to update the apiKey and documentId according to your account.\n\n##### **Common Parameters:**\n\n**`engine:`** `1, 2 or 3`\n\n| **Engine** | **Impact** |\n| --- | --- |\n| 1 | Document Engine |\n| 2 | Headless Chrome |\n| 3 | Binary Engine |\n\n**`resType:`** `\"display\", \"download\" or \"buffer\"`\n\n| **resType** | **Impact** |\n| --- | --- |\n| display | RReturns a hosted PDF URL that opens the PDF in a browser link. |\n| download | Starts downloading directly when clicked on the response URL. |\n| buffer | Returns a PDF buffer stream array that can be used to generate a PDF at any desired location, like an AWS S3 bucket or similar. |\n\n### Step 2: Viewing Responses\n\nCheck the response tab for details such as the status code (200 OK), response time, and size. This will provide you with information about the outcome of your request.\n\n#### HTTP Status Codes:\n\n| Status | Response |\n| --- | --- |\n| 200 - Success | Your request has been processed successfully. A status code of 200 confirms the successful generation of an asynchronous document. |\n| 400 - Invalid Request | This error code indicates that your request cannot be completed as expected. goPDF.pro will return this code if the download key is invalid, if the requested document is still in progress, if there is an error in your generated document, or if there are errors in your HTTP POST request. |\n| 401 - Unauthorized | This status code indicates that proper authorization is required. goPDF.pro will return this code if the provided API key is missing or invalid. |\n| 403 - Forbidden | A 403 status code means that the request was made correctly, but the server is refusing to respond. This can happen if you don't have permission to view the document status or if you are making too many simultaneous requests. |\n| 502 - Bad Gateway | The server received an invalid response from the upstream server while attempting to fulfill the request. |\n| 503 - Service Unavailable | The server is currently unable to handle the request due to maintenance or overload. |\n\n### Step 3: Sending New Body Data\n\nEach API endpoint requires specific body post data, which you can find in the provided sample.\n\n### Step 4: Updating Variables\n\nVariables allow you to store and reuse values in Postman. In this template, there is a variable named \"base_url\" that is set to a sample request URL. Replace it with your own API endpoint to customize this collection according to your requirements.\n\n## Pro Tips :\n\n- Use folders to group related requests and organize the collection for better management.\n- Add more scripts in the \"Tests\" tab to further validate the functionality of your API and execute complex workflows.\n    \n\nYou can find related templates for API testing basics, API documentation, authorization methods, and more in the links provided at the bottom of the page.\n\nAdditionally, there are examples of POST requests to convert HTML content to PDF using an API provided by `https://api.gopdf.pro`. The response will contain the generated PDF or relevant information.\n\nFeel free to explore the examples and modify them according to your specific API requirements.\n\n## 💡Related templates\n\n[API testing basics](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)  \n[API documentation](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)  \n[Authorization methods](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"31991643","team":31949581,"collectionId":"dd8277ae-c6b1-4249-900b-046e7e0a4bd0","publishedId":"2s9Ykt4K2p","public":true,"publicUrl":"https://documenter-api.postman.tech/view/31991643/2s9Ykt4K2p","privateUrl":"https://go.postman.co/documentation/31991643-dd8277ae-c6b1-4249-900b-046e7e0a4bd0","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"05f"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Discover a diverse collection of public APIs for generating PDFs from various input types. Find the perfect API for your needs and easily integrate it using provided code examples. Create high-quality PDFs effortlessly from HTML, images, and more. Unleash the power of these APIs to make professional PDFs with ease."},{"name":"title","value":"goPDF.pro Postman Collections"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":"https://content.pstmn.io/7cb5e1cc-5860-4e74-8e8d-273394a80fe8/bG9nby13aGl0ZS5wbmc=","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"05f"}},{"name":"light","logo":"https://content.pstmn.io/fbf8475a-54e4-4b0e-9ffe-9e198e41a0f5/bG9nby1saWdodC5wbmc=","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"05f"}}]}},"version":"8.12.12","publishDate":"2023-12-25T18:40:01.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"goPDF.pro Postman Collections","description":"Discover a diverse collection of public APIs for generating PDFs from various input types. Find the perfect API for your needs and easily integrate it using provided code examples. Create high-quality PDFs effortlessly from HTML, images, and more. Unleash the power of these APIs to make professional PDFs with ease."},"logos":{"logoLight":"https://content.pstmn.io/fbf8475a-54e4-4b0e-9ffe-9e198e41a0f5/bG9nby1saWdodC5wbmc=","logoDark":"https://content.pstmn.io/7cb5e1cc-5860-4e74-8e8d-273394a80fe8/bG9nby13aGl0ZS5wbmc="}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/e7c8f41e49574e970d50534050b31858b132a06bfe55373e2a58981f9b71e3b4","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s9Ykt4K2p"}