# PDF

## Introduction

This document provides an overview of the integration between Automate and PDF, detailing how Automate interacts with PDF to automate tasks and streamline processes.

The integration enables users to automate various actions within PDF files, enhancing efficiency and productivity.

## What is PDF?

This section explains the core functionalities and benefits of PDF.

PDF (Portable Document Format) is a cross-platform file format used to create portable and printable documents. It is widely used for its compatibility and versatility.

**Key Features:**

* <mark style="color:orange;">Image Extraction:</mark> Export images from PDF files.
* <mark style="color:orange;">Flexible File Handling:</mark> Allows selection of PDF files or custom file paths.
* <mark style="color:orange;">Password Protection:</mark> Supports encryption with user and owner passwords.
* <mark style="color:orange;">Image Conversion:</mark> Convert extracted images to different formats such as TIFF, JPEG, BMP, GIF, and PNG.

## Automate Integration with PDF

Describe how Automate enables automation of tasks using pre-built actions in PDF.

Automate interacts with PDF to automate various tasks, including image extraction and conversion.

**Examples of Automated Tasks:**

* Extracting images from PDF files.
* Converting images to different formats.
* Setting resolution and page range for image extraction.

## How To Use Actions

### Extract Image

{% embed url="<https://drive.google.com/file/d/1O6Mpk_1Ds-OvEHxyqsjqcOIwMJ6jXPgw/view?usp=sharing>" %}

Export images from PDF files.

**Usage:**

1. Select PDF File or Define File Path.
2. Optionally enter User Password and Owner Password.
3. Specify the page range for image extraction.
4. Choose the type of image to convert.
5. Set resolution settings.
6. Assign extracted images to a string variable.

**Inputs:**

* <mark style="color:green;">PDF File or File Path</mark>
* <mark style="color:green;">User Password (optional)</mark>
* <mark style="color:green;">Owner Password (optional)</mark>
* <mark style="color:green;">Page Range</mark>
* <mark style="color:green;">Image Type</mark>
* <mark style="color:green;">Resolution Settings</mark>

**Outputs:**

* Extracted Images

<figure><img src="/files/oqltleRuNThlT0osPf4f" alt=""><figcaption></figcaption></figure>

***

## Additional Tips

### [**Use Cases**](/userguide/use-cases.md)

### [FAQ](/userguide/faq.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autommate.com/userguide/libraries/integration/pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
