没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
ReportLab PDF Library
User Guide
ReportLab Version 3.6.12
Document generated on 2022/08/29 20:17:57
ReportLab
Wimbletech
35 Wimbledon Hill Road
London SW19 7NB, UK
Table of contents
2Table of contents
6Chapter 1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 61.1 About this document
. . . . . . . . . . . . . . . . . . . 61.2 What is the ReportLab PDF Library?
. . . . . . . . . . . . . . . . . . . . . 71.3 ReportLab's commercial software
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.4 What is Python?
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.5 Acknowledgements
. . . . . . . . . . . . . . . . . . . . . . . . . . . 81.6 Installation and Setup
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.7 Getting Involved
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81.8 Site Configuration
. . . . . . . . . . . . . . . . . . . . . . . 91.9 Learning More About Python
. . . . . . . . . . . . . . . . . . . . . . 91.10 Goals of the 3.x release series
11Chapter 2 Graphics and Text with pdfgen
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.1 Basic Concepts
. . . . . . . . . . . . . . . . . . . . . . . . . . 112.2 More about the Canvas
. . . . . . . . . . . . . . . . . . . . . . . . . . . 122.3 Drawing Operations
. . . . . . . . . . . . . . . . . . . . . 132.4 The tools: the "draw" operations
. . . . . . . . . . . . . . . 152.5 The toolbox: the "state change" operations
. . . . . . . . . . . . . . . . . . . . . . . . . . 172.6 Other canvas methods.
. . . . . . . . . . . . . . . . . . . . . 172.7 Coordinates (default user space)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.8 Colors
. . . . . . . . . . . . . . . . . . . . . . . . . . . 252.9 Color space checking
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 252.10 Color Overprinting
. . . . . . . . . . . . . . . . . . . . . 272.11 Standard fonts and text objects
. . . . . . . . . . . . . . . . . . . . . . . . . . . 292.12 Text object methods
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352.13 Paths and Lines
. . . . . . . . . . . . . . . . . . . . . . . 392.14 Rectangles, circles, ellipses
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402.15 Bezier curves
. . . . . . . . . . . . . . . . . . . . . . . . . . 422.16 Path object methods
. . . . . . . . . . . 472.17 Further Reading: The ReportLab Graphics Library
48Chapter 3 Fonts and encodings
. . . . . . . . . . . 483.1 Unicode and UTF8 are the default input encodings
. . . . . . . . . . . . . . . . . . . . 483.2 Automatic output font substitution
User Guide Table of contents
Page 2
. . . . . . . . . . . . . . . . . . . . . 493.3 Using non-standard Type 1 fonts
. . . . . . . . . . . . . . . . . . 503.4 Standard Single-Byte Font Encodings
. . . . . . . . . . . . . . . . . . . . . . . . . . 523.5 TrueType Font Support
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 533.6 Asian Font Support
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543.7 RenderPM tests
55Chapter 4 Exposing PDF Special Capabilities
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554.1 Forms
. . . . . . . . . . . . . . . . . . . . . . . . . . 554.2 Links and Destinations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574.3 Outline Trees
. . . . . . . . . . . . . . . . . . . . . . . . . . 574.4 Page Transition Effects
. . . . . . . . . . . . . . . . . . . . . . . . . 574.5 Internal File Annotations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584.6 Encryption
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604.7 Interactive Forms
65Chapter 5 PLATYPUS - Page Layout and Typography Using Scripts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655.1 Design Goals
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665.2 Getting started
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675.3 Flowables
. . . . . . . . . . . . . . . . . . . . 675.4 Guidelines for flowable positioning
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685.5 Frames
. . . . . . . . . . . . . . . . . . . . . . . . 695.6 Documents and Templates
72Chapter 6 Paragraphs
. . . . . . . . . . . . . . . . . . . . . . . . . 736.1 Using Paragraph Styles
. . . . . . . . . . . . . . . . . . . . . . 786.2 Paragraph XML Markup Tags
. . . . . . . . . . . . . . . . . . . . . . . . . 796.3 Intra-paragraph markup
. . . . . . . . . . . . . . . . . . . . 826.4 Bullets and Paragraph Numbering
84Chapter 7 Tables and TableStyles
. . . . . . . . . . . . . . . . . . . . . . . . . . . 847.1 Table User Methods
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857.2 TableStyle
. . . . . . . . . . . . . . . . . . . . . . . . . 857.3 TableStyle User Methods
. . . . . . . . . . . . . . . . . . . . . . . . . . 867.4 TableStyle Commands
91Chapter 8 Programming Flowables
. . . . . . . . . . . . . . . . . 918.1 DocAssign(self, var, expr, life='forever')
. . . . . . . . . . . . . . . . . . 918.2 DocExec(self, stmt, lifetime='forever')
User Guide Table of contents
Page 3
918.3 DocPara(self, expr, format=None, style=None, klass=None, escape=True)
. . . . . . . . . . . . . . . . . . . 918.4 DocAssert(self, cond, format=None)
. . . . . . . . . . . . . . . . 918.5 DocIf(self, cond, thenBlock, elseBlock=[])
. . . . . . . . . . . . . . . . . . . . . 918.6 DocWhile(self, cond, whileBlock)
92Chapter 9 Other Useful Flowables
. . . . 92
9.1 Preformatted(text, style, bulletText=None, dedent=0,
maxLineLength=None, splitChars=None, newLineChars=None)
. . 929.2 XPreformatted(text, style, bulletText=None, dedent=0, frags=None)
. . . . . . . . . . . . . . . 939.3 Image(filename, width=None, height=None)
. . . . . . . . . . . . . . . . . . . . . . . . . . . 949.4 Spacer(width, height)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 949.5 PageBreak()
. . . . . . . . . . . . . . . . . . . . . . . . . 949.6 CondPageBreak(height)
. . . . . . . . . . . . . . . . . . . . . . . . . 949.7 KeepTogether(flowables)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 949.8 TableOfContents()
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 959.9 SimpleIndex()
. . . . . . . . . . . . . . . . . . . . . . . . . 969.10 ListFlowable(),ListItem()
. . . . . . . . . . . . . . . . . . . . . . . . . . . 979.11 BalancedColumns()
98Chapter 10 Writing your own Flowable Objects
. . . . . . . . . . . . . . . . . . . . . . . . . 9810.1 A very simple Flowable
. . . . . . . . . . . . . . . . . . . . . . 9910.2 Modifying a Built in Flowable
101Chapter 11 Graphics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10111.1 Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . 10111.2 General Concepts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10411.3 Charts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10611.4 Labels
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10711.5 Axes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11111.6 Bar Charts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11411.7 Line Charts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11511.8 Line Plots
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11711.9 Pie Charts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12111.10 Legends
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12211.11 Shapes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12711.12 Widgets
133Appendix A ReportLab Demos
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133A.1 Odyssey
User Guide Table of contents
Page 4
. . . . . . . . . . . . . . . . . . . . . . . 133A.2 Standard Fonts and Colors
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133A.3 Py2pdf
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134A.4 Gadflypaper
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134A.5 Pythonpoint
User Guide Table of contents
Page 5
剩余133页未读,继续阅读
资源评论
rasonboy
- 粉丝: 62
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功