public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); //open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir+ "input.pdf"); //delete the images from the particular page contentEditor.DeleteImage(); //save output PDF contentEditor.Save(dataDir+ "output.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images(); //open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir + "DeleteAllImages.pdf"); //delete the images from the particular page contentEditor.DeleteImage(); //save output PDF contentEditor.Save(dataDir + "DeleteAllImages_out.pdf"); }
public static void Main() { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); //open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir + "input.pdf"); //delete the images from the particular page contentEditor.DeleteImage(); //save output PDF contentEditor.Save(dataDir + "output.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images(); //open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir+ "DeleteAllImages.pdf"); //delete the images from the particular page contentEditor.DeleteImage(); //save output PDF contentEditor.Save(dataDir+ "DeleteAllImages_out.pdf"); }
public static void Run() { // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images(); //open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir + "DeleteImages-Page.pdf"); //array of images to be deleted int[] imageIndex = new int[] { 1 }; //delete the images from the particular page contentEditor.DeleteImage(2, imageIndex); //save output PDF contentEditor.Save(dataDir + "DeleteImages-Page_out.pdf"); }
public static void Run() { // ExStart:DeleteImagesPage // The path to the documents directory. string dataDir = RunExamples.GetDataDir_AsposePdfFacades_Images(); // Open PDF file PdfContentEditor contentEditor = new PdfContentEditor(); contentEditor.BindPdf(dataDir+ "DeleteImages-Page.pdf"); // Array of images to be deleted int[] imageIndex = new int[] { 1 }; // Delete the images from the particular page contentEditor.DeleteImage(2, imageIndex); // Save output PDF contentEditor.Save(dataDir+ "DeleteImages-Page_out.pdf"); // ExEnd:DeleteImagesPage }