directory_to_pdf
Convert all images in a directory into a single PDF document. Specify the image directory, output path, optional title, and file pattern for streamlined PDF creation.
Instructions
Convert all images in a directory to a PDF document.
Args:
image_dir: Directory containing images
output_path: Path for the output PDF file
title: Optional title for the PDF document
pattern: File pattern to match (default: all files)
Returns:
JSON string with conversion results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_dir | Yes | ||
output_path | Yes | ||
pattern | No | * | |
title | No |
Input Schema (JSON Schema)
{
"properties": {
"image_dir": {
"title": "Image Dir",
"type": "string"
},
"output_path": {
"title": "Output Path",
"type": "string"
},
"pattern": {
"default": "*",
"title": "Pattern",
"type": "string"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
}
},
"required": [
"image_dir",
"output_path"
],
"title": "directory_to_pdfArguments",
"type": "object"
}