Personalization
View as MarkdownCreate a PDF/VT file with personalized business cards
This sample shows how to generate a print-ready PDF/VT (variable-data/transactional) file containing a batch of personalized business cards. It reuses a single shared page layout loaded from a PDF template for every card, and adds document- and record-level PDF/VT metadata (job, sender, and production details) using PdfVtDictionary and the CIP4 dictionary keys. The sample uses PdfWriter with an OutputIntent and PdfVtOptions to embed a CMYK ICC profile and document metadata, and a CustomFontRegistry to draw each recipient's name, position, and contact details with custom TrueType fonts.
Invert Background
Inverts background layer of PSD image and saves to PDF file.
Render Mug Preview
Creates 3D Preview of a customized mug using Adobe Photoshop's SmartObject.
Replace Background
Replaces background image of PSD image and saves to PDF file.
Update Text
Updates text layer of PSD image and saves to PDF file.
Update Text And Shape Color
Updates text and shape color of PSD image and saves to PDF file.
Update Text Color
Updates text color of PSD image and saves to PDF file.