Introduction
This code is use ful for automatic publication flow with the use of desing and xml templte with the support of Indesing (An Adobe's tool).
Background
use this application need to indesign and indesign SDK need to be installed on your Machine...
and then need to add indesign related reference of indesign(COM)
Using the code
Use this application need to indesign and indesign SDK need to be installed on your Machine... and then need to add indesign related reference of indesign(COM).
Here with applicatin three files 1. Indd this is design template and 2. XML that is xml tempate... we can change any data with same structure and import it and we can generate its PDF..3. Image file which is used in Indd file and its path was specifiled in XML file here indd and xml file are attched by use of indesign tool....
Type indAppType =
Type.GetTypeFromProgID("InDesign.Application");
InDesign.Application objInDesign =
(InDesign.Application)Activator.CreateInstance(indAppType, true);
InDesign.Document objDoc =
(InDesign.Document)objInDesign.Open(cstrInddFile, false);
For this line activate indesign application ..
This is for importing an XML file....
objDoc.ImportXML(cstrXMLFile);
objDoc.Export(idExportFormat.idPDFType, cstrOutputFile, false,
objInDesign.PDFExportPresets["Press"]);
Points of Interest
This is the one simple basic work flow for automatic publication flow... we can also implement so many functionality with use of Indesing.