Advanced
Attaching Extra Documents
You can attach terms and conditions, forms, brochures, flyers or other supplementary materials to your letters.
Doc cover pending
Diagram or screenshot for the "Attaching Extra Documents" doc page: visual that anchors what this doc explains (request flow, dashboard surface, or worked example).
Awaiting uploadOn this page
Including Extra Documents in a Print Job
Extra documents can be provided as PDF or Word documents.
Node.js SDK
Node.js
import Intelliprint from 'intelliprint'
const ip = new Intelliprint('your-api-key-here')
import fs from 'fs'
const printJob = await ip.prints.create({
extra_documents: [
{
document: fs.createReadStream('path/to/my/extra/document1.pdf'),
apply_background: true
},
{
document: fs.createReadStream('path/to/my/extra/document2.docx'),
apply_background: true
},
],
// ...Other properties.
})cURL
cURL
curl -X POST https://api.intelliprint.net/v1/prints \
-H 'Authorization: YOUR_API_KEY' \
-F 'extra_documents[0][document]=@path/to/my/extra/document1.pdf' \
-F 'extra_documents[0][apply_background]=true' \
-F 'extra_documents[1][document]=@path/to/my/extra/document2.docx' \
-F 'extra_documents[1][apply_background]=true' \
# Provide the other properties of the print job.Ordering Extra Documents
Extra documents are included in letters in the same order they are provided in the print job.