public static void Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //open document
     PdfFileInfo fileInfo = new PdfFileInfo(dataDir+ "input.pdf");
     //set PDF information
     fileInfo.Author = "Aspose";
     fileInfo.Title = "Hello World!";
     fileInfo.Keywords = "Peace and Development";
     fileInfo.Creator = "Aspose";
     fileInfo.CreationDate = DateTime.Now.ToString();
     fileInfo.ModDate = DateTime.Now.ToString();
     //save updated file
     fileInfo.SaveNewInfo(dataDir+ "output.pdf");
 }
        public static void Run()
        {
            // ExStart:SetFileInfo
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_WorkingDocuments();
            // Open document
            PdfFileInfo fileInfo = new PdfFileInfo(dataDir + "SetFileInfo.pdf");

            // Set PDF information
            fileInfo.Author   = "Aspose";
            fileInfo.Title    = "Hello World!";
            fileInfo.Keywords = "Peace and Development";
            fileInfo.Creator  = "Aspose";
            // Save updated file
            fileInfo.SaveNewInfo(dataDir + "SetFileInfo_out_.pdf");
            // ExEnd:SetFileInfo
        }
Exemple #3
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //open document
            PdfFileInfo fileInfo = new PdfFileInfo(dataDir + "input.pdf");

            //set PDF information
            fileInfo.Author       = "Aspose";
            fileInfo.Title        = "Hello World!";
            fileInfo.Keywords     = "Peace and Development";
            fileInfo.Creator      = "Aspose";
            fileInfo.CreationDate = DateTime.Now.ToString();
            fileInfo.ModDate      = DateTime.Now.ToString();
            //save updated file
            fileInfo.SaveNewInfo(dataDir + "output.pdf");
        }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_WorkingDocuments();
            //open document
            PdfFileInfo fileInfo = new PdfFileInfo(dataDir + "SetFileInfo.pdf");

            //set PDF information
            fileInfo.Author       = "Aspose";
            fileInfo.Title        = "Hello World!";
            fileInfo.Keywords     = "Peace and Development";
            fileInfo.Creator      = "Aspose";
            fileInfo.CreationDate = DateTime.Now.ToString();
            fileInfo.ModDate      = DateTime.Now.ToString();
            //save updated file
            fileInfo.SaveNewInfo(dataDir + "SetFileInfo_out.pdf");
        }
 public static void Run()
 {
     // ExStart:SetFileInfo
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_WorkingDocuments();
     // Open document
     PdfFileInfo fileInfo = new PdfFileInfo(dataDir+ "SetFileInfo.pdf");
     // Set PDF information
     fileInfo.Author = "Aspose";
     fileInfo.Title = "Hello World!";
     fileInfo.Keywords = "Peace and Development";
     fileInfo.Creator = "Aspose";             
     // Save updated file
     fileInfo.SaveNewInfo(dataDir+ "SetFileInfo_out.pdf");
     // ExEnd:SetFileInfo           
     
 }