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

All Samples(1304)  |  Call(1156)  |  Derive(5)  |  Import(143)
Paragraph(text, style, bulletText=None, caseSensitive=1)
text a string of stuff to go into the paragraph.
style is a style definition as in reportlab.lib.styles.
bulletText is an optional bullet defintion.
caseSensitive set this to 0 if you want the markup tags and their attributes to be case-insensitive.

This class is a flowable that can format a block of text
into a paragraph with a given style.

The paragraph Text can contain XML-like markup including the tags:(more...)

src/d/j/django-admin-report-HEAD/example/lib/reportlab/lib/pygments2xpre.py   django-admin-report(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet
    S = [].append
    for filename in filenames:
        S(Paragraph(filename,style=styT))
        src = open(filename, 'r').read()
        fmt = pygments2xpre(src)

src/d/j/django-admin-report-HEAD/example/lib/reportlab/platypus/figures.py   django-admin-report(Download)
from reportlab.platypus import Frame
from reportlab.platypus import Flowable
from reportlab.platypus import Paragraph
from reportlab.lib.units import inch
from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER
                alignment=TA_CENTER)
            #must build paragraph now to get sequencing in synch with rest of story
            self.captionPara = Paragraph(self.caption, self.captionStyle)
 
    def wrap(self, availWidth, availHeight):
                    )
    bodyStyle = ParagraphStyle('Body', fontName=_baseFontName, fontSize=24, leading=28, spaceBefore=6)
    para1 = Paragraph('Spam spam spam spam. ' * 5, bodyStyle)
    para2 = Paragraph('Eggs eggs eggs. ' * 5, bodyStyle)
    mydata = [para1, para2]

src/p/d/pdfrw-0.1/examples/rl1/platypus_pdf_template.py   pdfrw(Download)
 
from reportlab.platypus import PageTemplate, BaseDocTemplate, Frame
from reportlab.platypus import NextPageTemplate, Paragraph, PageBreak
from reportlab.platypus.tableofcontents import TableOfContents
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
    # Dummy content (hello world x 200)
    for i in range(200):
        elements.append(Paragraph("Hello World" + str(i), styles['Heading1']))
 
    document.multiBuild(elements)

src/l/i/live-py-plugin-HEAD/test/PySrc/tools/pdf_example.py   live-py-plugin(Download)
from reportlab.platypus import SimpleDocTemplate, Paragraph
from reportlab.platypus.flowables import Flowable, Spacer
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import inch
 
def go():
    doc = SimpleDocTemplate("example.pdf")
    styles = getSampleStyleSheet()
    story = [Paragraph('PDF Example', styles['Title'])]
    text = """\
This is an example of how to use turtle graphics in a PDF document."""
    story.append(Paragraph(text, styles['Normal']))

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/lib/pygments2xpre.py   mwlib.ext(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet
    S = [].append
    for filename in filenames:
        S(Paragraph(filename,style=styT))
        src = open(filename, 'r').read()
        fmt = pygments2xpre(src)

src/r/e/reportlab-3.1.8/src/reportlab/lib/pygments2xpre.py   reportlab(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet
    S = [].append
    for filename in filenames:
        S(Paragraph(filename,style=styT))
        src = open(filename, 'r').read()
        fmt = pygments2xpre(src)

src/r/e/ReportLab-HEAD/src/reportlab/lib/pygments2xpre.py   ReportLab(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet
    S = [].append
    for filename in filenames:
        S(Paragraph(filename,style=styT))
        src = open(filename, 'r').read()
        fmt = pygments2xpre(src)

src/c/h/cheshire3-1.1.2/cheshire3/formats/documentFactory.py   cheshire3(Download)
        for text in gen:     
            for t in text:
                paras.append(platypus.Paragraph(t, ParagraphStyle, bulletText=None))
                paras.append(NextPageTemplate("noHeader"))
        return paras  
            style.fontSize=18
            style.borderWidth=0
            para = platypus.Paragraph(txt, style)
            Elements.append(para)  
 

src/c/h/cheshire3-HEAD/cheshire3/formats/documentFactory.py   cheshire3(Download)
        for text in gen:     
            for t in text:
                paras.append(platypus.Paragraph(t, ParagraphStyle, bulletText=None))
                paras.append(NextPageTemplate("noHeader"))
        return paras  
            style.fontSize=18
            style.borderWidth=0
            para = platypus.Paragraph(txt, style)
            Elements.append(para)  
 

src/i/e/iellos-HEAD/lib/reportlab/lib/pygments2xpre.py   iellos(Download)
def convertSourceFiles(filenames):
    "Helper function - makes minimal PDF document"
 
    from reportlab.platypus import Paragraph, SimpleDocTemplate, Spacer, XPreformatted
    from reportlab.lib.styles import getSampleStyleSheet
    S = [].append
    for filename in filenames:
        S(Paragraph(filename,style=styT))
        src = open(filename, 'r').read()
        fmt = pygments2xpre(src)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next