Esempio n. 1
0
 public static void Main()
 {
     // The path to the documents directory.
     string dataDir = Path.GetFullPath("../../../Data/");
     //open input PDF
     PdfContentEditor pdfContentEditor = new PdfContentEditor();
     pdfContentEditor.BindPdf(dataDir+ "input.pdf");
     //replace image on a particular page
     pdfContentEditor.ReplaceImage(1, 1, dataDir+ "aspose-logo.jpg");
     //save output PDF
     pdfContentEditor.Save(dataDir+ "output.pdf");
 }
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
            //open input PDF
            PdfContentEditor pdfContentEditor = new PdfContentEditor();

            pdfContentEditor.BindPdf(dataDir + "ReplaceImage.pdf");
            //replace image on a particular page
            pdfContentEditor.ReplaceImage(1, 1, dataDir + "aspose-logo.jpg");
            //save output PDF
            pdfContentEditor.Save(dataDir + "ReplaceImage_out.pdf");
        }
Esempio n. 3
0
        public static void Main()
        {
            // The path to the documents directory.
            string dataDir = Path.GetFullPath("../../../Data/");
            //open input PDF
            PdfContentEditor pdfContentEditor = new PdfContentEditor();

            pdfContentEditor.BindPdf(dataDir + "input.pdf");
            //replace image on a particular page
            pdfContentEditor.ReplaceImage(1, 1, dataDir + "aspose-logo.jpg");
            //save output PDF
            pdfContentEditor.Save(dataDir + "output.pdf");
        }
Esempio n. 4
0
 public static void Run()
 {
     // The path to the documents directory.
     string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images();
     //open input PDF
     PdfContentEditor pdfContentEditor = new PdfContentEditor();
     pdfContentEditor.BindPdf(dataDir+ "ReplaceImage.pdf");
     //replace image on a particular page
     pdfContentEditor.ReplaceImage(1, 1, dataDir+ "aspose-logo.jpg");
     //save output PDF
     pdfContentEditor.Save(dataDir+ "ReplaceImage_out.pdf");
     
     
 }