Click or drag to resize
SignDocDocumentaddImageFromFile2 Method
Add an image (from a blob) to a page.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.7023.29499
Syntax
C#
public void addImageFromFile2(
	int targetPage,
	string path,
	double zoom,
	double x,
	double y,
	double width,
	double height,
	ImportImageFlag flags,
	string description,
	string lang
)

Parameters

targetPage
Type: SystemInt32
The 1-based number of the page.
path
Type: SystemString
The pathname of the file containing the image. Supported formats for inserting into PDF documents are: JPEG, PNG, GIF, TIFF, and BMP.
zoom
Type: SystemDouble
Zoom factor or zero. If this argument is non-zero, @a aWidth and @a aHeight must be zero. The size of the page is computed from the image size and resolution, multiplied by @a aZoom.
x
Type: SystemDouble
The X coordinate of the point at which the lower left corner of the image shall be placed.
y
Type: SystemDouble
The Y coordinate of the point at which the lower left corner of the image shall be placed.
width
Type: SystemDouble
Image width (document coordinates) or zero. If this argument is non-zero, @a aHeight must also be non-zero and @a aZoom must be zero. The image will be scaled to this width.
height
Type: SystemDouble
Page height (document coordinates) or zero. If this argument is non-zero, @a aWidth must also be non-zero and @a aZoom must be zero. The image will be scaled to this height.
flags
Type: de.softpro.signdocsdk.Enums.EDocumentImportImageFlag
Flags modifying the behavior of this function, See #ii_keep_aspect_ratio. ii_keep_aspect_ratio is not needed if @a aZoom is non-zero.
description
Type: SystemString
Alternate description for the image. If this value is null or an empty string, lang will be ignored.If this value is null or an empty string and the document uses Tagged PDF, "image" with language code "en" will be used to avoid breaking standard compliance.It is strongly recommended to use a meaningful description. Escape sequences must not be used.
lang
Type: SystemString
Language identifier for @a aDescription. Unless @a aDescription is an empty string, this must be a string containing an RFC 3066 language tag.Example: "en-US"
See Also