pdfOptimizer 4.0.1 API
|
Entry point for Pdf Optimization process. More...
Public Member Functions |
|
PdfOptimizer () | |
Creates a new instance of PdfOptimizer, the main entry point of the optimization process. More... |
|
virtual iText.Pdfoptimizer.PdfOptimizer | AddOptimizationHandler (AbstractOptimizationHandler handler) |
Appends provided instance of AbstractOptimizationHandler to the current handler chain. More... |
|
virtual void | SetReportBuilder (DefaultReportBuilder reportBuilder) |
Sets a custom instance of iText.Pdfoptimizer.Report.Builder.DefaultReportBuilder. More... |
|
virtual OptimizationResult | Optimize (FileInfo inputFile, FileInfo outputFile) |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.FileInfo and writes its optimized version in the new file. More... |
|
virtual OptimizationResult | Optimize (FileInfo inputFile, Stream outputStream) |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.FileInfo and writes its optimized version in the provided System.IO.Stream. More... |
|
virtual OptimizationResult | Optimize (Stream inputStream, FileInfo outputFile) |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.Stream and writes its optimized version in the new file. More... |
|
virtual OptimizationResult | Optimize (Stream inputStream, Stream outputStream) |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.Stream and writes its optimized version in the provided System.IO.Stream. More... |
|
virtual OptimizationResult | Optimize (PdfReader reader, FileInfo outputFile) |
Reads iText.Kernel.Pdf.PdfDocument from provided iText.Kernel.Pdf.PdfReader and writes its optimized version in the new file. More... |
|
virtual OptimizationResult | Optimize (PdfReader reader, Stream outputStream) |
Reads iText.Kernel.Pdf.PdfDocument from provided iText.Kernel.Pdf.PdfReader and writes its optimized version in the provided System.IO.Stream. More... |
|
Entry point for Pdf Optimization process.
Entry point for Pdf Optimization process. Each Pdf Optimizer can be configured with required set of AbstractOptimizationHandler instances. Optimizer requires fully populated instance of iText.Kernel.Pdf.PdfDocument to perform valid optimization. Processing of raw PdfDocument without all the calculations done may lead to unexpected and incorrect behaviour. That is why it is only allowed to pass the source of Pdf file instead of PdfDocument instance itself.
|
inline |
Creates a new instance of PdfOptimizer, the main entry point of the optimization process.
|
inlinevirtual |
Appends provided instance of AbstractOptimizationHandler to the current handler chain.
handler | is an optimization handler |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.FileInfo and writes its optimized version in the new file.
inputFile | is a source of the PDF document |
outputFile | is a file where optimized document will be stored |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.FileInfo and writes its optimized version in the provided System.IO.Stream.
inputFile | is a source of the PDF document |
outputStream | is an output stream for optimized document |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided iText.Kernel.Pdf.PdfReader and writes its optimized version in the new file.
reader | is a source of the PDF document |
outputFile | is a file where optimized document will be stored |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided iText.Kernel.Pdf.PdfReader and writes its optimized version in the provided System.IO.Stream.
reader | is a source of the PDF document |
outputStream | is an output stream for optimized document |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.Stream and writes its optimized version in the new file.
inputStream | is a source of the PDF document |
outputFile | is a file where optimized document will be stored |
|
inlinevirtual |
Reads iText.Kernel.Pdf.PdfDocument from provided System.IO.Stream and writes its optimized version in the provided System.IO.Stream.
inputStream | is a source of the PDF document |
outputStream | is an output stream for optimized document |
|
inlinevirtual |
Sets a custom instance of iText.Pdfoptimizer.Report.Builder.DefaultReportBuilder.
reportBuilder | is a report builder |