Click or drag to resize
SignDocDocumentimportPageFromImageFile Method
Import a page from a file 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.6773.37566
Syntax
C#
public void importPageFromImageFile(
	int targetPage,
	string path,
	double zoom,
	double width,
	double height,
	ImportImageFlag flags
)

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.
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.
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.
See Also