PDF.co

The PDF.co modules allow you to convert documents, and images into PDF and vice-versa from your PDF.co account.

Getting Started with PDF.co

Prerequisites

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting PDF.co to Integromat

To connect your PDF.co account to Integromat you need to obtain the API Key from your PDF.co account and insert it in the Create a connection dialog in the Integromat module.

1. Log in to your PDF.co account.

2. Click Your API Key and copy the API key to your clipboard.

3. Go to Integromat and open the PDF.co module's Create a connection dialog.

4. In the Connection name field, enter a name for the connection.

5. In the Your PDF.co API Key. Sign up at www.PDF.co to get one field, enter the API key copied in step 2, and click Continue.

The connection has been established. 

Conversion from PDF

Convert from PDF

Convert PDF pages to structured CSV, XML, JSON, Plain Text, and other formats.

ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput File
Select or map the option to provide the PDF file details:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Convert OptionsSelect or map the convert type you want to apply to the PDF. For example, PDF to CSV.
PagesEnter a Comma-separated list of page indices (or ranges) to process the PDF. Leave the field blank to process all the pages. The first page is 0 (zero). For example, '0,1-2,5-'.
PasswordEnter (map) the password for the PDF you want to convert.
InlineSelect whether you want the output as a string.
Please Note:  Do not enable the inline if you need to download the output file.  
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output

Convert from PDF into Images

Convert PDF to JPG or PNG for every selected pdf page or page range.

ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput File
Select or map the option to provide the PDF file details:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Convert OptionsSelect or map the convert type you want to apply to the PDF. For example, PDF to CSV.
PagesEnter a comma-separated list of page indices (or ranges) to process the PDF into images. Leave the field blank to process all the pages. The first page is 0 (zero). For example, '0,1-2,5-'.
PasswordEnter (map) the password for the PDF you want to convert.
InlineSelect whether you want the output as a string.
Please Note: Do not enable the inline if you need to download the output file.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output

Conversion into PDF

Convert into PDF

Convert documents, spreadsheets, presentations, emails, single images to PDF.

ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput File
Select or map the option to provide the PDF file details:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Convert OptionsSelect or map the convert type. For example, Email to PDF.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output

Convert from Images into PDF

Creates PDF from one or more JPEG, PNG, or TIFF images.

ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput Type
Select or map the option to provide the PDF file details:
  • Upload Files
  • Input Link
Data
Select or map the file data.
Input Link
Select or map the URL address link to the input file or multiple links separated by a comma.
File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output

Convert HTML to PDF

Convert HTML code or URL to PDF.

ConnectionEstablish a connection to your PDF.co account.
Convert OptionsSelect or map the convert type.
  • HTML to PDF
  • URL to PDF
Input HTML Code
Enter (map) the HTML code which you want to convert to PDF.
Input URL to web page
Enter (map) the URL address of the webpage which you want to convert to PDF.
Output File NameEnter (map) the override file name including the extension for the generated output. The value must be a string.
OrientationSelect or map the orientation of the PDF:
  • Portrait
  • Landscape
Paper SizeSelect or map the PDF paper size. For example, Letter.
Print BackgroundSelect whether you want to enable the PDF background printing.
Do not wait for a full loadSelect whether you want to enable the waiting for a full load. This helps speed up the pages with dynamic content.
MarginsEnter (map) the overrides margins CSS styles for the converted PDF page. For example, '10px' , '5mm', '5in' for all sides or '5px 5px 5px 5px'. The order of margins values is top, right, bottom, left.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output

PDF

Merge a PDF

Merges multiple PDF files into one PDF. Also supports doc, docx, rtf, txt, xls, xlsx, csv, jpg, png, and zip as input in Advanced mode.

ConnectionEstablish a connection to your PDF.co account.
Enable non-PDF files as input
Select whether you want to enable the support for doc, docx, rtf, xls, xlsx, txt, jpg, png, and zip files as input. Uses /pdf/merge2 endpoint that consumes more credits. See the PDF.co credits table for info.
Import OptionsInput Type
Select or map the option to provide the PDF file details:
  • Upload Files
  • Input Link
Data
Select or map the file data.
Input Link
Select or map the URL address link to the input file or multiple links separated by a comma.
File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for merged PDF:
  • Download a file
  • JSON Output

Split a PDF

PDF splitter that takes a PDF file and splits given pages or page ranges into multiple PDF files.



ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput Type
Select or map the option to provide the PDF file details:
  • Upload Files
  • Input Link
Data
Select or map the file data.
Input Link
Select or map the URL address link to the input file or multiple links separated by a comma.
File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
SplitSelect or map the option to split the PDF:
  • Text Found
  • Page Numbers
Text FoundSearch String
Enter (map) the text you want to search.
Exclude Key Pages

Select whether you want to exclude the key pages.
Regex Search

Select whether you want to enable the Regex search.
Case Sensitive

Select whether the text is case-sensitive.
Language
Select or map the language of the text.
PagesEnter (map) comma-separated indices of pages (or ranges) that you want to split from the document.
The first-page indice is always 1.
For example, if you have a 7-page document that you want to be split into 3 separate PDFs but different numbers of pages it would go like this: 1, 2, 3- or 1, 2, 3-7 which will result in 1 PDF with page one, 1 PDF with page two and one PDF with the rest of the pages.

You can also use inverted page numbers adding ! before the number.
- !1 : the last page ,
- 2-!2: from the second to the penultimate page,
- !2- : last two pages.

Also, you can use a single asterisk( * ) character as the range to split the document into separate pages.
SPECIAL CASES: You can use a single asterisk( * ) symbol to split the document into separate pages.
The parameter must be a string.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for merged PDF:
  • Download a file
  • JSON Output

Add Text and Images to a PDF

Adds text and images to a PDF document.

ConnectionEstablish a connection to your PDF.co account.
Import PortionsInput File
Select or map the option to provide the PDF file details:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Text AnnotationsAdd the text annotation you want to add to the PDF:
TextEnter (map) the text you want to add.
PagesEnter (map) the pages to which you want to add the text. Pages start at 0 (zero) and you can set multiple pages as comma-separated ranges like 0,1-2,5,7- where 7- means pages from 7th to the last one. Use negative pages like -2 to set the second page from the last page.
XEnter (map) the X coordinates for the text object to add in the PDF. To get X and Y coordinates for objects in PDF, please see here to open PDF.co Simple PDF Viewer.
YEnter (map) the Y coordinates for the text object to add in the PDF. To get X and Y coordinates for objects in PDF, please see here to open PDF.co Simple PDF Viewer
Font SizeEnter (map) the text font size.
Font NameEnter (map) the font name.
Font ColorEnter (map) the color code for the text. For example, CCBBAA.
Font ItalicSelect whether you want the font to be italic.
Font BoldSelect whether you want to make the text bold.
Font StrikeoutSelect whether you want to strike out the text.
Font UnderlineSelect whether you want to underline the text.
LinkSelect whether you want to enable the link to open with a click.

ImagesAdd the properties of the image:
URL to the source image
Enter (map) the URL address to image or link to an image stored at PDF.co Files storage. 
Pages or pages range
Enter (map) the pages to which you want to add the text. Pages start at 0 (zero) and you can set multiple pages as comma-separated ranges like 0,1-2,5,7- where 7- means pages from 7th to the last one. Use negative pages like -2 to set the second page from the last page. 
XEnter (map) the X coordinates for the image object to add in the PDF. To get X and Y coordinates for objects in PDF, please see here to open PDF.co Simple PDF Viewer.
YEnter (map) the X coordinates for the image object to add in the PDF. To get X and Y coordinates for objects in PDF, please see here to open PDF.co Simple PDF Viewer.
WidthEnter (map) the width for the image. You can leave this field empty to automatically detect.
HeightEnter (map) the height for the image. You can leave this field empty to automatically detect. 
LinkSelect whether you want to enable the link to open with a click.

ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for merged PDF:
  • Download a file
  • JSON Output

Get a PDF Document Information

Gets PDF document information such as the number of pages, author, keyword, and others.

ConnectionEstablish a connection to your PDF.co account.
Import PortionsInput File
Select or map the option to provide the PDF file details whose details you want to retrieve:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.

Parse a Document

User pre-built extraction templates to automatically read invoices, reports, orders, statements, and other documents with fields and tables.

ConnectionEstablish a connection to your PDF.co account.
Import PortionsInput File
Select or map the option to provide the PDF file details whose details you want to retrieve:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Document Parser Template ID
Set to 1or leave empty for built-in Invoice Parser template or set to the ID of your template.
You can manage your Document Parser templates at https://app.pdf.co/document-parser.
Output FormatSelect or map the output format of the document:
  • CSV
  • JSON
  • XML
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. Please see the database for supported custom configurations.
Export OptionsSelect or map the export type for merged PDF:
  • Download a file
  • JSON Output

Barcode

Generate a Barcode

Generates high-quality printable and scannable barcodes as images or PDF. Supports QR Code, Code 39, Code 128, Datamatrix, PDF417, UPC, EAN, and many others.

ConnectionEstablish a connection to your PDF.co account.
Barcode ValueEnter (map) the value to be encoded into the barcode. The value must be a string.
Barcode TypeSelect or map the barcode type. For example, Code39.
Output File NameEnter (map) the override file name including the extension for the generated output. The value must be a string.
InlineSet to true to generate URL as inline datauri link that you can embed directly into HTML. Important: you need to switch to JSON as output instead of Download File so it will generate a link with datauri inline data.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. Please see the database for supported custom configurations.
Export OptionsSelect or map the export type for barcode:
  • Download a file
  • JSON Output

Read a Barcode

Read barcodes from images, tiff, pdf documents, scanned documents. All popular types of barcodes are supported from Code 39, Code 128 to QR Code, Datamatrix, and PDF417. Supports noisy and damaged barcodes, scans, pdf, documents.

ConnectionEstablish a connection to your PDF.co account.
Import Options
Input File
Select or map the option to provide the PDF file details whose details you want to retrieve:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Barcode TypeSelect or map the barcode type. For example, Code39.
Pages
Enter (map) a comma-separated list of page indices (or ranges) to process. Leave empty for all pages. The first page is 0 (zero). For example, '0,1-2,5-'.
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. Please see the database for supported custom configurations.

Other

Upload a File

Uploads a file into temporary storage for use with PDF.co.

ConnectionEstablish a connection to your PDF.co account.
Source FileEnter (map) the data of the file to be uploaded. The source file is uploaded to secure PDF.co storage and stored for 1 hour. You can use the generated url with other modules and apps within 1 hour.
File NameEnter (map) the override file name including the extension for the generated output. The value must be a string.

Make an API Call

Universal Performs an arbitrary authorized API call.

ConnectionEstablish a connection to your PDF.co account.
URL

Enter a path relative to https://api.pdf.co For example: /v1/pdf/edit/add 

For the list of available endpoints, refer to the PDF.co API Documentation. You can also explore recent API logs on the API Logs page

Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Fill a PDF Form

Fills a PDF form.

ConnectionEstablish a connection to your PDF.co account.
Import OptionsInput File
Select or map the option to provide the PDF file details:
  • Upload a File
  • Import a File from the URL
Data
Select or map the file data.
URL
Select or map the URL address of the PDF file.
Output File Name
Enter (map) the override file name including the extension for the generated output. The value must be a string.
Fields to FillAdd the fields to fill in the PDF form:
Page or pages range
Enter (map) the
Field Name
Enter (map) the field name.
Text
Enter the text details to fill in the field. To check a checkbox field, set to true. For radio box, set index as1
ProfilesAdd the optional custom configuration for hidden properties. For example: someoption: 'value' or in JSON format like { 'someoption': 'value'}. See the database for supported custom configurations.
Export OptionsSelect or map the export type for the PDF:
  • Download a file
  • JSON Output



Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.