Add Attachment To PDF
This action allows you to add an attatchment to the document. It can be placed in a desired size and position with a given text.
Parameters for adding attachments to PDF documents.
- Method: POST
- Endpoint: /api/v2/AddAttachmentToPdf
Parameters
- PDF File Namestring, Required
Source PDF file name with .pdf extension
- PDF File contentbase64, Required
The content of the input file
Attachments
List of attachments.
- docNamestring, Required
Source text file name with .txt extension.
- docContentbase64, Required
Map the text file content from the source action.
Output
Output parameters for the PDF document with attachments.
- File ContentBinary
Output file content from the PDF4me Connect
Header
Content-Type:application/json
Authorization: Please copy key from the link.
Payload
{
"docName": "output.pdf",
"docContent": "Please put PDF base64 content",
"attachments": [
{
"docName": "output.txt",
"docContent": "Please put text base64 content"
}
]
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda