PdfFileMend.AddImage

AddImage(Stream, int, float, float, float, float)

تضيف صورة إلى الصفحة المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(Stream imageStream, int pageNum, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY)
ParameterTypeDescription
imageStreamStreamتدفق الصورة المدخلة.
pageNumInt32رقم الصفحة التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
using (Stream stream = File.OpenRead("picture.jpg"))
{
    mendor.AddImage(stream, 1, 10, 10, 100, 100);
}
mendor.Close();

See Also


AddImage(Stream, int, float, float, float, float, CompositingParameters)

تضيف صورة إلى الصفحة المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(Stream imageStream, int pageNum, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY, CompositingParameters compositingParameters)
ParameterTypeDescription
imageStreamStreamتدفق الصورة المدخلة.
pageNumInt32رقم الصفحة التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.
compositingParametersCompositingParametersمعلمات تجميع الرسوميات للصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
using (Stream stream = File.OpenRead("picture.jpg"))
{
    mendor.AddImage(stream, 1, 10, 10, 100, 100, new CompositingParameters(BlendMode.Multiply);
}
mendor.Close();

See Also


AddImage(Stream, int[], float, float, float, float)

تضيف صورة إلى الصفحات المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(Stream imageStream, int[] pageNums, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY)
ParameterTypeDescription
imageStreamStreamتدفق الصورة المدخلة.
pageNumsInt32[]أرقام الصفحات التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
using (Stream stream = File.OpenRead("picture.jpg"))
{
    mendor.AddImage(stream, new int[]{1, 2}, 10, 10, 100, 100);
}
mendor.Close();

See Also


AddImage(Stream, int[], float, float, float, float, CompositingParameters)

تضيف صورة إلى الصفحات المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(Stream imageStream, int[] pageNums, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY, CompositingParameters compositingParameters)
ParameterTypeDescription
imageStreamStreamتدفق الصورة المدخلة.
pageNumsInt32[]أرقام الصفحات التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.
compositingParametersCompositingParametersمعلمات تجميع الرسوميات للصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
using (Stream stream = File.OpenRead("picture.jpg"))
{
    mendor.AddImage(stream, new int[]{1, 2}, 10, 10, 100, 100, new CompositingParameters(BlendMode.Multiply);
}
mendor.Close();

See Also


AddImage(string, int, float, float, float, float)

تضيف صورة إلى الصفحة المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(string imageName, int pageNum, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY)
ParameterTypeDescription
imageNameStringمسار ملف الصورة المدخلة.
pageNumInt32رقم الصفحة التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
mendor.AddImage("picture.jpg", 1, 10, 10, 100, 100);
mendor.Close();

See Also


AddImage(string, int, float, float, float, float, CompositingParameters)

تضيف صورة إلى الصفحة المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(string imageName, int pageNum, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY, CompositingParameters compositingParameters)
ParameterTypeDescription
imageNameStringمسار ملف الصورة المدخلة.
pageNumInt32رقم الصفحة التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.
compositingParametersCompositingParametersمعلمات تجميع الرسوميات للصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
mendor.AddImage("picture.jpg", 1, 10, 10, 100, 100, new CompositingParameters(BlendMode.Multiply));
mendor.Close();

See Also


AddImage(string, int[], float, float, float, float)

تضيف صورة إلى الصفحات المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(string imageName, int[] pageNums, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY)
ParameterTypeDescription
imageNameStringمسار ملف الصورة المدخلة.
pageNumsInt32[]أرقام الصفحات التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
mendor.AddImage("picture.jpg", 1, 10, 10, 100, 100);
mendor.Close();

See Also


AddImage(string, int[], float, float, float, float, CompositingParameters)

تضيف صورة إلى الصفحات المحددة من مستند PDF عند الإحداثيات المحددة.

public bool AddImage(string imageName, int[] pageNums, float lowerLeftX, float lowerLeftY, 
    float upperRightX, float upperRightY, CompositingParameters compositingParameters)
ParameterTypeDescription
imageNameStringمسار ملف الصورة المدخلة.
pageNumsInt32[]أرقام الصفحات التي ستستقبل الصورة.
lowerLeftXSingleالإحداثي السيني السفلي الأيسر لمستطيل الصورة.
lowerLeftYSingleالإحداثي الصادي السفلي الأيسر لمستطيل الصورة.
upperRightXSingleالإحداثي السيني العلوي الأيمن لمستطيل الصورة.
upperRightYSingleالإحداثي الصادي العلوي الأيمن لمستطيل الصورة.
compositingParametersCompositingParametersمعلمات تجميع الرسوميات للصورة.

Return Value

صحيح إذا نجح، خطأ خلاف ذلك.

Examples

PdfFileMend mendor = new PdfFileMend("example.pdf", "out_example.pdf");
mendor.AddImage("picture.jpg", 1, 10, 10, 100, 100, new CompositingParameters(BlendMode.Multiply));
mendor.Close();

See Also