|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.conversion.compression.PdfCompressor
public class PdfCompressor
The pdf document compressor.
| Constructor Summary | |
|---|---|
PdfCompressor(java.io.InputStream stream)
Initializes a new instance of the class. |
|
PdfCompressor(java.io.InputStream stream,
java.lang.String password)
Initializes a new instance of the class. |
|
PdfCompressor(java.lang.String filePath)
Initializes a new instance of the class. |
|
PdfCompressor(java.lang.String filePath,
java.lang.String password)
Initializes a new instance of the class. |
|
| Method Summary | |
|---|---|
void |
compressToFile(java.lang.String filePath)
Compress the document. |
void |
compressToStream(java.io.OutputStream outStream)
Compress the document to the specified stream. |
OptimizationOptions |
getOptions()
Gets the optimization options. |
void |
setOptions(OptimizationOptions value)
Sets the optimization options. |
| Constructor Detail |
|---|
public PdfCompressor(java.io.InputStream stream)
stream - The pdf file stream.
public PdfCompressor(java.io.InputStream stream,
java.lang.String password)
stream - The pdf file stream.password - The password (user or owner) of the encrypted document.public PdfCompressor(java.lang.String filePath)
filePath - The pdf file path.
public PdfCompressor(java.lang.String filePath,
java.lang.String password)
filePath - The pdf file path.password - The password (user or owner) of the encrypted document.| Method Detail |
|---|
public OptimizationOptions getOptions()
public void setOptions(OptimizationOptions value)
value - The optimization options.public void compressToFile(java.lang.String filePath)
filePath - The out file path.public void compressToStream(java.io.OutputStream outStream)
outStream - The out stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||