Esempio n. 1
0
 public static void Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //create PdfBookmarkEditor class
     PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();
     //open PDF file
     bookmarkEditor.BindPdf(dataDir+ "input.pdf");
     //import bookmarks
     bookmarkEditor.ImportBookmarksWithXML(dataDir+ "bookmarks.xml");
     //save updated PDF file
     bookmarkEditor.Save(dataDir+ "output.pdf");
 }
Esempio n. 2
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create PdfBookmarkEditor class
            PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();

            //open PDF file
            bookmarkEditor.BindPdf(dataDir + "input.pdf");
            //import bookmarks
            bookmarkEditor.ImportBookmarksWithXML(dataDir + "bookmarks.xml");
            //save updated PDF file
            bookmarkEditor.Save(dataDir + "output.pdf");
        }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Bookmarks();
            //create PdfBookmarkEditor class
            PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();

            //open PDF file
            bookmarkEditor.BindPdf(dataDir + "ImportFromXML.pdf");
            //import bookmarks
            bookmarkEditor.ImportBookmarksWithXML(dataDir + "bookmarks.xml");
            //save updated PDF file
            bookmarkEditor.Save(dataDir + "ImportFromXML_out.pdf");
        }
Esempio n. 4
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Bookmarks();
            //create PdfBookmarkEditor class
            PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();
            //open PDF file
            bookmarkEditor.BindPdf(dataDir+ "ImportFromXML.pdf");
            //import bookmarks
            bookmarkEditor.ImportBookmarksWithXML(dataDir+ "bookmarks.xml");
            //save updated PDF file
            bookmarkEditor.Save(dataDir+ "ImportFromXML_out.pdf");
 
            
            
        }