PageCreateFromImage Method (String, ResourceManager, FromImagePageSettings, Int32)

Apitron PDF Kit help
Apitron.PDF.Kit library for .NET
Creates a page from the specified image.

Namespace:  Apitron.PDF.Kit.FixedLayout
Assembly:  Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax

public static Page CreateFromImage(
	string fileName,
	ResourceManager resourceManager,
	FromImagePageSettings fromImagePageSettings,
	int frameIndex = 0
)

Parameters

fileName
Type: SystemString
Name of the file.
resourceManager
Type: Apitron.PDF.Kit.FixedLayout.ResourcesResourceManager
The resource manager where the image will be stored
fromImagePageSettings
Type: Apitron.PDF.Kit.FixedLayoutFromImagePageSettings
The settings.
frameIndex (Optional)
Type: SystemInt32
Index of the frame. This parameter has significance only for TIFF images.

Return Value

Type: Page
The page.
Examples

C#
// create a multipage document
FixedDocument document = new FixedDocument();

// create page from an image, image will be occupy the entire space of the page (f.e. scanned documents)
Page page = Page.CreateFromImage(fileName, document.ResourceManager, settings);

document.Pages.Add(page);
See Also

Reference