Click or drag to resize
SignDocDocumentimportPageFromImageBlob2 Method
Import a page from a blob containing an image. This function is currently implemented for PDF documents only.

Namespace:  de.softpro.signdocsdk
Assembly:  SPSignDoc_4.3_DotNetLib (in SPSignDoc_4.3_DotNetLib.dll) Version: 1.0.7023.29499
Syntax
C#
public void importPageFromImageBlob2(
	int targetPage,
	byte[] data,
	double zoom,
	double width,
	double height,
	ImportImageFlag flags,
	string description,
	string lang
)

Parameters

targetPage
Type: SystemInt32
The 1-based number of the page before which to insert the new page. The page will be appended if this value is 0.
data
Type: SystemByte
The blob 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.
width
Type: SystemDouble
Page 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