add_attachment_to_pdf
Attach one or more local files to a PDF by specifying the source PDF path and a list of attachment file paths to embed.
Instructions
Embed one or more files as attachments into a PDF using the PDF4me AddAttachmentToPdf API. Provide the path to the source PDF and a list of local file paths to attach (docName is each file's basename). Optional: request_doc_name for the API docName field (defaults to the PDF's filename) and output path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| pdf_file_path | Yes | ||
| output_file_name | No | ||
| request_doc_name | No | ||
| attachment_file_paths | Yes |