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

All Samples(88)  |  Call(88)  |  Derive(0)  |  Import(0)
Adds a new entry to the outline at given level.  If LEVEL not specified,
entry goes at the top level.  If level specified, it must be
no more than 1 greater than the outline level in the last call.

The key must be the (unique) name of a bookmark.
the title is the (non-unique) name to be displayed for the entry.

If closed is set then the entry should show no subsections by default
when displayed.
(more...)

src/r/e/reportlab-3.1.8/tests/test_pdfgen_general.py   reportlab(Download)
    title = 'Gradients code contributed by Peter Johnson <johnson.peter@gmail.com>'
    c.drawString(1*inch,10.8*inch,title)
    c.addOutlineEntry(title+" section", title, level=0, closed=True)
    c.bookmarkHorizontalAbsolute(title, 10.8*inch)
    from reportlab.lib.colors import red, green, blue

src/m/w/mwlib.ext-0.13.2/upstream-src/tests/test_pdfgen_links.py   mwlib.ext(Download)
 
        c.bookmarkPage("P1")
        c.addOutlineEntry("Page 1","P1")
 
        #Note : XYZ Left is ignored because at this zoom the whole page fits the screen
        c.bookmarkPage("P1_XYZ",fit="XYZ",top=7*inch,left=3*inch,zoom=0.5)
        c.addOutlineEntry("Page 1 XYZ #1 (top=7,left=3,zoom=0.5)","P1_XYZ",level=1)
 
        c.bookmarkPage("P1_XYZ2",fit="XYZ",top=7*inch,left=3*inch,zoom=5)
        c.addOutlineEntry("Page 1 XYZ #2 (top=7,left=3,zoom=5)","P1_XYZ2",level=1)
 
        c.bookmarkPage("P1_FIT",fit="Fit")
        c.addOutlineEntry("Page 1 Fit","P1_FIT",level=1)
 
        c.bookmarkPage("P1_FITH",fit="FitH",top=2*inch)
        c.addOutlineEntry("Page 1 FitH (top = 2 inch)","P1_FITH",level=1)

src/r/e/reportlab-3.1.8/tests/test_pdfgen_links.py   reportlab(Download)
 
        c.bookmarkPage("P1")
        c.addOutlineEntry("Page 1","P1")
 
        #Note : XYZ Left is ignored because at this zoom the whole page fits the screen
        c.bookmarkPage("P1_XYZ",fit="XYZ",top=7*inch,left=3*inch,zoom=0.5)
        c.addOutlineEntry("Page 1 XYZ #1 (top=7,left=3,zoom=0.5)","P1_XYZ",level=1)
 
        c.bookmarkPage("P1_XYZ2",fit="XYZ",top=7*inch,left=3*inch,zoom=5)
        c.addOutlineEntry("Page 1 XYZ #2 (top=7,left=3,zoom=5)","P1_XYZ2",level=1)
 
        c.bookmarkPage("P1_FIT",fit="Fit")
        c.addOutlineEntry("Page 1 Fit","P1_FIT",level=1)
 
        c.bookmarkPage("P1_FITH",fit="FitH",top=2*inch)
        c.addOutlineEntry("Page 1 FitH (top = 2 inch)","P1_FITH",level=1)

src/r/e/ReportLab-HEAD/tests/test_pdfgen_links.py   ReportLab(Download)
 
        c.bookmarkPage("P1")
        c.addOutlineEntry("Page 1","P1")
 
        #Note : XYZ Left is ignored because at this zoom the whole page fits the screen
        c.bookmarkPage("P1_XYZ",fit="XYZ",top=7*inch,left=3*inch,zoom=0.5)
        c.addOutlineEntry("Page 1 XYZ #1 (top=7,left=3,zoom=0.5)","P1_XYZ",level=1)
 
        c.bookmarkPage("P1_XYZ2",fit="XYZ",top=7*inch,left=3*inch,zoom=5)
        c.addOutlineEntry("Page 1 XYZ #2 (top=7,left=3,zoom=5)","P1_XYZ2",level=1)
 
        c.bookmarkPage("P1_FIT",fit="Fit")
        c.addOutlineEntry("Page 1 Fit","P1_FIT",level=1)
 
        c.bookmarkPage("P1_FITH",fit="FitH",top=2*inch)
        c.addOutlineEntry("Page 1 FitH (top = 2 inch)","P1_FITH",level=1)

src/m/w/mwlib.ext-0.13.2/upstream-src/tests/test_pdfbase_pdfmetrics.py   mwlib.ext(Download)
    c.bookmarkPage('Glyph Width Tests')
    c.showOutline()
    c.addOutlineEntry('Glyph Width Tests', 'Glyph Width Tests', level=0)
    if verbose:
        print   # get it on a different line to the unittest log output.

src/r/e/reportlab-3.1.8/tests/test_pdfbase_pdfmetrics.py   reportlab(Download)
    c.bookmarkPage('Glyph Width Tests')
    c.showOutline()
    c.addOutlineEntry('Glyph Width Tests', 'Glyph Width Tests', level=0)
    if verbose:
        print()   # get it on a different line to the unittest log output.

src/r/e/ReportLab-HEAD/tests/test_pdfbase_pdfmetrics.py   ReportLab(Download)
    c.bookmarkPage('Glyph Width Tests')
    c.showOutline()
    c.addOutlineEntry('Glyph Width Tests', 'Glyph Width Tests', level=0)
    if verbose:
        print   # get it on a different line to the unittest log output.

src/m/w/mwlib.ext-0.13.2/upstream-src/tests/test_pdfgen_pagemodes.py   mwlib.ext(Download)
        elif mode == 'Outline':
            c.bookmarkPage('page1')
            c.addOutlineEntry('Token Outline Entry', 'page1')
            c.showOutline()
        elif mode == 'UseNone':

src/r/e/reportlab-3.1.8/tests/test_pdfgen_pagemodes.py   reportlab(Download)
        elif mode == 'Outline':
            c.bookmarkPage('page1')
            c.addOutlineEntry('Token Outline Entry', 'page1')
            c.showOutline()
        elif mode == 'UseNone':

src/r/e/ReportLab-HEAD/tests/test_pdfgen_pagemodes.py   ReportLab(Download)
        elif mode == 'Outline':
            c.bookmarkPage('page1')
            c.addOutlineEntry('Token Outline Entry', 'page1')
            c.showOutline()
        elif mode == 'UseNone':