Convert S3 Markdown File to PDF
convert_s3_markdown_to_pdfConvert Markdown files stored in S3 to PDF. Specify bucket and key, customize page format and margins, then save locally or upload the PDF back to S3.
Instructions
Convert a markdown file from S3 bucket to PDF using bucket and key parameters
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | S3 object key (path to the markdown file) | |
| bucket | Yes | S3 bucket name | |
| format | No | PDF page format (default: A4) | |
| margin | No | PDF margins (e.g., '0.5in', '20mm') | |
| region | No | AWS region (defaults to us-east-1) | |
| outputPath | Yes | Path where the PDF should be saved (local path or S3 key for upload) | |
| uploadToS3 | No | Whether to upload the PDF back to the same S3 bucket (default: false) |