Package com.datalogics.PDFL
Enum Class SmoothFlags
- All Implemented Interfaces:
Serializable,Comparable<SmoothFlags>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDraw smooth image.Antialias (smooth) images at low resolutions, but do not resample images when they do not match the target imaging resolution.Resample images using bicubic resampling, but do not antialias images.Enhanced image smoothing controls: Draw smooth image and resample using bicubic resampling.Resample images using linear average subsampling, but do not antialias images.Draw smooth line art.Do not smooth any drawn elementsDraw smooth text.Enhanced text antialiasing controls: Antialias (smooth) text using the DDR sub-pixel antialiasing algorithm.Enable special text "preview" rendering and antialiasing for better visual results when generating images at lower resolutions intended for on-screen viewing. -
Method Summary
Modifier and TypeMethodDescriptionstatic SmoothFlagsReturns the enum constant of this class with the specified name.static SmoothFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Do not smooth any drawn elements -
TEXT
Draw smooth text. This will cause text to be antialiased when drawn. Recommended for lower-resolution applications such as on-screen viewing at low zoom levels. Equivalent to the Smooth Text: for Monitor option in PDF Viewer rendering preferences. -
LINE_ART
Draw smooth line art. This will cause paths (vector line art elements) to be antialiased. Recommended for lower-resolution applications such as on-screen viewing at low zoom levels. -
IMAGE
Draw smooth image. This will cause raster images to be resampled to match the target imaging resolution using an averaged subsampling algorithm, and will cause images to be antialiased when drawn. Recommended for general PDF viewing applications. -
IMAGE_BICUBIC_RESAMPLE_AND_ANTI_ALIAS
Enhanced image smoothing controls: Draw smooth image and resample using bicubic resampling. This will cause raster images to be resampled to match the target imaging resolution using a bicubic subsampling algorithm, and will cause images to be antialiased when drawn. Recommended for general imaging applications. Rendering with this option takes longer than with the Image smoothing option, but generates higher quality output. -
IMAGE_BICUBIC_RESAMPLE
Resample images using bicubic resampling, but do not antialias images. This will cause raster images to be resampled to match the target imaging resolution using a bicubic subsampling algorithm. Recommended for conversion of PDF pages to high-resolution (>= 300dpi) images. Rendering with this option takes longer than with the ImageLinearResample smoothing option, but generates higher quality output. -
IMAGE_LINEAR_RESAMPLE
Resample images using linear average subsampling, but do not antialias images. This will cause raster images to be resampled to match the target imaging resolution using a linear average subsampling algorithm. Recommended for conversion of PDF pages to high-resolution (>= 300dpi) images. Rendering with this option is faster than with the ImageBicubicResample smoothing option, but generates lower quality output. -
IMAGE_ANTI_ALIAS_ONLY
Antialias (smooth) images at low resolutions, but do not resample images when they do not match the target imaging resolution.This is not recommended for most callers.
-
TEXT_ANTI_ALIAS_ENABLE_DDR
Enhanced text antialiasing controls: Antialias (smooth) text using the DDR sub-pixel antialiasing algorithm. Equivalent to the Smooth Text: for Laptop/LCD Screen option in PDF Viewer rendering preferences. Recommended for zoom factors of 150% or more. -
TEXT_ANTI_ALIAS_ENABLE_PREVIEW
Enable special text "preview" rendering and antialiasing for better visual results when generating images at lower resolutions intended for on-screen viewing. This prevents text from looking badly kerned or looking to have poor inter-character spacing.We recommend this for use for viewing applications at zoom levels of 150% or less, though you will want to experiment and decide for yourself.
Do not use this for non-viewing applications. Do not scale up or down the rendered image that is generated from drawing a page using this flag - it will look very blurry and unfocused.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-