# PDF4me

> Make, merge, split, convert and protect PDFs with PDF4me. Turn Word, HTML, Markdown and web pages into PDFs, make scans searchable, number pages, find and replace text, and compress files.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/pdf4me

## Actions

### Add a text stamp

Put words such as DRAFT or CONFIDENTIAL on the pages of a PDF.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Text (`text`, text, required): The words to put on the pages, such as DRAFT.
- Position (`position`, text): Where on the page the words go. One of: `middle` (Across the middle), `top_centre` (Top, in the middle), `bottom_centre` (Bottom, in the middle), `top_left` (Top left), `top_right` (Top right), `bottom_left` (Bottom left), `bottom_right` (Bottom right). Default: `middle`.
- Size (`font_size`, number): How big the letters are, from 8 to 200. From 8 to 200. Default: `60`.
- Colour (`colour`, text): The colour of the letters. One of: `red`, `grey`, `blue`, `green`, `black`. Default: `red`.
- See-through (`opacity`, text): How much of the page shows through the letters. One of: `faint`, `half` (Half see-through), `solid`. Default: `half`.
- Angle (`angle`, number): How far the words are turned, in degrees, from 0 (level) to 359. From 0 to 359. Default: `45`.
- Pages (`pages`, text): The pages to stamp, such as 1-3, 5. Leave empty to stamp every page.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The stamped PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `pages_stamped` (list): The pages that carry the stamp.
- `size_bytes` (number): The file's size in bytes.
- `text` (text): The words put on the pages.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_09a1b2c309a1b2c309a1b2c309a1b2c3",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_09a1b2c309a1b2c309a1b2c309a1b2c3",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 26880
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "pages_stamped": [
    1,
    2,
    3
  ],
  "size_bytes": 26880,
  "text": "DRAFT"
}
```

### Add page numbers

Number the pages of a PDF, such as Page 2 of 5.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Number format (`number_format`, text): How each number is written: # is the page number and {1} is how many pages there are. Leave empty for Page # of {1}. Default: `Page # of {1}`.
- Position (`position`, text): Where on the page the number goes. One of: `bottom_centre` (Bottom, in the middle), `bottom_right` (Bottom right), `bottom_left` (Bottom left), `top_centre` (Top, in the middle), `top_right` (Top right), `top_left` (Top left). Default: `bottom_centre`.
- Size (`font_size`, number): How big the numbers are, from 8 to 72. From 8 to 72. Default: `12`.
- Skip the first page (`skip_first_page`, true/false): Leave the first page without a number, such as a cover. Default: `false`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The numbered PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `number_format` (text): The format the numbers were written in, such as Page # of {1}.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_92a3b4c592a3b4c592a3b4c592a3b4c5",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_92a3b4c592a3b4c592a3b4c592a3b4c5",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 30924
    }
  ],
  "filename": "invoice-1001.pdf",
  "number_format": "Page # of {1}",
  "page_count": 3,
  "size_bytes": 30924
}
```

### Compress a PDF

Make a PDF smaller, such as a large scan before emailing it.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- How much (`level`, text): What to make the file for. One of: `smallest` (Smallest file), `balanced`, `web` (Quick to open on the web), `print` (Good for printing). Default: `smallest`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The smaller PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `original_size_bytes` (number): How large the PDF was before, in bytes.
- `page_count` (number): How many pages the PDF has.
- `saved_percent` (number): How much smaller it is now, as a percentage, such as 40.6.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_8192a3b48192a3b48192a3b48192a3b4",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_8192a3b48192a3b48192a3b48192a3b4",
      "filename": "scan.pdf",
      "page_count": 3,
      "size_bytes": 1434
    }
  ],
  "filename": "scan.pdf",
  "original_size_bytes": 2416,
  "page_count": 3,
  "saved_percent": 40.6,
  "size_bytes": 1434
}
```

### Convert a file to PDF

Make a PDF from a Word, Excel, PowerPoint, text or image file, such as meeting minutes written in Word.

**Inputs**

- File (`file`, text, required): The file to convert: upload one, pick a file from an earlier step, or paste a link. Its name has to end the way the file is, such as .docx.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `converted_from` (text): The ending of the file that was converted, such as docx.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "converted_from": "txt",
  "document_count": 1,
  "document_ref": "doc_c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_c5d6e7f8c5d6e7f8c5d6e7f8c5d6e7f8",
      "filename": "minutes.pdf",
      "page_count": 1,
      "size_bytes": 16212
    }
  ],
  "filename": "minutes.pdf",
  "page_count": 1,
  "size_bytes": 16212
}
```

### Convert a PDF to pictures

Turn a PDF's pages into pictures, one per page, such as a preview of the first page to post or attach.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Picture type (`image_format`, text): PNG is sharpest, best for text. JPEG is smaller, best for photos. One of: `png` (PNG: sharpest, best for text), `jpg` (JPEG: smaller, best for photos). Default: `png`.
- Pages (`pages`, text): The pages to turn into pictures, such as 1-3, 5. Leave empty for every page.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: One picture for each page, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every picture made, one for each page, in page order.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page` (number): The page of the PDF it shows.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "image/png",
  "document_count": 2,
  "document_ref": "doc_1b2c3d4e1b2c3d4e1b2c3d4e1b2c3d4e",
  "documents": [
    {
      "content_type": "image/png",
      "document_ref": "doc_1b2c3d4e1b2c3d4e1b2c3d4e1b2c3d4e",
      "filename": "invoice-1001-1.png",
      "page": 1,
      "size_bytes": 34044
    },
    {
      "content_type": "image/png",
      "document_ref": "doc_2c3d4e5f2c3d4e5f2c3d4e5f2c3d4e5f",
      "filename": "invoice-1001-2.png",
      "page": 2,
      "size_bytes": 34268
    }
  ],
  "filename": "invoice-1001-1.png",
  "page": 1,
  "size_bytes": 34044
}
```

### Convert a PDF to Word

Turn a PDF into a Word document that can be edited.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Quality (`quality`, text): Draft is quicker; High takes more care with the layout. One of: `draft` (Draft: quicker), `high` (High: more careful). Default: `draft`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The Word document made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): The Word document, as a one-item list.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  "document_count": 1,
  "document_ref": "doc_f8091a2bf8091a2bf8091a2bf8091a2b",
  "documents": [
    {
      "content_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "document_ref": "doc_f8091a2bf8091a2bf8091a2bf8091a2b",
      "filename": "invoice-1001.docx",
      "size_bytes": 6869
    }
  ],
  "filename": "invoice-1001.docx",
  "size_bytes": 6869
}
```

### Convert a web page to PDF

Save a public web page as a PDF, such as a published report or an order confirmation page.

**Inputs**

- Web page address (`url`, text, required): The address of a public page, such as https://example.com.
- Orientation (`layout`, text): Which way up the pages are. One of: `portrait`, `landscape`. Default: `portrait`.
- Page size (`page_size`, text): The size of each page. One of: `a4`, `a3`, `a5`, `letter` (US Letter), `legal` (US Legal). Default: `a4`.
- Print backgrounds (`print_background`, true/false): Whether background colours and pictures are kept in the PDF. Default: `false`.
- Save as (`filename`, text): What to call the PDF made, such as Order 1001. The ending is added for you. Leave empty to name it for the web site.

**Outputs**: The PDF made from the web page, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.
- `source_url` (text): The address that was converted.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_d6e7f809d6e7f809d6e7f809d6e7f809",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_d6e7f809d6e7f809d6e7f809d6e7f809",
      "filename": "example.com.pdf",
      "page_count": 1,
      "size_bytes": 31336
    }
  ],
  "filename": "example.com.pdf",
  "page_count": 1,
  "size_bytes": 31336,
  "source_url": "https://example.com"
}
```

### Convert HTML to PDF

Make a PDF from HTML typed or built in an earlier step, such as an invoice filled into a template.

**Inputs**

- HTML (`html`, text, required): The HTML of the page, such as <h1>Invoice 1001</h1>.
- Orientation (`layout`, text): Which way up the pages are. One of: `portrait`, `landscape`. Default: `portrait`.
- Page size (`page_size`, text): The size of each page. One of: `a4`, `a3`, `a5`, `letter` (US Letter), `legal` (US Legal). Default: `a4`.
- Print backgrounds (`print_background`, true/false): Whether background colours and pictures are kept in the PDF. Default: `false`.
- Save as (`filename`, text): What to call the PDF made, such as Invoice 1001. The ending is added for you. Leave empty to call it document.

**Outputs**: The PDF made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 2575
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "size_bytes": 2575
}
```

### Convert Markdown to PDF

Make a PDF from Markdown typed or written by an earlier step, such as an AI summary.

**Inputs**

- Markdown (`markdown`, text, required): The Markdown to turn into pages, such as # Summary.
- Save as (`filename`, text): What to call the PDF made, such as Invoice 1001. The ending is added for you. Leave empty to call it document.

**Outputs**: The PDF made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 2575
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "size_bytes": 2575
}
```

### Delete pages

Take pages out of a PDF, such as a cover sheet or blank pages at the end.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Pages (`pages`, text, required): The pages to take out, such as 1 or 4-last.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF without the pages removed, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `pages_removed` (list): The pages taken out, numbered as they were.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_6f7081926f7081926f7081926f708192",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_6f7081926f7081926f7081926f708192",
      "filename": "report.pdf",
      "page_count": 2,
      "size_bytes": 2371
    }
  ],
  "filename": "report.pdf",
  "page_count": 2,
  "pages_removed": [
    2
  ],
  "size_bytes": 2371
}
```

### Extract pages

Make a PDF of only some pages, such as the signed last page of a contract.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Pages (`pages`, text, required): The pages to keep, such as 1-3, 5 or last. They come out in page order.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF with only the pages kept, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `pages_kept` (list): The pages kept, in page order.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_5e6f70815e6f70815e6f70815e6f7081",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_5e6f70815e6f70815e6f70815e6f7081",
      "filename": "report.pdf",
      "page_count": 2,
      "size_bytes": 2295
    }
  ],
  "filename": "report.pdf",
  "page_count": 2,
  "pages_kept": [
    1,
    3
  ],
  "size_bytes": 2295
}
```

### Extract text from a PDF

Get the text of a PDF, for a later step such as an AI step, a search or a spreadsheet. A scan has none until it is made searchable.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.

**Outputs**: The text in the PDF's pages.

- `page_count` (number): How many pages the PDF has.
- `pages_with_text` (number): How many pages had any text. A scan has none until it is made searchable.
- `text` (text): The text of the pages, a blank line between pages, for a later step such as an AI step or a search. The first 200,000 characters.
- `text_truncated` (true/false): Whether the text was longer than the 200,000 characters given here.
- `word_count` (number): How many words were read.

**Example output**

```json
{
  "page_count": 1,
  "pages_with_text": 1,
  "text": "Invoice 1001 page 1 Total 1,250.00 EUR\nOrder number 48213",
  "text_truncated": false,
  "word_count": 11
}
```

### Find and replace text

Change words in a PDF, such as swapping a draft's name for the final one.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Find (`find`, text, required): The text to look for, such as Draft.
- Replace with (`replace_with`, text, required): The text to put in its place, such as Final.
- Pages (`pages`, text): The pages to change, such as 1-3, 5. Leave empty to change every page.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF with the text replaced, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `find` (text): The text that was looked for.
- `page_count` (number): How many pages the PDF has.
- `replace_with` (text): The text put in its place.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_a3b4c5d6a3b4c5d6a3b4c5d6a3b4c5d6",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 2485
    }
  ],
  "filename": "invoice-1001.pdf",
  "find": "Invoice",
  "page_count": 3,
  "replace_with": "Bill",
  "size_bytes": 2485
}
```

### Get PDF details

Read a PDF's details: its pages, size, author, dates, and whether it is protected or signed.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.

**Outputs**: What PDF4me reports about the PDF.

- `author` (text): The author in the PDF's details.
- `created` (text): When the PDF was made, as a date and time.
- `creator` (text): The program that made the original document.
- `is_encrypted` (true/false): Whether the PDF asks for a password.
- `is_signed` (true/false): Whether the PDF carries a digital signature.
- `keywords` (text): The keywords in the PDF's details.
- `modified` (text): When the PDF was last changed, as a date and time.
- `orientation` (text): portrait or landscape.
- `page_count` (number): How many pages the PDF has.
- `page_height_mm` (number): The first page's height in millimetres.
- `page_width_mm` (number): The first page's width in millimetres.
- `pdf_version` (text): The PDF version, such as 1.4.
- `producer` (text): The program that made the PDF.
- `size_bytes` (number): The PDF's size in bytes.
- `subject` (text): The subject in the PDF's details.
- `title` (text): The title in the PDF's details, empty if it has none.

**Example output**

```json
{
  "author": "anonymous",
  "created": "2026-11-12T07:07:18+00:00",
  "creator": "anonymous",
  "is_encrypted": false,
  "is_signed": false,
  "keywords": "",
  "modified": "2026-11-12T07:07:18+00:00",
  "orientation": "portrait",
  "page_count": 3,
  "page_height_mm": 297,
  "page_width_mm": 210,
  "pdf_version": "1.3",
  "producer": "ReportLab PDF Library - (opensource)",
  "size_bytes": 2416,
  "subject": "unspecified",
  "title": "untitled"
}
```

### Make a scan searchable (OCR)

Read the text in a scanned PDF so it can be searched, copied and read by later steps.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Language (`language`, text): The language the pages are written in, such as German. Leave empty for English.
- Quality (`quality`, text): Draft is quicker; High takes more care with poor scans. One of: `draft` (Draft: quicker), `high` (High: more careful). Default: `draft`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The searchable PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `language` (text): The language the pages were read in, such as English.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_e7f8091ae7f8091ae7f8091ae7f8091a",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_e7f8091ae7f8091ae7f8091ae7f8091a",
      "filename": "scan.pdf",
      "page_count": 3,
      "size_bytes": 3291
    }
  ],
  "filename": "scan.pdf",
  "language": "English",
  "page_count": 3,
  "size_bytes": 3291
}
```

### Merge PDFs

Put several PDFs together as one PDF, in the order given, such as an invoice and its receipts.

**Inputs**

- PDFs (`files`, list, required): The PDFs to merge, in order: upload them, or pick files from earlier steps.
- Save as (`filename`, text): What to call the merged PDF, such as Invoice pack. The ending is added for you. Leave empty to call it merged.

**Outputs**: The merged PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `merged_count` (number): How many PDFs were merged.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_1a2b3c4d1a2b3c4d1a2b3c4d1a2b3c4d",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_1a2b3c4d1a2b3c4d1a2b3c4d1a2b3c4d",
      "filename": "invoice-pack.pdf",
      "page_count": 6,
      "size_bytes": 4446
    }
  ],
  "filename": "invoice-pack.pdf",
  "merged_count": 2,
  "page_count": 6,
  "size_bytes": 4446
}
```

### Password-protect a PDF

Lock a PDF with a password, such as a payslip or contract sent by email.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Password (`password`, text, required): The password people have to type to open the PDF.
- People can (`allow`, text): What people can do once they have opened it. One of: `all` (Do anything once it is open), `copy` (Copy text and pictures only), `annotate` (Add notes and highlights only), `none` (Read it only). Default: `all`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The password-protected PDF, saved in Lodol for 30 days. Its page count is that of the PDF before it was protected.

- `allowed` (text): What people can do once it is open: all, copy, annotate or none.
- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "allowed": "all",
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_b4c5d6e7b4c5d6e7b4c5d6e7b4c5d6e7",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 4044
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "size_bytes": 4044
}
```

### Repair a PDF

Fix a PDF that won't open properly, such as one cut short by a faulty upload.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 2575
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "size_bytes": 2575
}
```

### Rotate pages

Turn every page of a PDF, or just one, such as a scan that came out sideways.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Rotation (`rotation`, text, required): How far to turn the pages. One of: `90` (A quarter turn clockwise), `180` (Upside down), `270` (A quarter turn anticlockwise).
- Only page (`page`, number): The one page to turn, such as 2. Leave empty to turn every page. From 1 to 100000.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The turned PDF, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `rotation` (number): How far the pages were turned clockwise, in degrees.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_708192a3708192a3708192a3708192a3",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_708192a3708192a3708192a3708192a3",
      "filename": "scan.pdf",
      "page_count": 3,
      "size_bytes": 2575
    }
  ],
  "filename": "scan.pdf",
  "page_count": 3,
  "rotation": 180,
  "size_bytes": 2575
}
```

### Split a PDF

Cut a PDF into several, a set number of pages each, such as one file for every page.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Pages per file (`pages_per_file`, number): How many pages each new PDF has, such as 2. Leave empty for one PDF per page. From 1 to 10000. Default: `1`.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDFs the split made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 3,
  "document_ref": "doc_2b3c4d5e2b3c4d5e2b3c4d5e2b3c4d5e",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_2b3c4d5e2b3c4d5e2b3c4d5e2b3c4d5e",
      "filename": "report-1.pdf",
      "page_count": 1,
      "size_bytes": 1855
    },
    {
      "content_type": "application/pdf",
      "document_ref": "doc_3c4d5e6f3c4d5e6f3c4d5e6f3c4d5e6f",
      "filename": "report-2.pdf",
      "page_count": 1,
      "size_bytes": 1856
    },
    {
      "content_type": "application/pdf",
      "document_ref": "doc_4d5e6f704d5e6f704d5e6f704d5e6f70",
      "filename": "report-3.pdf",
      "page_count": 1,
      "size_bytes": 1856
    }
  ],
  "filename": "report-1.pdf",
  "page_count": 1,
  "size_bytes": 1855
}
```

### Unlock a PDF

Take the password off a PDF you have the password for, so later steps can read and change it.

**Inputs**

- PDF (`pdf`, text, required): The PDF: upload one, pick one from an earlier step, or paste a link.
- Password (`password`, text, required): The PDF's password.
- Save as (`filename`, text): What to call the file made, such as Invoice 1001. The ending is added for you. Leave empty to keep the name of the file it came from.

**Outputs**: The PDF made, saved in Lodol for 30 days.

- `content_type` (text): The kind of file, such as application/pdf.
- `document_count` (number): How many files were made.
- `document_ref` (text): The file, for a later step that takes one, such as an email's attachments or a drive upload.
- `documents` (list): Every PDF made, each with its name, size and pages.
- `filename` (text): The file's name, ending included, such as invoice.pdf.
- `page_count` (number): How many pages the PDF has.
- `size_bytes` (number): The file's size in bytes.

**Example output**

```json
{
  "content_type": "application/pdf",
  "document_count": 1,
  "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
  "documents": [
    {
      "content_type": "application/pdf",
      "document_ref": "doc_0f1e2d3c0f1e2d3c0f1e2d3c0f1e2d3c",
      "filename": "invoice-1001.pdf",
      "page_count": 3,
      "size_bytes": 2575
    }
  ],
  "filename": "invoice-1001.pdf",
  "page_count": 3,
  "size_bytes": 2575
}
```
