public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create FormEditor object
            FormEditor formEditor = new FormEditor();
            //Open Document
            formEditor.BindPdf(dataDir+ "input.pdf");
            //copy a field to another page
            formEditor.CopyInnerField("textfield", "newfieldname", 0);

            //close and save the output document
            formEditor.Save(dataDir+ "output.pdf");
        }
Beispiel #2
0
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
            //create FormEditor object
            FormEditor formEditor = new FormEditor();

            //Open Document
            formEditor.BindPdf(dataDir + "CopyInnerField.pdf");
            //copy a field to another page
            formEditor.CopyInnerField("textfield", "newfieldname", 0);

            //close and save the output document
            formEditor.Save(dataDir + "CopyInnerField_out.pdf");
        }
Beispiel #3
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //create FormEditor object
            FormEditor formEditor = new FormEditor();

            //Open Document
            formEditor.BindPdf(dataDir + "input.pdf");
            //copy a field to another page
            formEditor.CopyInnerField("textfield", "newfieldname", 0);

            //close and save the output document
            formEditor.Save(dataDir + "output.pdf");
        }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
            //create FormEditor object
            FormEditor formEditor = new FormEditor();
            //Open Document
            formEditor.BindPdf(dataDir+ "CopyInnerField.pdf");
            //copy a field to another page
            formEditor.CopyInnerField("textfield", "newfieldname", 0);

            //close and save the output document
            formEditor.Save(dataDir+ "CopyInnerField_out.pdf");
            
            
        }
Beispiel #5
0
        public static void Run()
        {
            try
            {
                // ExStart:CopyInnerField
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
                // Create FormEditor object
                FormEditor formEditor = new FormEditor();
                // Open Document
                formEditor.BindPdf(dataDir + "CopyInnerField.pdf");
                // Copy a field to another page
                formEditor.CopyInnerField("textfield", "newfieldname", 1);

                // Close and save the output document
                formEditor.Save(dataDir + "CopyInnerField_out_.pdf");
                // ExEnd:CopyInnerField
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx.");
            }
        }
        public static void Run()
        {
            try
            {
                // ExStart:CopyInnerField
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
                // Create FormEditor object
                FormEditor formEditor = new FormEditor();
                // Open Document
                formEditor.BindPdf(dataDir + "CopyInnerField.pdf");
                // Copy a field to another page
                formEditor.CopyInnerField("textfield", "newfieldname", 1);

                // Close and save the output document
                formEditor.Save(dataDir + "CopyInnerField_out.pdf");
                // ExEnd:CopyInnerField
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + "\nThis example will only work if you apply a valid Aspose License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx.");
            }
            
        }