PdfFileEditor.Delete
محتويات
[
يخفي
]Delete(string, int[], string)
تحذف الصفحات المحددة بواسطة مصفوفة الأرقام من ملف الإدخال، وتحفظ كملف Pdf جديد.
public bool Delete(string inputFile, int[] pageNumber, string outputFile)
| Parameter | Type | Description |
|---|---|---|
| inputFile | String | مسار ملف الإدخال. |
| pageNumber | Int32[] | فهرس الصفحة من ملف الإدخال. |
| outputFile | String | مسار ملف الإخراج. |
Return Value
True إذا كانت العملية ناجحة.
Examples
PdfFileEditor pfe = new PdfFileEditor();
pfe.Delete("input.pdf", new int[] { 2, 3 }, "out.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Delete(Stream, int[], Stream)
تحذف الصفحات المحددة بواسطة مصفوفة الأرقام من ملف الإدخال، وتحفظ كملف Pdf جديد.
public bool Delete(Stream inputStream, int[] pageNumber, Stream outputStream)
| Parameter | Type | Description |
|---|---|---|
| inputStream | Stream | تدفق ملف الإدخال. |
| pageNumber | Int32[] | فهرس الصفحة من ملف الإدخال. |
| outputStream | Stream | تدفق ملف الإخراج. |
Return Value
True للنجاح، أو false.
Examples
PdfFileEditor pfe = new PdfFileEditor();
Stream intputStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream outputStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
pfe.Delete(inputStream, new int[] { 2, 3 }, outputStream);
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF