Package s3 :: Module s3pdf :: Class S3PDF :: Class S3PDFOCRForm
[frames] | no frames]

Class S3PDFOCRForm

source code

reportlab.platypus.BaseDocTemplate --+
                                     |
                                    S3PDF.S3PDFOCRForm

Extended class of the BaseDocTemplate to be used with OCR Forms. The form has a standard page template that draws handles on the page in the four corners, the middle of the side and bottom edges

Instance Methods
 
__init__(self, filename, **attr) source code
 
handle_pageBegin(self)
Override base method to add a change of page template after the firstpage.
source code
 
build(self, content=[], canvasmaker=canvas.Canvas, **attr)
Build the document using the flowables.
source code
 
firstPageTemplate(self, canvas, doc)
Template for first page
source code
 
laterPageTemplate(self, canvas, doc)
Template for all pages but first
source code
 
pageDecorate(self, canvas, doc)
Decorate Page with blocks for OCR-ability
source code
 
pageMeta(self, canvas, doc)
Put pagenumber and other meta info on each page
source code
Method Details

__init__(self, filename, **attr)
(Constructor)

source code 

handle_pageBegin(self)

source code 

Override base method to add a change of page template after the firstpage.

build(self, content=[], canvasmaker=canvas.Canvas, **attr)

source code 

Build the document using the flowables.

firstPageTemplate(self, canvas, doc)

source code 

Template for first page

laterPageTemplate(self, canvas, doc)

source code 

Template for all pages but first

pageDecorate(self, canvas, doc)

source code 

Decorate Page with blocks for OCR-ability

pageMeta(self, canvas, doc)

source code 

Put pagenumber and other meta info on each page