at.gv.egiz.pdfas.framework.input.correction
Interface Corrector

All Known Implementing Classes:
ExternalCorrector, InternalCorrector

public interface Corrector

Interface for PDF corretors.

Often PDF documents generated by various document to PDF converters have an invalid structure that upsets PDF-AS. The correction mechanism allows these documents to be corrected before being signed.

A PDF corrector takes an incorrect PDF document and transforms it into a correct one.

Note that correcting a document destroys all signatures in that document, so never correct an already signed document.

Author:
wprinz

Method Summary
 PdfDataSource correctDocument(PdfDataSource document)
          Corrects the given PDF document to a form that PDF-AS can use.
 

Method Detail

correctDocument

public PdfDataSource correctDocument(PdfDataSource document)
                              throws CorrectorException
Corrects the given PDF document to a form that PDF-AS can use.

Parameters:
document - The (incorrect) PDF document.
Returns:
Returns the corrected PDF document.
Throws:
CorrectorException - Exception thrown if the document couldn't be corrected.


Copyright © 2006-2010. All Rights Reserved.