CreateFileAttachment

CreateFileAttachment(Rectangle, string, string, int, string)

إنشاء تعليق توضيحي لمرفق الملف .

public void CreateFileAttachment(Rectangle rect, string contents, string filePath, int page, 
    string name)
معامليكتبوصف
rectRectangleمستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة.
contentsStringمحتويات الشرح.
filePathStringسيتم إرفاق مسار الملف.
pageInt32رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي.
nameStringسيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “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");

أنظر أيضا


CreateFileAttachment(Rectangle, string, string, int, string, double)

إنشاء تعليق توضيحي لمرفق الملف .

public void CreateFileAttachment(Rectangle rect, string contents, string filePath, int page, 
    string name, double opacity)
معامليكتبوصف
rectRectangleمستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة.
contentsStringمحتويات الشرح.
filePathStringسيتم إرفاق مسار الملف.
pageInt32رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي.
nameStringسيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”.
opacityDoubleتعتيم الرمز من 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");

أنظر أيضا


CreateFileAttachment(Rectangle, string, Stream, string, int, string)

إنشاء تعليق توضيحي لمرفق الملف .

public void CreateFileAttachment(Rectangle rect, string contents, Stream attachmentStream, 
    string attachmentName, int page, string name)
معامليكتبوصف
rectRectangleمستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة.
contentsStringمحتويات الشرح.
attachmentStreamStreamتدفق ملف المرفق.
attachmentNameStringاسم المرفق.
pageInt32رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي.
nameStringسيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “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");
}

أنظر أيضا


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)
معامليكتبوصف
rectRectangleمستطيل التعليق التوضيحي الذي يحدد موقع التعليق التوضيحي على الصفحة.
contentsStringمحتويات الشرح.
attachmentStreamStreamتدفق ملف المرفق.
attachmentNameStringاسم المرفق.
pageInt32رقم الصفحة الأصلية حيث سيتم إنشاء التعليق التوضيحي.
nameStringسيتم استخدام اسم الرمز في عرض التعليق التوضيحي . يمكن أن تكون هذه القيمة: “رسم بياني” ، “PushPin” ، “مشبك ورق” ، “علامة”.
opacityDoubleتعتيم الرمز من 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");
}

أنظر أيضا