Package io.scanbot.pdf.model
Class PdfConfig
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class PdfConfig implements Parcelable
Represents the PDF configuration which will be used for the PDF file creation.
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_PDF_DPIpublic final static IntegerDEFAULT_JPEG_QUALITYprivate final PdfAttributespdfAttributesprivate final PageSizepageSizeprivate final PageDirectionpageDirectionprivate final PageFitpageFitprivate final Integerdpiprivate final IntegerjpegQualityprivate final ResamplingMethodresamplingMethod
-
Constructor Summary
Constructors Constructor Description PdfConfig(PdfAttributes pdfAttributes, PageSize pageSize, PageDirection pageDirection, PageFit pageFit, Integer dpi, Integer jpegQuality, ResamplingMethod resamplingMethod)
-
Method Summary
Modifier and Type Method Description final PdfAttributesgetPdfAttributes()final PageSizegetPageSize()final PageDirectiongetPageDirection()final PageFitgetPageFit()final IntegergetDpi()final IntegergetJpegQuality()final ResamplingMethodgetResamplingMethod()final static PdfConfigdefaultConfig()Returns the default PDF configuration. -
-
Constructor Detail
-
PdfConfig
PdfConfig(PdfAttributes pdfAttributes, PageSize pageSize, PageDirection pageDirection, PageFit pageFit, Integer dpi, Integer jpegQuality, ResamplingMethod resamplingMethod)
- Parameters:
pdfAttributes- The PDF attributes (document metadata - author, creator, title, etc.).pageSize- Physical size of the page (A4, A5, LETTER, etc.).pageDirection- The page direction of the PDF file (PORTRAIT, LANDSCAPE, AUTO).pageFit- How to fit the image into the page (FIT_IN, FILL_IN, STRETCH, NONE).dpi- Thedpiparameter has two different meanings depending on the value ofpageSizeandpageFit.jpegQuality- JPEG quality for images.resamplingMethod- if NONE: always geometrically rescale the image to fit the page if necessary.
-
-
Method Detail
-
getPdfAttributes
final PdfAttributes getPdfAttributes()
-
getPageSize
final PageSize getPageSize()
-
getPageDirection
final PageDirection getPageDirection()
-
getPageFit
final PageFit getPageFit()
-
getJpegQuality
final Integer getJpegQuality()
-
getResamplingMethod
final ResamplingMethod getResamplingMethod()
-
defaultConfig
final static PdfConfig defaultConfig()
Returns the default PDF configuration.
-
-
-
-