Skip to content

Commit 5edebf7

Browse files
committed
Updated for package
1 parent 1669d76 commit 5edebf7

File tree

4 files changed

+56
-55
lines changed

4 files changed

+56
-55
lines changed

CHANGES.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ v0.1.3, 01-20-2014 -- Fixed tables, added text_wrap in cells
55
v0.1.4, 01-21-2014 -- Added num_format to tables, adjusted Colors and Images
66
v0.1.5, 01-21-2014 -- Fixed background method, string width
77
v0.1.6, 01-23-2014 -- Rectangles print in the right direction.
8-
v0.1.7, 01-23-2014 -- Added imports to __init__.py, make imports easier.
8+
v0.1.7, 01-23-2014 -- Added imports to __init__.py, make imports easier.
9+
v0.1.8, 01-23-2014 -- Made it so \n works in text.

bin/texttest.py

+26-26
Original file line numberDiff line numberDiff line change
@@ -88,37 +88,37 @@ def TextTest():
8888

8989
# Test Page splitting with paragraphs
9090
document.add_text(
91-
"""Lorem Ipsum is simply dummy text of the printing and
92-
typesetting industry. Lorem Ipsum has been the industry's
93-
standard dummy text ever since the 1500s, when an unknown
94-
printer took a galley of type and scrambled it to make a
95-
type specimen book. It has survived not only five centuries,
96-
but also the leap into electronic typesetting, remaining
97-
essentially unchanged. It was popularised in the 1960s with
98-
the release of Letraset sheets containing Lorem Ipsum passages,
99-
and more recently with desktop publishing software like Aldus
91+
"""Lorem Ipsum is simply dummy text of the printing and\
92+
typesetting industry. Lorem Ipsum has been the industry's\
93+
standard dummy text ever since the 1500s, when an unknown\
94+
printer took a galley of type and scrambled it to make a\
95+
type specimen book. It has survived not only five centuries,\
96+
but also the leap into electronic typesetting, remaining\
97+
essentially unchanged. It was popularised in the 1960s with\
98+
the release of Letraset sheets containing Lorem Ipsum passages,\
99+
and more recently with desktop publishing software like Aldus\
100100
PageMaker including versions of Lorem Ipsum.""")
101101
document.add_newline(2)
102102
document.add_text(
103-
"""Lorem ipsum dolor sit amet, consectetur adipiscing elit.
104-
Cras et erat dolor. Nullam id aliquam neque. Vivamus nec nibh
105-
orci. Nam faucibus dignissim diam eget tempor. Aenean neque sem,
106-
euismod sit amet tellus nec, elementum varius diam. Vestibulum
107-
in ultricies enim. Fusce imperdiet tempus lacus facilisis
108-
vestibulum. Vestibulum urna magna, dignissim vel venenatis in,
109-
pulvinar ac orci. Etiam vitae tempor metus, eu tristique mauris.
110-
Donec tincidunt purus et scelerisque sagittis. Proin semper
103+
"""Lorem ipsum dolor sit amet, consectetur adipiscing elit.\
104+
Cras et erat dolor. Nullam id aliquam neque. Vivamus nec nibh\
105+
orci. Nam faucibus dignissim diam eget tempor. Aenean neque sem,\
106+
euismod sit amet tellus nec, elementum varius diam. Vestibulum\
107+
in ultricies enim. Fusce imperdiet tempus lacus facilisis\
108+
vestibulum. Vestibulum urna magna, dignissim vel venenatis in,\
109+
pulvinar ac orci. Etiam vitae tempor metus, eu tristique mauris.\
110+
Donec tincidunt purus et scelerisque sagittis. Proin semper\
111111
facilisis vehicula.""")
112112
document.add_text(
113-
"""Pellentesque rhoncus vestibulum turpis ut varius. Nunc a rutrum
114-
est. Etiam sollicitudin rhoncus nisl, quis scelerisque felis
115-
dignissim vitae. Maecenas rutrum quam at risus mattis congue. Sed
116-
hendrerit nulla ac nunc consectetur suscipit. Fusce elementum
117-
interdum nibh, et fermentum lacus egestas non. Sed consectetur
118-
mollis tortor, eu aliquam leo tristique sit amet. Etiam nec lectus
119-
magna. Nam faucibus scelerisque velit nec cursus. Ut a dolor
120-
accumsan, gravida nunc vitae, luctus quam. Vestibulum quis gravida
121-
quam. Proin feugiat urna ut rutrum facilisis. Vivamus gravida iaculis
113+
"""Pellentesque rhoncus vestibulum turpis ut varius. Nunc a rutrum\
114+
est. Etiam sollicitudin rhoncus nisl, quis scelerisque felis\
115+
dignissim vitae. Maecenas rutrum quam at risus mattis congue. Sed\
116+
hendrerit nulla ac nunc consectetur suscipit. Fusce elementum\
117+
interdum nibh, et fermentum lacus egestas non. Sed consectetur\
118+
mollis tortor, eu aliquam leo tristique sit amet. Etiam nec lectus\
119+
magna. Nam faucibus scelerisque velit nec cursus. Ut a dolor\
120+
accumsan, gravida nunc vitae, luctus quam. Vestibulum quis gravida\
121+
quam. Proin feugiat urna ut rutrum facilisis. Vivamus gravida iaculis\
122122
nibh at feugiat.""")
123123

124124
# Close writer

bin/truetypetest.py

+27-27
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def TrueTypeTest():
2929
document.add_newline()
3030
document.add_indent()
3131
document.add_text(
32-
"This should be enough text to test going over the edge of the \
32+
"This should be enough text to test going over the edge of the\
3333
page, and having to wrap back around. Let's see if it works!")
3434
document.add_page()
3535

@@ -89,37 +89,37 @@ def TrueTypeTest():
8989

9090
# Test Page splitting with paragraphs
9191
document.add_text(
92-
"""Lorem Ipsum is simply dummy text of the printing and
93-
typesetting industry. Lorem Ipsum has been the industry's
94-
standard dummy text ever since the 1500s, when an unknown
95-
printer took a galley of type and scrambled it to make a
96-
type specimen book. It has survived not only five centuries,
97-
but also the leap into electronic typesetting, remaining
98-
essentially unchanged. It was popularised in the 1960s with
99-
the release of Letraset sheets containing Lorem Ipsum passages,
100-
and more recently with desktop publishing software like Aldus
92+
"""Lorem Ipsum is simply dummy text of the printing and\
93+
typesetting industry. Lorem Ipsum has been the industry's\
94+
standard dummy text ever since the 1500s, when an unknown\
95+
printer took a galley of type and scrambled it to make a\
96+
type specimen book. It has survived not only five centuries,\
97+
but also the leap into electronic typesetting, remaining\
98+
essentially unchanged. It was popularised in the 1960s with\
99+
the release of Letraset sheets containing Lorem Ipsum passages,\
100+
and more recently with desktop publishing software like Aldus\
101101
PageMaker including versions of Lorem Ipsum.""")
102102
document.add_newline(2)
103103
document.add_text(
104-
"""Lorem ipsum dolor sit amet, consectetur adipiscing elit.
105-
Cras et erat dolor. Nullam id aliquam neque. Vivamus nec nibh
106-
orci. Nam faucibus dignissim diam eget tempor. Aenean neque sem,
107-
euismod sit amet tellus nec, elementum varius diam. Vestibulum
108-
in ultricies enim. Fusce imperdiet tempus lacus facilisis
109-
vestibulum. Vestibulum urna magna, dignissim vel venenatis in,
110-
pulvinar ac orci. Etiam vitae tempor metus, eu tristique mauris.
111-
Donec tincidunt purus et scelerisque sagittis. Proin semper
104+
"""Lorem ipsum dolor sit amet, consectetur adipiscing elit.\
105+
Cras et erat dolor. Nullam id aliquam neque. Vivamus nec nibh\
106+
orci. Nam faucibus dignissim diam eget tempor. Aenean neque sem,\
107+
euismod sit amet tellus nec, elementum varius diam. Vestibulum\
108+
in ultricies enim. Fusce imperdiet tempus lacus facilisis\
109+
vestibulum. Vestibulum urna magna, dignissim vel venenatis in,\
110+
pulvinar ac orci. Etiam vitae tempor metus, eu tristique mauris.\
111+
Donec tincidunt purus et scelerisque sagittis. Proin semper\
112112
facilisis vehicula.""")
113113
document.add_text(
114-
"""Pellentesque rhoncus vestibulum turpis ut varius. Nunc a rutrum
115-
est. Etiam sollicitudin rhoncus nisl, quis scelerisque felis
116-
dignissim vitae. Maecenas rutrum quam at risus mattis congue. Sed
117-
hendrerit nulla ac nunc consectetur suscipit. Fusce elementum
118-
interdum nibh, et fermentum lacus egestas non. Sed consectetur
119-
mollis tortor, eu aliquam leo tristique sit amet. Etiam nec lectus
120-
magna. Nam faucibus scelerisque velit nec cursus. Ut a dolor
121-
accumsan, gravida nunc vitae, luctus quam. Vestibulum quis gravida
122-
quam. Proin feugiat urna ut rutrum facilisis. Vivamus gravida iaculis
114+
"""Pellentesque rhoncus vestibulum turpis ut varius. Nunc a rutrum\
115+
est. Etiam sollicitudin rhoncus nisl, quis scelerisque felis\
116+
dignissim vitae. Maecenas rutrum quam at risus mattis congue. Sed\
117+
hendrerit nulla ac nunc consectetur suscipit. Fusce elementum\
118+
interdum nibh, et fermentum lacus egestas non. Sed consectetur\
119+
mollis tortor, eu aliquam leo tristique sit amet. Etiam nec lectus\
120+
magna. Nam faucibus scelerisque velit nec cursus. Ut a dolor\
121+
accumsan, gravida nunc vitae, luctus quam. Vestibulum quis gravida\
122+
quam. Proin feugiat urna ut rutrum facilisis. Vivamus gravida iaculis\
123123
nibh at feugiat.""")
124124

125125
# Close writer

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='PyPDFLite',
5-
version='0.1.7',
5+
version='0.1.8',
66
author='Katerina Hanson',
77
author_email='[email protected]',
88
packages=['pypdflite', 'pypdflite.pdfobjects'],

0 commit comments

Comments
 (0)