Apitron.PDF.Kit library for .NET
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Appends an image.
Namespace: Apitron.PDF.Kit.FixedLayout.Content
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
Parameters
- resourceID
- Type: SystemString
The image resource ID. - boundary
- Type: Apitron.PDF.Kit.FixedLayoutBoundary
The boundary.
Examples
C#
// register our image as a resource FixedLayout.Resources.XObjects.Image image = new FixedLayout.Resources.XObjects.Image("Image1", "image.png"); document.ResourceManager.RegisterResource(image); // add page Page page = new Page(new PageBoundary(Boundaries.A3)); // append our image page.Content.AppendImage("Image1", new Bpundary(10, 50, image.Width, image.Height)); document.Pages.Add(page);
See Also