CreateFileAttachment
محتويات
[
يخفي
]CreateFileAttachment(Rectangle, string, string, int, string)
إنشاء تعليق توضيحي لمرفق الملف .
public void CreateFileAttachment(Rectangle rect, string contents, string filePath, int page,
string name)
معامل | يكتب | وصف |
---|---|---|
rect | Rectangle | مستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة. |
contents | String | محتويات الشرح. |
filePath | String | سيتم إرفاق مسار الملف. |
page | Int32 | رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي. |
name | String | سيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”. |
أمثلة
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", "attachment_file.pdf", 1, "Graph");
editor.Save("example_out.pdf");
أنظر أيضا
- class PdfContentEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF
CreateFileAttachment(Rectangle, string, string, int, string, double)
إنشاء تعليق توضيحي لمرفق الملف .
public void CreateFileAttachment(Rectangle rect, string contents, string filePath, int page,
string name, double opacity)
معامل | يكتب | وصف |
---|---|---|
rect | Rectangle | مستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة. |
contents | String | محتويات الشرح. |
filePath | String | سيتم إرفاق مسار الملف. |
page | Int32 | رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي. |
name | String | سيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”. |
opacity | Double | تعتيم الرمز من 0 إلى 1: 0 - شفاف تمامًا ، 1 - معتم تمامًا. |
أمثلة
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", "attachment_file.pdf", 1, "Graph", 0.5);
editor.Save("example_out.pdf");
أنظر أيضا
- class PdfContentEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF
CreateFileAttachment(Rectangle, string, Stream, string, int, string)
إنشاء تعليق توضيحي لمرفق الملف .
public void CreateFileAttachment(Rectangle rect, string contents, Stream attachmentStream,
string attachmentName, int page, string name)
معامل | يكتب | وصف |
---|---|---|
rect | Rectangle | مستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة. |
contents | String | محتويات الشرح. |
attachmentStream | Stream | تدفق ملف المرفق. |
attachmentName | String | اسم المرفق. |
page | Int32 | رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي. |
name | String | سيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”. |
أمثلة
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
using(System.IO.FileStream attStream = System.IO.File.OpenRead("attachment_file.pdf"))
{
editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", attStream, "attachment_file.pdf", 1, "Graph");
editor.Save("example_out.pdf");
}
أنظر أيضا
- class PdfContentEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF
CreateFileAttachment(Rectangle, string, Stream, string, int, string, double)
إنشاء تعليق توضيحي لمرفق الملف .
public void CreateFileAttachment(Rectangle rect, string contents, Stream attachmentStream,
string attachmentName, int page, string name, double opacity)
معامل | يكتب | وصف |
---|---|---|
rect | Rectangle | مستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة. |
contents | String | محتويات الشرح. |
attachmentStream | Stream | تدفق ملف المرفق. |
attachmentName | String | اسم المرفق. |
page | Int32 | رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي. |
name | String | سيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”. |
opacity | Double | تعتيم الرمز من 0 إلى 1: 0 - شفاف تمامًا ، 1 - معتم تمامًا. |
أمثلة
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
using(System.IO.FileStream attStream = System.IO.File.OpenRead("attachment_file.pdf"))
{
editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 100, 100),
"Welcome to Aspose", attStream, "attachment_file.pdf", 1, "Graph", 0.5);
editor.Save("example_out.pdf");
}
أنظر أيضا
- class PdfContentEditor
- مساحة الاسم Aspose.Pdf.Facades
- المجسم Aspose.PDF