When directly providing text/HTML-formatted content for your letters, applying a background can make your letter look more professional and polished.
Uploading a Background
Backgrounds can be uploaded directly from the Intelliprint dashboard, or via the API.
You can upload backgrounds as PDF or Word files.
import Intelliprint from 'intelliprint'
const ip = new Intelliprint('your-api-key-here')
import fs from 'fs'
const bg = await ip.backgrounds.create({
file: fs.createReadStream('path/to/my/background.pdf'),
name: 'Company Letterhead'
})
console.log(`Background created: ${bg.id}`)
Using a Background in a Print Job
You can provide two distinct backgrounds in a print job, background.first_page and background.other_pages. The background.first_page is applied to only the first page of the letter, and background.other_pages is applied to all the other pages in a letter.
Typically, you would use the background.first_page for a letterhead, and background.other_pages for a continuation design or footer information.
import Intelliprint from 'intelliprint'
const ip = new Intelliprint('your-api-key-here')
const printJob = await ip.prints.create({
background: {
first_page: 'bg_1234567890',
other_pages: 'bg_1234567890'
},
// ...Other properties.
})
console.log(`Print job created: ${printJob.id}`)