PdfContentEditor.ReplaceImage
PdfContentEditor.ReplaceImage method
Replaces the specified image on the specified page of PDF document with another image.
public void ReplaceImage(int pageNumber, int index, string imageFile)
Parameter | Type | Description |
---|---|---|
pageNumber | Int32 | The number of page on which the image is replaced. |
index | Int32 | The index of the image object must be replaced. |
imageFile | String | The image file will be used for replacing. |
Examples
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.ReplaceImage(1, 1, "image.jpg");
editor.Save("example_out.pdf");
See Also
- class PdfContentEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF