org.sejda.model.parameter.image
Class AbstractPdfToImageParameters
java.lang.Object
org.sejda.model.parameter.base.AbstractParameters
org.sejda.model.parameter.image.AbstractPdfToImageParameters
- All Implemented Interfaces:
- SinglePdfSourceTaskParameters, TaskParameters
- Direct Known Subclasses:
- AbstractPdfToMultipleImageParameters, AbstractPdfToSingleImageParameters
public abstract class AbstractPdfToImageParameters
- extends AbstractParameters
- implements SinglePdfSourceTaskParameters
Base class for a parameter meant to convert an existing pdf source to an image of a specified type.
- Author:
- Andrea Vacondio
DEFAULT_DPI
public static final int DEFAULT_DPI
- See Also:
- Constant Field Values
getSource
public PdfSource<?> getSource()
- Specified by:
getSource in interface SinglePdfSourceTaskParameters
- Returns:
- the source for this parameter.
setSource
public void setSource(PdfSource<?> source)
- Description copied from interface:
SinglePdfSourceTaskParameters
- Set the source for this parameter.
- Specified by:
setSource in interface SinglePdfSourceTaskParameters
getOutputImageColorType
public ImageColorType getOutputImageColorType()
getUserZoom
public float getUserZoom()
setUserZoom
public void setUserZoom(float userZoom)
- Controls the resolution of the resulting images. Works well with vector pdf files, not with the ones that already have images embedded.
- Parameters:
userZoom - how much should the pdf page be zoomed in before it gets rendered as an image.
getOutputImageType
@NotNull
public abstract ImageType getOutputImageType()
- Returns:
- the type of image the task executing this parameter will convert the pdf source to.
getResolutionInDpi
public int getResolutionInDpi()
setResolutionInDpi
public void setResolutionInDpi(int resolutionInDpi)
hashCode
public int hashCode()
- Overrides:
hashCode in class AbstractParameters
equals
public boolean equals(Object other)
- Overrides:
equals in class AbstractParameters
Copyright © 2013 sejda. All Rights Reserved.