Click or drag to resize
Pdftools logo

Auto Class

The image mapping that automatically determines a suitable conversion

Images with a meaningful resolution, e.g. scans or graphics, are converted to PDF pages fitting the image. The image size is preserved if it is smaller than MaxPageSize. Otherwise, it is scaled down. For all images except scans, a margin DefaultPageMargin is used.

Images with no meaningful resolution, e.g. photos are scaled, to fit onto MaxPageSize.

Inheritance Hierarchy
SystemObject
  PdfTools.InternalNativeBase
    PdfTools.InternalNativeObject
      PdfTools.Image2PdfImageMapping
        PdfTools.Image2PdfAuto

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

The Auto type exposes the following members.

Constructors
 NameDescription
Public methodAuto 
Top
Properties
 NameDescription
Public propertyDefaultPageMargin

The default page margin

Default value: 20mm (0.79in)
Public propertyMaxPageSize

The maximum page size

Each image is scaled individually such that neither the width nor the height exceeds the maximum page size. For landscape images the maximum page size is assumed to be landscape, and equivalently for portrait images.

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

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