Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
How to Change Metadata of a PDF Document

Example
Collapse All

Example

C++

[copy to clipboard]
PM_DOCUMENT doc = PM_DOCUMENT_New();

PM_RECT rc = {0, 0, 600, 800};
PM_PAGE page = PM_DOCUMENT_AddPage(doc, rc);
PM_FONT font = PM_DOCUMENT_AddFont(doc, "Arial", true, false);
PM_CANVAS canvas = PM_PAGE_GetCanvas(page);

PM_DOCINFO_SetSubject(doc, "Document Info");
PM_DOCINFO_SetTitle(doc, "Custom title");
PM_DOCINFO_SetKeywords(doc, "pdf, PDFMosaic");
PM_DOCINFO_SetAuthor(doc, "PDF Mosaic");

PM_CANVAS_UseFont(canvas, font, 16); 
PM_CANVAS_ShowText(canvas,rc.right/2, rc.bottom/2,"Check document properties", 0);
	
PM_DOCUMENT_Save(doc, "DocumentInfo.pdf");
PM_DOCUMENT_Free(doc);

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots