Module org.sejda.model
Package org.sejda.model.parameter.image
Class AbstractPdfToMultipleImageParameters
java.lang.Object
org.sejda.model.parameter.base.AbstractParameters
org.sejda.model.parameter.base.AbstractPdfOutputParameters
org.sejda.model.parameter.base.MultiplePdfSourceParameters
org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
org.sejda.model.parameter.image.AbstractPdfToMultipleImageParameters
- All Implemented Interfaces:
MultiplePdfSourceTaskParameters
,PrefixableTaskParameters
,SingleOrMultipleOutputTaskParameters
,TaskParameters
,PdfToImageParameters
,PageRangeSelection
,PagesSelection
- Direct Known Subclasses:
PdfToJpegParameters
,PdfToMultipleTiffParameters
,PdfToPngParameters
public abstract class AbstractPdfToMultipleImageParameters
extends MultiplePdfSourceMultipleOutputParameters
implements PageRangeSelection, PagesSelection, PdfToImageParameters
Base class for a parameter meant to convert an existing pdf source to multiple images of a specified type.
- Author:
- Andrea Vacondio
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllPageRanges
(Collection<PageRange> ranges) void
addPageRange
(PageRange range) boolean
abstract @NotNull ImageType
getPages
(int upperLimit) int
int
hashCode()
void
setOutputImageColorType
(ImageColorType outputImageColorType) void
setResolutionInDpi
(int resolutionInDpi) Methods inherited from class org.sejda.model.parameter.base.MultiplePdfSourceMultipleOutputParameters
addSpecificResultFilename, addSpecificResultFilenames, getOutput, getOutputPrefix, getSpecificResultFilename, getSpecificResultFilename, getSpecificResultFilenames, setOutput, setOutputPrefix
Methods inherited from class org.sejda.model.parameter.base.MultiplePdfSourceParameters
addSource, addSources, getSourceList, removeAllSources
Methods inherited from class org.sejda.model.parameter.base.AbstractPdfOutputParameters
getMinRequiredPdfVersion, getVersion, isCompress, setCompress, setVersion
Methods inherited from class org.sejda.model.parameter.base.AbstractParameters
getExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
getExistingOutputPolicy, getOutput, isLenient, setExistingOutputPolicy, setLenient
-
Field Details
-
DEFAULT_DPI
public static final int DEFAULT_DPI- See Also:
-
-
Method Details
-
getOutputImageColorType
- Specified by:
getOutputImageColorType
in interfacePdfToImageParameters
-
setOutputImageColorType
- Specified by:
setOutputImageColorType
in interfacePdfToImageParameters
-
getOutputImageType
- Returns:
- the type of image the task executing this parameter will convert the pdf source to.
-
getResolutionInDpi
public int getResolutionInDpi()- Specified by:
getResolutionInDpi
in interfacePdfToImageParameters
-
setResolutionInDpi
public void setResolutionInDpi(int resolutionInDpi) - Specified by:
setResolutionInDpi
in interfacePdfToImageParameters
-
addPageRange
-
addAllPageRanges
-
getPageSelection
- Specified by:
getPageSelection
in interfacePageRangeSelection
- Returns:
- an unmodifiable view of the pageSelection
-
getPages
- Specified by:
getPages
in interfacePagesSelection
- Parameters:
upperLimit
- the number of pages of the document (upper limit).- Returns:
- the selected set of pages. Iteration ordering is predictable, it is the order in which elements were inserted into the
PageRange
set or the natural order in case of all pages. - See Also:
-
equals
- Overrides:
equals
in classMultiplePdfSourceMultipleOutputParameters
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMultiplePdfSourceMultipleOutputParameters
-