Michał Łuszczyk
8ba44f2099
Fix PdfFileMerger for file objects on Python 3.
...
The previous check was always evaluated to False on Python 3, so I replaced it
with a duck-typing one compatible with both Python versions.
2016-10-21 21:35:39 +02:00
Matthew Stamy
4fc7f9d14a
Merge pull request #223 from fgeek/fix-dos-issue
...
Prevent infinite loop in readObject() function
2016-08-17 14:00:37 -05:00
Matthew Stamy
fe934cc1b5
Merge branch 'JohnMulligan-URI-linking'
2016-08-17 13:29:02 -05:00
Matthew Stamy
ad90b69592
Fixed TabError in Py3
2016-08-17 13:28:21 -05:00
Matthew Stamy
0208955e1d
Merge branch 'URI-linking' of https://github.com/JohnMulligan/PyPDF2 into JohnMulligan-URI-linking
2016-08-17 13:05:35 -05:00
Matthew Stamy
6f284def98
Merge pull request #283 from manuelzs/support_for_png_average_and_paeth_filter
...
Add support for PNG filters average and paeth
2016-08-15 13:51:51 -05:00
Juan Pablo Gaviria
60abb83056
Fix filter type 3 and 4 byte range
2016-08-12 08:49:18 -05:00
Manuel Zapata
60dff8d785
Add support for PNG filters average and paeth
2016-08-12 11:36:36 +01:00
Matthew Stamy
036789a466
Write binary data comment
2016-06-30 15:26:13 -05:00
John Mulligan
ce5f7ec80d
Added URI linking
...
Uses same structure as addLink
addURI
2016-06-13 16:35:50 -05:00
Matthew Stamy
5bbd5aff8c
Python 3 type fixes in LZWDecode
2016-05-23 14:41:03 -05:00
Matthew Stamy
26e50775ed
Appropriate error message for closed file, warn when returning null object, resolves #263
2016-05-19 17:16:16 -05:00
Matthew Stamy
b030b7fbc7
Read Indirect Objects with a sign, fixes #248
2016-05-19 12:08:50 -05:00
Matthew Stamy
5735cb742a
Version 1.26.0 update
2016-05-18 11:47:24 -05:00
Matthew Stamy
78fd8c602f
Merge pull request #261 from speedplane/feature/readInlineImageEIQFeature-1
...
Fix a bug in _readInlineImage
2016-05-15 16:06:41 -05:00
speedplane
9dadb45f00
Fix a bug in _readInlineImage. We were looking for the operation EI and Q, but were not checking to ensure that there was whitespace between EI and Q. Accordingly, any image that had EIQ in its ascii encoded data would trigger the end of the image, and cause errors.
2016-05-03 16:18:50 -04:00
speedplane
077782dbbb
Merge remote-tracking branch 'origin/master'
2016-05-03 16:15:23 -04:00
speedplane
6e9d021d43
Remove extraneous zeros from the standard formatting.
2016-05-03 15:17:45 -04:00
speedplane
dbb7ea3ecf
Remove extraneous zeros from the standard formatting.
2016-05-03 15:17:19 -04:00
Matthew Stamy
fcd0ac0192
Merge pull request #238 from im2703/master
...
Pageobject.mergePage() fails for some pages with images (Python3)
2016-04-17 21:44:59 -05:00
Matthew Stamy
b9948ff393
Merge pull request #253 from VyacheslavHashov/master
...
Python 3 compatibility with inline images
2016-04-17 21:43:15 -05:00
Matthew Stamy
8ca3a9b17a
Merge pull request #258 from BenRussert/master
...
Ignore xref table zero index error if self.strict = False
2016-04-17 21:33:26 -05:00
Matthew Stamy
531f8ac4de
Merge pull request #257 from GuruLabs/guru/createpdf_invalid_ref
...
Added a fallback for creating PDFs that have invalidly referenced objects (provides a fix for broken PDF objects)
2016-04-17 21:26:53 -05:00
BenRussert
c3b1ac2f2a
Ignore xref table zero index error if self.strict = False
2016-04-08 21:27:32 -05:00
Rob Oakes
7ca8fc6de5
Merge branch 'master' of https://github.com/mstamy2/PyPDF2 into guru/createpdf_invalid_ref
2016-04-06 12:50:10 -06:00
ctate
231aaf68dd
Working around unresolved objects and returning NullObject instead of raising a ValueError.
2016-04-08 09:04:49 -06:00
VyacheslavHashov
c15eadb25c
Python 3 compatibility with inline images
2016-03-14 19:33:06 +03:00
Igor Mihaljevic
b06ac57a6f
Python2/3 compatibility on merging pages with eps img into single page
2015-12-14 23:39:46 +01:00
Matthew Stamy
0900101f83
Merge pull request #221 from louib/parameterized_js
...
Parameterized JavaScript.
2015-09-23 14:31:53 -05:00
Louis-Bertrand Varin
ab9395cc5b
Adding unit tests for addJS.
2015-08-24 21:50:53 -04:00
Henri Salo
48193975e5
Prevent infinite loop in readObject() function. Patch by dhudson1. Closes mstamy2/PyPDF2#184
2015-08-18 13:42:22 +03:00
Louis-Bertrand Varin
5052688261
Parameterized JavaScript.
...
According to the PDF doc, an entry in the document's name dictionary,
listing the JavaScript actions, is required to execute parameterized
function call.
Also note that:
> The names are arbitrary and need not bear any relation to the
> JavaScript name
> space.
In this case, the name is _0000000000_.
2015-08-15 00:20:35 -04:00
Matthew Stamy
7456f0acea
Stronger equality test for resource values Fixes #182
2015-07-23 16:25:37 -05:00
Matthew Stamy
cf269ddfa9
update changelog for patch
2015-07-20 15:11:09 -05:00
Matthew Stamy
d0e08b90f5
Conform to semantic versioning. Patch number added
2015-07-20 14:23:51 -05:00
Rob Oakes
c9c95a512a
Merge branch 'master' of https://github.com/mstamy2/PyPDF2
2015-07-16 17:05:43 -06:00
Matthew Stamy
fc05b046c0
Smarter inline image parsing
2015-07-15 11:50:44 -05:00
Matthew Stamy
736dc27453
Replace usage of Str with isString
2015-07-09 14:26:39 -05:00
Matthew Stamy
e87538baf1
Version 1.25
2015-07-07 16:05:22 -05:00
Matthew Stamy
80551fa094
Merge pull request #172 from jerickbixly/master
...
Python3 support for ASCII85Decode
2015-07-06 14:09:36 -05:00
Matthew Stamy
9022c7db14
Merge pull request #211 from speedplane/master
...
Fix "Stream has ended unexpectedly" for Name Objects
2015-06-30 15:40:29 -05:00
speedplane
bf7339863e
Also, fix up this regex, which appeared to be totally broken for all but the simplest cases.
2015-06-30 09:06:31 -04:00
speedplane
431ba70920
Fix a bug which could result in a "Stream has ended unexpectedly" error being raised unecessarily if a Name object runs right up against the end of a file stream.
2015-06-30 08:36:55 -04:00
Matthew Stamy
ee0ace64b1
Merge pull request #210 from underdogio/dev/copy.encryption.sqwished
...
Added decryption key copying for PdfFileMerger
2015-06-26 14:42:46 -05:00
Todd Wolfson
541963c54b
Added decryption key copying for PdfFileMerger
2015-06-26 14:09:12 -05:00
Matthew Stamy
7ea13fcbea
Merge branch 'master' of https://github.com/mstamy2/PyPDF2
2015-06-18 12:50:29 -05:00
Matthew Stamy
8a144a3e2f
Provide exception instead of assert false
2015-06-18 12:49:22 -05:00
Matthew Stamy
0b7f9a7d66
Merge pull request #209 from AlmightyOatmeal/patch-1
...
Add abbreviated short-names for filters
2015-06-18 11:59:16 -05:00
Jamie Ivanov
afccc8fc94
Add abbreviated short-names for filters
...
After investigating an odd error:
# NotImplementedError: unsupported filter /Fl
I saw the PDF had this line:
# <</Filter/Fl/First 12/Length 828/N 2/Type/ObjStm>>stream
But most objects had:
# <</Size 306/Filter/FlateDecode/Length 947/Type/XRef/W[1 3 1]
After looking at the filters.py file, I saw the short-names were not added. After modifying the filters.py, the code is up and running again.
A thanks to Matthew Weiss for helping with this as well.
2015-06-18 10:00:23 -05:00
Matthew Stamy
969d6ef94c
Merge pull request #122 from mozbugbox/get-page-number
...
Add method to get page number from Page/Outline objects
2015-06-17 14:42:24 -05:00