1. Stubmation
  2. Convert PDF to PNG

Stubmation

Convert PDF to PNG

Convert a PDF file to PNG images

Uses

Use this task for converting a PDF file to PNG images for passing to an LLM in the gpt_chat_task.
Optional setting to set the DPI (dots per inch) for the conversion, which affects the quality and size of the resulting images.

Basic Usage

editor
        {
  "tasktype": "stubmation",
  "params": {
    "name": "general_pdf_to_png",
    "flow_data": {
      "files": [
        {
          "fileuuid": "[fileuuid]",
          "filename": "my_pdf_file.pdf"
        }
      ],
      "dpi": 300,
    }
  },
  "name": "convert_pdf_to_png",
  "__key": "convert_pdf_to_png",
  "help": "",
  "conditions": []
}

      

Flow Data Explained

files
required
array

An array of objects each containing a fileuuid key and a filename key. The fileuuid is the UUID of the file in the stubber file system, and the filename is the name of the file.

loading...
dpe
optional
number

The DPI (dots per inch) to use for the conversion. Higher DPI will result in higher quality images, but also larger file sizes. Default is 300.

loading...