org.sejda.model.parameter
Class ViewerPreferencesParameters
java.lang.Object
org.sejda.model.parameter.base.AbstractParameters
org.sejda.model.parameter.base.AbstractPdfOutputParameters
org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
org.sejda.model.parameter.ViewerPreferencesParameters
- All Implemented Interfaces:
- MultipleOutputTaskParameters, MultiplePdfSourceTaskParameters, TaskParameters
public class ViewerPreferencesParameters
- extends MultiplePdfSourceMultipleOutputParameters
Parameter class for the set viewer preferences manipulation. Accepts a list of PdfSource where the view preferences will be applied.
- Author:
- Andrea Vacondio
ViewerPreferencesParameters
public ViewerPreferencesParameters()
addEnabledPreference
public boolean addEnabledPreference(PdfBooleanPreference e)
clearEnabledPreferences
public void clearEnabledPreferences()
getPageMode
public PdfPageMode getPageMode()
setPageMode
public void setPageMode(PdfPageMode pageMode)
getPageLayout
public PdfPageLayout getPageLayout()
setPageLayout
public void setPageLayout(PdfPageLayout pageLayout)
getNfsMode
public PdfNonFullScreenPageMode getNfsMode()
setNfsMode
public void setNfsMode(PdfNonFullScreenPageMode nfsMode)
getDuplex
public PdfDuplex getDuplex()
setDuplex
public void setDuplex(PdfDuplex duplex)
getDirection
public PdfDirection getDirection()
setDirection
public void setDirection(PdfDirection direction)
getPrintScaling
public PdfPrintScaling getPrintScaling()
setPrintScaling
public void setPrintScaling(PdfPrintScaling printScaling)
getEnabledPreferences
public Set<PdfBooleanPreference> getEnabledPreferences()
- Returns:
- an unmodifiable view of the enabled boolean preferences
getMinRequiredPdfVersion
public PdfVersion getMinRequiredPdfVersion()
- Overrides:
getMinRequiredPdfVersion in class AbstractPdfOutputParameters
- Returns:
- the min output pdf version required by this parameter object depending on its attributes. Each extending class is responsible for the implementation of this method.
hashCode
public int hashCode()
- Overrides:
hashCode in class MultiplePdfSourceMultipleOutputParameters
equals
public boolean equals(Object other)
- Overrides:
equals in class MultiplePdfSourceMultipleOutputParameters
addSource
public void addSource(PdfSource<?> input)
- adds the input source to the source list.
- Specified by:
addSource in interface MultiplePdfSourceTaskParameters
- Parameters:
input -
getSourceList
public List<PdfSource<?>> getSourceList()
- Specified by:
getSourceList in interface MultiplePdfSourceTaskParameters
- Returns:
- an unmodifiable view of the source list
Copyright © 2013 sejda. All Rights Reserved.