convert_to_pdf
Combine multiple image files into a single PDF document. Specify image paths, output location, optional title, and choose to sort files by name for organized results.
Instructions
Convert a list of images to a PDF document.
Args:
image_paths: List of image file paths to convert
output_path: Path for the output PDF file
title: Optional title for the PDF document
sort_files: Whether to sort files by name before conversion
Returns:
JSON string with conversion results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_paths | Yes | ||
output_path | Yes | ||
sort_files | No | ||
title | No |
Input Schema (JSON Schema)
{
"properties": {
"image_paths": {
"items": {
"type": "string"
},
"title": "Image Paths",
"type": "array"
},
"output_path": {
"title": "Output Path",
"type": "string"
},
"sort_files": {
"default": true,
"title": "Sort Files",
"type": "boolean"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
}
},
"required": [
"image_paths",
"output_path"
],
"title": "convert_to_pdfArguments",
"type": "object"
}