Click or drag to resize
Pdftools logo

ShrinkToFit Class

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

Place images onto portrait or landscape pages. Large images are scaled down to fit onto PageSize.
Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.Image2PdfImageMapping
        PdfTools.Image2PdfShrinkToFit

Namespace: PdfTools.Image2Pdf
Assembly: PdfTools (in PdfTools.dll) Version: 1.8.0+c1110cafb37403de0188424e1c97e84e318ca892
Syntax
C#
public class ShrinkToFit : ImageMapping

The ShrinkToFit type exposes the following members.

Constructors
 NameDescription
Public methodShrinkToFit 
Top
Properties
 NameDescription
Public propertyForceFit

Whether to force images to fit into the page

If an image is smaller than the specified PageSize, it will be scaled up respecting the aspect ratio to fit within the page dimensions.

Default:

Public propertyPageMargin

The page margin

Default value: 20mm (0.79in)
Public propertyPageSize

The page size

All output pages are created as that size.

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

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