|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConvertPdfService
| Field Summary | |
|---|---|
static java.lang.String |
DRAW_SMOOTH_IMAGE
|
static java.lang.String |
DRAW_SMOOTH_LINE_ART
|
static java.lang.String |
DRAW_SMOOTH_TEXT
|
static java.lang.String |
THRESHOLD_RESOLUTION_FOR_SMOOTHING
Parameters used in deciding whether to do smoothing or not for text,lineArt and image. |
| Method Summary | |
|---|---|
int |
getThresholdResolutionForSmoothing()
Returns the Threshold Resolution For Smoothing (in dpi). |
boolean |
isDrawSmoothImage()
Returns the boolean flag that decides whether to apply smoothing functions to Images. |
boolean |
isDrawSmoothLineArt()
Returns the boolean flag that decides whether to apply smoothing functions to LineArt. |
boolean |
isDrawSmoothText()
Returns the boolean flag that decides whether to apply smoothing functions to text. |
void |
setDrawSmoothImage(boolean drawSmoothImage)
Sets the boolean flag that decides whether to apply smoothing functions to Images. |
void |
setDrawSmoothLineArt(boolean drawSmoothLineArt)
Sets the boolean flag that decides whether to apply smoothing functions to LineArt. |
void |
setDrawSmoothText(boolean drawSmoothText)
Sets the boolean flag that decides whether to apply smoothing functions to text. |
void |
setThresholdResolutionForSmoothing(int thresholdResolutionForSmoothing)
Sets the Threshold Resolution For Smoothing (in dpi). |
Document |
toImage(Document inPdfDoc,
ToImageOptionsSpec toImageOptionsSpec)
This method converts a PDF document to Image. |
java.util.List |
toImage2(Document inPdfDoc,
ToImageOptionsSpec toImageOptionsSpec)
This method converts a PDF document to a List of Image documents. |
Document |
toPS(Document inPdfDoc,
PSLevel psLevel)
This method converts the given Flat PDF file to PostScript format using the version indicated by psLevel. |
Document |
toPS2(Document inPdfDoc,
ToPSOptionsSpec toPSOptionsSpec)
This method converts the given Flat PDF file to PostScript format using the options specified in the option spec. |
java.util.List |
toSWF(Document inPdfDoc,
ToSWFOptionsSpec toSWFOptionsSpec)
This method converts a PDF document to a List of SWF documents using the options specified in the option spec |
void |
unzipArchive(Document inZipDoc,
java.lang.String destDir)
This method unzips the archive to the destination directory. |
| Field Detail |
|---|
static final java.lang.String THRESHOLD_RESOLUTION_FOR_SMOOTHING
static final java.lang.String DRAW_SMOOTH_TEXT
static final java.lang.String DRAW_SMOOTH_LINE_ART
static final java.lang.String DRAW_SMOOTH_IMAGE
| Method Detail |
|---|
int getThresholdResolutionForSmoothing()
void setThresholdResolutionForSmoothing(int thresholdResolutionForSmoothing)
thresholdResolutionForSmoothing - boolean isDrawSmoothText()
void setDrawSmoothText(boolean drawSmoothText)
drawSmoothText - boolean isDrawSmoothLineArt()
void setDrawSmoothLineArt(boolean drawSmoothLineArt)
drawSmoothText - boolean isDrawSmoothImage()
void setDrawSmoothImage(boolean drawSmoothImage)
drawSmoothText -
Document toPS(Document inPdfDoc,
PSLevel psLevel)
throws ConvertPdfException
sourcePdf - Document object for the source PDFpsLevel - The version level for the output PostScript
Document The document object for the output PostScript
file.
ConvertPdfException
Document toPS2(Document inPdfDoc,
ToPSOptionsSpec toPSOptionsSpec)
throws ConvertPdfException
sourcePdf - Document object for the source PDFtoPSOptionsSpec - ToPSOptionsSpec option spec
Document The document object for the output PostScript
file.
ConvertPdfException
Document toImage(Document inPdfDoc,
ToImageOptionsSpec toImageOptionsSpec)
throws ConvertPdfException
inPdfDoc - - PDF document to be converted to ImagetoImageOptionsSpec - - This bean holds various preferences for
image conversions.
Following preferences can be set. Default values will be used incase no value
is supplied.
The following table lists the valid values:
| ConversionFormat | JPEG, JPEG2K, PNG, TIFF (Required) |
| GrayScale Compression | Minimum,Low,Medium,High,Maximum,Lossless,LZW,Zip,None |
| Color Compression | Minimum,Low,Medium,High,Maximum,Lossless,LZW,Zip,None |
| JPEG Format | Baseline Standard,Baseline Optimized,3 scans,4 scans,5 scans |
| RGB Policy | Embed Profile,Off |
| CMYK Policy | Embed Profile,Off |
| GrayScale Policy | Embed Profile, Off |
| Color Space | RGB,CMYK,Gray Scale |
| Resolution | 72,96,150,300,600,1200,2400 |
| Tile Size | |
| Interlace | None,Adam7 |
| PNG Filter | None,Sub,Up,Average,Paeth,Adaptive |
| Monochrome | None,CCIT G3,CCITT G4,LZW,Zip |
| Multipage Tiff | True, False |
Document The document object for the output Image files archived
in ZIP format.
ConvertPdfException
java.util.List toImage2(Document inPdfDoc,
ToImageOptionsSpec toImageOptionsSpec)
throws ConvertPdfException
inPdfDoc - - PDF document to be converted to ImagetoImageOptionsSpec - - This bean holds various preferences for
image conversions.
Following preferences can be set. Default values will be used incase no value
is supplied.
The following table lists the valid values:
| ConversionFormat | JPEG, JPEG2K, PNG, TIFF (Required) |
| GrayScale Compression | Minimum,Low,Medium,High,Maximum,Lossless,LZW,Zip,None |
| Color Compression | Minimum,Low,Medium,High,Maximum,Lossless,LZW,Zip,None |
| JPEG Format | Baseline Standard,Baseline Optimized,3 scans,4 scans,5 scans |
| RGB Policy | Embed Profile,Off |
| CMYK Policy | Embed Profile,Off |
| GrayScale Policy | Embed Profile, Off |
| Color Space | RGB,CMYK,Gray Scale |
| Resolution | 72,96,150,300,600,1200,2400 |
| Tile Size | |
| Interlace | None,Adam7 |
| PNG Filter | None,Sub,Up,Average,Paeth,Adaptive |
| Monochrome | None,CCIT G3,CCITT G4,LZW,Zip |
| Multipage Tiff | True, False |
List, the list of image Document objects.
ConvertPdfException
void unzipArchive(Document inZipDoc,
java.lang.String destDir)
throws ConvertPdfException
inZipDoc - - Document object constructed from the Zip filedestDir - - Output Directory
ConvertPdfException
java.util.List toSWF(Document inPdfDoc,
ToSWFOptionsSpec toSWFOptionsSpec)
throws ConvertPdfException
inPdfDoc - Document object for the source PDFtoSWFOptionsSpec - ToSWFOptionsSpec option spec
List, the list of SWF Document objects.
ConvertPdfException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||