Beispiel #1
0
        public static void Run()
        {
            try
            {
                // ExStart:CopyOuterField
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();

                // Open document
                FormEditor formEditor = new FormEditor();

                // Open the document and create a FormEditor object
                formEditor.BindPdf(dataDir + "CopyOuterField.pdf");

                // Copy a text field from one document to another one
                formEditor.CopyOuterField(dataDir + "input.pdf", "textfield", 1);

                // Close and save the output document
                formEditor.Save(dataDir + "CopyOuterField_out_.pdf");
                // ExEnd:CopyOuterField
            }
            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:CopyOuterField
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();

                // Open document
                FormEditor formEditor = new FormEditor();

                // Open the document and create a FormEditor object
                formEditor.BindPdf(dataDir + "CopyOuterField.pdf");

                // Copy a text field from one document to another one
                formEditor.CopyOuterField( dataDir + "input.pdf", "textfield", 1);

                // Close and save the output document
                formEditor.Save(dataDir + "CopyOuterField_out.pdf");
                // ExEnd:CopyOuterField
            }
            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 Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //open the document and create a FormEditor object
     FormEditor formEditor = new FormEditor(dataDir+ "input_form.pdf", dataDir+ "output.pdf");
     //copy a text field from one document to another one
     formEditor.CopyOuterField("textfieldform.pdf", "textfield", 1);
     //close and save the output document
     formEditor.Save();
 }
 public static void Run()
 {
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
     //open the document and create a FormEditor object
     FormEditor formEditor = new FormEditor(dataDir+ "input_form.pdf", dataDir+ "CopyOuterField_out.pdf");
     //copy a text field from one document to another one
     formEditor.CopyOuterField("textfieldform.pdf", "textfield", 1);
     //close and save the output document
     formEditor.Save();
 }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
            //open the document and create a FormEditor object
            FormEditor formEditor = new FormEditor(dataDir + "input_form.pdf", dataDir + "CopyOuterField_out.pdf");

            //copy a text field from one document to another one
            formEditor.CopyOuterField("textfieldform.pdf", "textfield", 1);
            //close and save the output document
            formEditor.Save();
        }
Beispiel #6
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //open the document and create a FormEditor object
            FormEditor formEditor = new FormEditor(dataDir + "input_form.pdf", dataDir + "output.pdf");

            //copy a text field from one document to another one
            formEditor.CopyOuterField("textfieldform.pdf", "textfield", 1);
            //close and save the output document
            formEditor.Save();
        }