Skip to content

Commit 2f499c5

Browse files
committed
Version 1.23, renamed 'zoom' parameter for consistency
1 parent 9bf6efc commit 2f499c5

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

CHANGELOG

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
Version 1.23, 2014-08-11
2+
------------------------
3+
4+
- Documentation now available at http://pythonhosted.org//PyPDF2
5+
6+
- Bugfix in pagerange.py for when __init__.__doc__ has no value (by
7+
Vladir Cruz)
8+
9+
- Fix typos in OutlinesObject().add() (by shilluc)
10+
11+
- Re-added a missing return statement in a utils.py method
12+
13+
- Corrected viewing mode names (by Jason Scheirer)
14+
15+
- New PdfFileWriter method: addJS() (by vfigueiro)
16+
17+
- New bookmark features: color, boldness, italics, and page fit
18+
(by Joshua Arnott)
19+
20+
- New PdfFileReader method: getFields(). Used to extract field
21+
information from PDFs with interactive forms. See documentation
22+
for details
23+
24+
- Converted README file to markdown format (by Stephen Bussard)
25+
26+
- Several improvements to overall performance and efficiency
27+
(by mozbugbox)
28+
29+
- Fixed a bug where geospatial information was not scaling along with
30+
its page
31+
32+
- Fixed a type issue and a Python 3 issue in the decryption algorithms
33+
(with Francisco Vieira and koba-ninkigumi)
34+
35+
- Fixed a bug causing an infinite loop in the ASCII 85 decoding
36+
algorithm (by madmaardigan)
37+
38+
- Annotations (links, comment windows, etc.) are now preserved when
39+
pages are merged together
40+
41+
- Used the Destination class in addLink() and addBookmark() so that
42+
the page fit option could be properly customized
43+
44+
145
Version 1.22, 2014-05-29
246
------------------------
347

PyPDF2/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '1.22'
1+
__version__ = '1.23'
22

PyPDF2/pdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ def removeText(self, ignoreByteStringObject=False):
721721

722722
pageRef.__setitem__(NameObject('/Contents'), content)
723723

724-
def addLink(self, pagenum, pagedest, rect, border=None, zoom='/Fit', *args):
724+
def addLink(self, pagenum, pagedest, rect, border=None, fit='/Fit', *args):
725725
"""
726726
Add an internal link from a rectangular area to the specified page.
727727
@@ -733,7 +733,7 @@ def addLink(self, pagenum, pagedest, rect, border=None, zoom='/Fit', *args):
733733
:param border: if provided, an array describing border-drawing
734734
properties. See the PDF spec for details. No border will be
735735
drawn if this argument is omitted.
736-
:param str zoom: Page fit or 'zoom' option (see below). Additional arguments may need
736+
:param str fit: Page fit or 'zoom' option (see below). Additional arguments may need
737737
to be supplied. Passing ``None`` will be read as a null value for that coordinate.
738738
739739
Valid zoom arguments (see Table 8.2 of the PDF 1.7 reference for details):

0 commit comments

Comments
 (0)