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

All Samples(9)  |  Call(0)  |  Derive(0)  |  Import(9)
Indirection step for formatting.
Ensures that document parameters alter behaviour
of formatting for all elements.

        def format(element, document, toplevel=0):
    """Indirection step for formatting.
       Ensures that document parameters alter behaviour
       of formatting for all elements.
    """
    if isinstance(element,PDFObject):
        if not toplevel and hasattr(element, __RefOnly__):
            # the object cannot be a component at non top level.
            # make a reference to it and return it's format
            return document.Reference(element).format(document)
        else:
            f = element.format(document)
            if not rl_config.invariant and rl_config.pdfComments and hasattr(element, __Comment__):
                f = pdfdocEnc("%% %s\r\n" % element.__Comment__)+f
            return f
    elif type(element) in (float, int):
        #use a controlled number formatting routine
        #instead of str, so Jython/Python etc do not differ
        return pdfdocEnc(fp_str(element))
    elif isBytes(element):
        return element
    elif isUnicode(element):
        return pdfdocEnc(element)
    else:
        return pdfdocEnc(str(element))
        


src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfbase/pdfpattern.py   django-admin-report(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/r/e/reportlab-3.1.8/src/reportlab/pdfbase/pdfpattern.py   reportlab(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format, PDFObject, pdfdocEnc
from reportlab.lib.utils import strTypes
class PDFPattern(PDFObject):

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/sk1libs/libpdf/pdfbase/pdfpattern.py   Spherebot-Host-GUI(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/m/w/mwlib.ext-0.13.2/upstream-src/src/reportlab/pdfbase/pdfpattern.py   mwlib.ext(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/i/e/iellos-HEAD/lib/reportlab/pdfbase/pdfpattern.py   iellos(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/r/e/ReportLab-HEAD/src/reportlab/pdfbase/pdfpattern.py   ReportLab(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/d/i/digest-HEAD/lib/reportlab/pdfbase/pdfpattern.py   digest(Download)
"""
helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 

src/m/a/mangareader-to-ebook-HEAD/reportlab/pdfbase/pdfpattern.py   mangareader-to-ebook(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string

src/w/m/wms-HEAD/reportlab/pdfbase/pdfpattern.py   wms(Download)
__doc__="""helper for importing pdf structures into a ReportLab generated document
"""
from reportlab.pdfbase.pdfdoc import format
 
import string