Exemplo 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");
 }
Exemplo n.º 2
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");
        }
Exemplo 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");
        }
Exemplo 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");
     
     
 }