Click or drag to resize
Pdftools logo

ShrinkToPage Class

The image mapping that places the image onto pages of the specified size

Place images onto portrait or landscape pages. If an image is too large to fit on a page, the page may be rotated to better accommodate the image. Large images are scaled down to fit onto the PDF page size PageSize.
Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.Image2PdfImageMapping
        PdfTools.Image2PdfShrinkToPage

Namespace: PdfTools.Image2Pdf
Assembly: PdfTools (in PdfTools.dll) Version: 1.6.0+e1db8f4bf6125495a2d29513486ea3e61205c81b
Syntax
C#
public class ShrinkToPage : ImageMapping

The ShrinkToPage type exposes the following members.

Constructors
 NameDescription
Public methodShrinkToPage 
Top
Properties
 NameDescription
Public propertyPageMargin

The page margin

Default value: 20mm (0.79in)
Public propertyPageSize

The page size

All output pages are created with that size. The default page orientation is portrait, but if the image fits better, the page is rotated to landscape.

Default value: "A4" (210mm 297mm)

Top
Methods
 NameDescription
Public methodEquals
(Inherited from NativeObject)
Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also