Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using Aspose.Pdf.Kit;
- namespace ImportMetadata
- {
- class Program
- {
- static void Main(string[] args)
- {
- // set the license file
- License license = new License();
- license.SetLicense("Aspose.Total.lic");
- // open the output file stream
- Stream output = File.OpenWrite(@"c:\users\ryan\desktop\lulz.pdf");
- // import the bookmarks
- PdfBookmarkEditor bookmarks = new PdfBookmarkEditor();
- bookmarks.BindPdf(@"c:\users\ryan\desktop\what\edit\_FalconStor Software Inc. FY 2010_4-29-2011 9-10-01 AM.pdf");
- bookmarks.ImportBookmarksWithXML(@"c:\users\ryan\desktop\what\edit\bookmarks.xml");
- bookmarks.Save(output);
- // close the stream
- output.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement