Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(90)  |  Call(14)  |  Derive(35)  |  Import(41)
First attempt at defining a document template class.

The basic idea is simple.

1)  The document has a list of data associated with it
    this data should derive from flowables. We'll have
    special classes like PageBreak, FrameBreak to do things
    like forcing a page end etc.

2)  The document has one or more page templates.(more...)

src/s/o/SoL-3.0a15/src/sol/printouts.py   SoL(Download)
from reportlab.lib.units import cm
from reportlab.pdfgen import canvas
from reportlab.platypus import (BaseDocTemplate, Frame, FrameBreak,
                                Image, KeepTogether, NextPageTemplate,
                                PageTemplate, Paragraph, Spacer,
 
        doc = self.doc = BaseDocTemplate(
            self.output, pagesize=A4, showBoundary=1,
            leftMargin=1*cm, rightMargin=1*cm,
            topMargin=1*cm, bottomMargin=1*cm,
 
        doc = self.doc = BaseDocTemplate(
            self.output, pagesize=A4, showBoundary=0,
            leftMargin=0.5*cm, rightMargin=0.5*cm,
            topMargin=0.5*cm, bottomMargin=0.5*cm,

src/p/u/pugpe-HEAD/apps/cert/generate_cert.py   pugpe(Download)
 
from reportlab.lib.pagesizes import landscape, B5
from reportlab.platypus import BaseDocTemplate, PageTemplate, Paragraph
from reportlab.platypus import Image, Frame, FrameBreak
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
    dest = StringIO()
    doc = BaseDocTemplate(
        dest, pageTemplates=mainPage, pagesize=landscape(B5),
        rightMargin=72,leftMargin=72, topMargin=72,bottomMargin=18,
    )

src/p/d/pdfrw-0.1/examples/rl1/platypus_pdf_template.py   pdfrw(Download)
import sys
 
from reportlab.platypus import PageTemplate, BaseDocTemplate, Frame
from reportlab.platypus import NextPageTemplate, Paragraph, PageBreak
from reportlab.platypus.tableofcontents import TableOfContents
class MyDocTemplate(BaseDocTemplate):
    """Used to apply heading to table of contents."""
 
    def afterFlowable(self, flowable):
        """Adds Heading1 to table of contents"""

src/l/o/logilab-doctools-0.4.1/training_docs/pdf_generator.py   logilab-doctools(Download)
__docformat__ = "restructuredtext en"
 
from reportlab.platypus import BaseDocTemplate
from templates import AttendanceListPageTemplate, FeedbackCardPageTemplate
from flow_generators import (generate_attendance_list_flow,
                                                  template_id="Page")
                     ]
    pdf_doc = BaseDocTemplate(filename, pageTemplates=page_templates,
                              allowSplitting=1)
    pdf_doc.build(generate_attendance_list_flow(session))
                                                template_id="Card")
                     ]
    pdf_doc = BaseDocTemplate(filename, pageTemplates=page_templates,
                              allowSplitting=1)
    pdf_doc.build(generate_feedback_cards_flow(session))

src/a/e/aemanager-HEAD/accounts/views.py   aemanager(Download)
from django.db.models.query_utils import Q
import datetime
from reportlab.platypus import Paragraph, Frame, Spacer, BaseDocTemplate, PageTemplate
from reportlab.lib.styles import ParagraphStyle
from reportlab.rl_config import defaultPageSize
    response['Content-Disposition'] = 'attachment; filename=%s' % (filename)
 
    doc = BaseDocTemplate(response, title=ugettext('Purchase book %(year)d') % {'year': year})
    frameT = Frame(doc.leftMargin, doc.bottomMargin, doc.width, doc.height, id='normal')
    doc.addPageTemplates([PageTemplate(id='all', frames=frameT, onPage=expense_list_footer), ])
    response['Content-Disposition'] = 'attachment; filename=%s' % (filename)
 
    doc = BaseDocTemplate(response, title=ugettext('Invoice book %(year)d') % {'year': year})
    frameT = Frame(doc.leftMargin, doc.bottomMargin, doc.width, doc.height, id='normal')
    doc.addPageTemplates([PageTemplate(id='all', frames=frameT, onPage=invoice_list_footer), ])

src/t/r/trml2pdf-HEAD/trml2pdf/trml2pdf.py   trml2pdf(Download)
			pageSize = ( utils.unit_get(ps[0]),utils.unit_get(ps[1]) )
		cm = reportlab.lib.units.cm
		self.doc_tmpl = platypus.BaseDocTemplate(out, pagesize=pageSize, **utils.attr_get(node, ['leftMargin','rightMargin','topMargin','bottomMargin'], {'allowSplitting':'int','showBoundary':'bool','title':'str','author':'str'}))
		self.page_templates = []
		self.styles = doc.styles

src/t/e/template2pdf-0.6.5/template2pdf/t2p/trml2pdf.py   template2pdf(Download)
        cm = reportlab.lib.units.cm
        self.doc_tmpl = platypus.BaseDocTemplate(
            out, pagesize=pageSize,
            **utils.getAttrsAsDict(node,
                                   ['leftMargin', 'rightMargin', 'topMargin',

src/m/i/misc-genomics-tools-HEAD/showmethesnps/test.py   misc-genomics-tools(Download)
import sys
 
from reportlab.platypus import BaseDocTemplate, SimpleDocTemplate, Paragraph, Spacer, Preformatted, Frame, PageTemplate, KeepTogether
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
def go():
	#create the basic page and frames
	doc = BaseDocTemplate("phello.pdf", leftMargin = 10, rightMargin = 0, topMargin = 0, bottomMargin = 0)
	doc.pagesize = landscape(A4)
 

src/c/h/cheshire3-1.1.2/cheshire3/formats/documentFactory.py   cheshire3(Download)
    def prepareReport(self, session):
        #this is the report lab set up stuff
        OutputElements=[]
 
        output = platypus.BaseDocTemplate('/tmp/temp.pdf')

src/c/h/cheshire3-HEAD/cheshire3/formats/documentFactory.py   cheshire3(Download)
    def prepareReport(self, session):
        #this is the report lab set up stuff
        OutputElements=[]
 
        output = platypus.BaseDocTemplate('/tmp/temp.pdf')

  1 | 2 | 3 | 4 | 5  Next