public class

PDFViewCtrlConfig

extends Object
implements Parcelable
java.lang.Object
   ↳ com.pdftron.pdf.config.PDFViewCtrlConfig

Class Overview

This is a utility class for setting up PDFViewCtrl initially.

If any of the properties are changed via PDFViewCtrl, this default config class will not get updated.

Summary

Constants
double MAX_RELATIVE_ZOOM_LIMIT
double MIN_RELATIVE_REF_ZOOM_DP
double MIN_RELATIVE_ZOOM_LIMIT
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<PDFViewCtrlConfig> CREATOR
Public Constructors
PDFViewCtrlConfig(Context context)
Public Methods
int describeContents()
static PDFViewCtrlConfig getDefaultConfig(Context context)
Gets default PDFNet configuration
boolean isDirectionalScrollLockEnabled()
PDFViewCtrlConfig setClientBackgroundColor(int clientBackgroundColor)
PDFViewCtrlConfig setClientBackgroundColorDark(int clientBackgroundColorDark)
PDFViewCtrlConfig setDeviceDensity(double deviceDensity)
PDFViewCtrlConfig setDeviceDensityScaleFactor(int deviceDensityScaleFactor)
PDFViewCtrlConfig setDirectionalScrollLockEnabled(boolean directionalScrollLockEnabled)
PDFViewCtrlConfig setHighlightFields(boolean highlightFields)
PDFViewCtrlConfig setImageSmoothing(boolean imageSmoothing)
PDFViewCtrlConfig setMaintainZoomEnabled(boolean maintainZoomEnabled)
PDFViewCtrlConfig setMinimumRefZoomForMaximumZoomLimit(double minimumRefZoomForMaximumZoomLimit)
PDFViewCtrlConfig setPageHorizontalColumnSpacing(int pageHorizontalColumnSpacing)
PDFViewCtrlConfig setPageHorizontalPadding(int pageHorizontalPadding)
PDFViewCtrlConfig setPagePreferredViewMode(PDFViewCtrl.PageViewMode pagePreferredViewMode)
PDFViewCtrlConfig setPageRefViewMode(PDFViewCtrl.PageViewMode pageRefViewMode)
PDFViewCtrlConfig setPageVerticalColumnSpacing(int pageVerticalColumnSpacing)
PDFViewCtrlConfig setPageVerticalPadding(int pageVerticalPadding)
PDFViewCtrlConfig setPageViewMode(PDFViewCtrl.PageViewMode pageViewMode)
PDFViewCtrlConfig setQuickScaleEnabled(boolean enabled)
PDFViewCtrlConfig setRenderedContentCacheSize(long renderedContentCacheSize)
PDFViewCtrlConfig setThumbnailGenerateAtRuntime(boolean thumbnailGenerateAtRuntime)
PDFViewCtrlConfig setThumbnailMaxAbsoluteCacheSize(long thumbnailMaxAbsoluteCacheSize)
PDFViewCtrlConfig setThumbnailMaxPercentageCacheSize(double thumbnailMaxPercentageCacheSize)
PDFViewCtrlConfig setThumbnailMaxSideLength(int thumbnailMaxSideLength)
PDFViewCtrlConfig setThumbnailUseDiskCache(boolean thumbnailUseDiskCache)
PDFViewCtrlConfig setThumbnailUseEmbedded(boolean thumbnailUseEmbedded)
PDFViewCtrlConfig setUrlExtraction(boolean urlExtraction)
void writeToParcel(Parcel parcel, int i)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final double MAX_RELATIVE_ZOOM_LIMIT

Constant Value: 20.0

public static final double MIN_RELATIVE_REF_ZOOM_DP

Constant Value: 0.5

public static final double MIN_RELATIVE_ZOOM_LIMIT

Constant Value: 1.0

Fields

public static final Creator<PDFViewCtrlConfig> CREATOR

Public Constructors

public PDFViewCtrlConfig (Context context)

Public Methods

public int describeContents ()

public static PDFViewCtrlConfig getDefaultConfig (Context context)

Gets default PDFNet configuration

Parameters
context application context
Returns
  • the PDFNet configuration

public boolean isDirectionalScrollLockEnabled ()

public PDFViewCtrlConfig setClientBackgroundColor (int clientBackgroundColor)

public PDFViewCtrlConfig setClientBackgroundColorDark (int clientBackgroundColorDark)

public PDFViewCtrlConfig setDeviceDensity (double deviceDensity)

public PDFViewCtrlConfig setDeviceDensityScaleFactor (int deviceDensityScaleFactor)

public PDFViewCtrlConfig setDirectionalScrollLockEnabled (boolean directionalScrollLockEnabled)

public PDFViewCtrlConfig setHighlightFields (boolean highlightFields)

public PDFViewCtrlConfig setImageSmoothing (boolean imageSmoothing)

public PDFViewCtrlConfig setMaintainZoomEnabled (boolean maintainZoomEnabled)

public PDFViewCtrlConfig setMinimumRefZoomForMaximumZoomLimit (double minimumRefZoomForMaximumZoomLimit)

public PDFViewCtrlConfig setPageHorizontalColumnSpacing (int pageHorizontalColumnSpacing)

public PDFViewCtrlConfig setPageHorizontalPadding (int pageHorizontalPadding)

public PDFViewCtrlConfig setPagePreferredViewMode (PDFViewCtrl.PageViewMode pagePreferredViewMode)

public PDFViewCtrlConfig setPageVerticalColumnSpacing (int pageVerticalColumnSpacing)

public PDFViewCtrlConfig setPageVerticalPadding (int pageVerticalPadding)

public PDFViewCtrlConfig setQuickScaleEnabled (boolean enabled)

public PDFViewCtrlConfig setRenderedContentCacheSize (long renderedContentCacheSize)

public PDFViewCtrlConfig setThumbnailGenerateAtRuntime (boolean thumbnailGenerateAtRuntime)

public PDFViewCtrlConfig setThumbnailMaxAbsoluteCacheSize (long thumbnailMaxAbsoluteCacheSize)

public PDFViewCtrlConfig setThumbnailMaxPercentageCacheSize (double thumbnailMaxPercentageCacheSize)

public PDFViewCtrlConfig setThumbnailMaxSideLength (int thumbnailMaxSideLength)

public PDFViewCtrlConfig setThumbnailUseDiskCache (boolean thumbnailUseDiskCache)

public PDFViewCtrlConfig setThumbnailUseEmbedded (boolean thumbnailUseEmbedded)

public PDFViewCtrlConfig setUrlExtraction (boolean urlExtraction)

public void writeToParcel (Parcel parcel, int i)