Ejemplo n.º 1
0
        /// <summary>
        /// Opens the original indd file and initializes the InDesign.Document object.
        /// The original file should be indd.
        /// </summary>
        private void OpenInDesignDoc(object fileNameAsObj)
        {
            // "isVisible = true" means that the opened file will be shown in Application window.
            bool isVisible = false;

            m_inDesignDoc = (InDesign.Document)m_inDesignApp.Open(fileNameAsObj, isVisible);

            m_openedFileNumber++;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Get InDesign page by its number.
 /// </summary>
 /// <param name="document">InDesign document that contains the page.</param>
 /// <param name="pageNumber">Number of page.</param>
 /// <returns>InDesign page.</returns>
 public static InDesign.Page GetPageByNumber(InDesign.Document document, int pageNumber)
 {
     return((InDesign.Page)document.Pages[pageNumber]);
 }
Ejemplo n.º 3
0
 public InDesignColorHelper(InDesign.Document doc)
 {
     m_inDesignDoc = doc;
     InitializeColorTable();
 }