Commit Graph

430 Commits

Author SHA1 Message Date
Matthew Stamy c34fd1b1d3 Fixed syntax Error 2014-05-28 16:12:18 -05:00
Matthew Stamy c0ebdd1a8f Bugfix for when comments exist at end of dictionary 2014-05-27 17:14:52 -05:00
Matthew Stamy 73a4d06f06 Merge branch 'mgilson-master' 2014-05-27 16:35:08 -05:00
Matthew Stamy 1ba1711097 Minor syntax correction, replaced e.message with e 2014-05-27 16:33:01 -05:00
Henry Keiter e86c850b04 str-hacks cleanup
Found the `Str` util; replaced the version_info hack in the new addLink
functionality with the proper `Str` usage.
2014-05-27 15:21:21 -06:00
Henry Keiter 79dd252d9a Bugfix for dash patterns
Fixed a bug where a border with a dash pattern (e.g. [0, 0, 1, [2, 3]])
would fail to write.
2014-05-27 15:07:50 -06:00
Henry Keiter 2ef75200c2 addLink: bugfix and QoL improvements
All changes in pdf.PdfFileWriter.addLink:
Added documentation to make use a bit clearer.
Fixed an issue where /P was mapped to a repr'd IndirectObject instead of
a proper indirect reference.
Added support for a border-styling parameter.
Allowed rect to be a string (as before), or a RectangleObject, or a
list, to make use more intuitive.
2014-05-27 14:51:14 -06:00
Matthew Gilson ac220ebe3e Allow ConvertFunctionsToVirtualList to be indexed with slices and longs (python2.x)
It may seem silly to allow longs, (after all, a PDF with that many pages has other problems),
but 1L should be valid as small longs should be equivalent to ints and some APIs may return
longs.

Slices are a little more obvious -- It allows the "VirtualList" objects to behave a little
more like regular lists.
2014-05-27 08:52:54 -07:00
Matthew Stamy 74ff157d01 Merge branch 'master' of git://github.com/mstamy2/PyPDF2 2014-05-26 15:09:18 -05:00
Matthew Stamy 3c843984ac Allow non-unicode strings to be passed to PdfFileReader 2014-05-26 15:08:13 -05:00
Matthew Stamy 7d660c210f Merge pull request #95 from madjar/master
Fixed a bug in DictionaryObject with python 3
2014-05-26 14:18:22 -05:00
Matthew Stamy 4cac2f5eb7 Merge branch 'speedplane-master' 2014-05-26 14:12:48 -05:00
Matthew Stamy e6978edac7 Used utils.ord_() 2014-05-26 14:11:50 -05:00
speedplane f9e9ff147d Fix https://github.com/mstamy2/PyPDF2/issues/97 by checking for NULL string, i.e., ord == 0. 2014-05-13 07:59:40 -04:00
Georges Dubus c344d55a32 Fixed a bug in DictionaryObject with python 3
Dict only has a "iteritems" method in python 2, python 3.
But since this code has the same behaviour as dict, it's not necessary to remplement it, so I just killed it.
2014-05-11 19:42:52 +02:00
Matthew Stamy 80bd549284 Merge branch 'master' of git://github.com/mstamy2/PyPDF2 2014-04-29 16:58:48 -05:00
Matthew Stamy 4a899f6986 Fixed error when calculating height in scaleTo() method 2014-04-29 16:57:58 -05:00
Matthew Stamy 4b0bf18848 Merge pull request #94 from commx/master
Fixed possible infinite loop when using Python 3 to merge pages
2014-04-29 16:04:38 -05:00
Christian Jurk dec22a69da Fixed possible infinite loop when using Python 3 to merge pages 2014-04-28 14:51:29 +02:00
Matthew Stamy 565a8652fb Merge pull request #91 from switham/master
Remove unneeded NameObject.__init__ method in generic.py.
2014-04-22 16:46:39 -05:00
switham 5d65b4fc78 Never mind empty NameObject.__init__ 2014-04-22 00:48:51 -04:00
switham 1075a3d009 Merge branch 'master' of https://github.com/mstamy2/PyPDF2 2014-04-21 23:07:57 -04:00
switham 8a0f9968d7 NameObject str __init__, .gitignore 2014-04-21 23:07:23 -04:00
Matthew Stamy 37e3090559 Notes for Patch 1.21 2014-04-21 16:31:15 -05:00
Matthew Stamy 55e8169961 Merge pull request #90 from letolab/pypy2.2.1_fix
fix to work on pypy2.2
2014-04-16 15:59:04 -05:00
Shezad Khan d31ea04cf8 use __new__ in NameObject 2014-04-15 21:57:17 +01:00
Matthew Stamy 34787e8399 More tolerant Xref Parsing - by speedplane 2014-04-14 16:35:36 -05:00
Shezad Khan 7843fb243f fix to work on pypy2.2.2 2014-04-14 10:31:39 +01:00
Matthew Stamy 8f746e65af Merge pull request #86 from lucky-user/master
fix merging 3 and more resources with equal name
2014-03-31 16:19:15 -05:00
lucky-user 0ffc56580f fix merging 3 and more resources with equal name 2014-03-31 21:10:29 +04:00
Matthew Stamy 1b839a5e4b Merge pull request #84 from caxap/master
Added \x00 symbol to pdf whitespaces. Slightly refactored utils module.
2014-03-27 17:13:39 -05:00
Maxim Kamenkov e04a0ba96d Fixed python v3 support for utils. 2014-03-27 14:40:23 +03:00
Maxim Kamenkov cfe2d036e5 Added \x00 symbol to pdf whitespaces. Slightly refactored utils module. 2014-03-24 19:32:34 +03:00
Matthew Stamy c4bcffd0e8 Merge pull request #82 from egbutter/master
checking for basestring in base module __builtin__ (renamed to builtins in Py3)
2014-03-18 16:43:07 -05:00
Matthew Stamy 5dbadaae95 Merge pull request #81 from sdpython/master
fix an issue with the constuctor of NumberObject
2014-03-17 16:14:08 -05:00
sdpython b1fa236294 change StringIO into BytesIO for Python 3 2014-03-14 11:57:28 +01:00
egbutter c9ede1a9bd Python3 module defining the python builtin functions is called 'builtins' plural, no __ 2014-03-13 09:32:22 -04:00
egbutter ed8ab9e9ef reliably checking if we have a basestring in our builtins for Py2 and Py3 by importing the main __builtin__ rather than relying on the locally-modifiable __builtins__ dict. fixes #79 2014-03-13 09:23:25 -04:00
egbutter 300abf9a97 fixes #79. PdfFileReader barfs when it gets a unicode _namedDest; moving Str basestring indirection from pagerange to utils, importing into both pdf and pagerange 2014-03-12 17:09:28 -04:00
sdpython 2e6498f259 fix an issue with the constuctor for NumberObject 2014-03-12 12:20:19 +01:00
Matthew Stamy 7bec1b2be5 manual merging 2014-03-04 17:43:42 -06:00
Matthew Stamy b2d2bfd8aa Reimplement fix for PDFs with content after EOF marker 2014-03-04 17:09:32 -06:00
David Wolever f1d48827ea Search for %%EOF in the last 1024 bytes
With full Py3 compatibility.
2014-03-04 18:07:57 -05:00
Matthew Stamy f3e820dc11 Merge pull request #74 from rjungbeck/master
Update generic.py
2014-03-04 16:52:34 -06:00
Rob Oakes 1311d78772 Added additional escaped characters to bookmark code
- Improved error output to make it easier to diagnose breakages
2014-03-03 13:43:02 -07:00
Rüdiger Jungbeck 37ad565196 Update generic.py
Issue 57 Correctly initialize NumberObject (to make it work under pypy)
2014-03-02 11:06:43 +01:00
Matthew Stamy 0233dd5aba Reimplement custom warnings with overwriteWarnings flag 2014-02-26 17:26:19 -06:00
Matthew Stamy 6a3d034d75 Merge branch 'master' of git://github.com/mstamy2/PyPDF2 2014-02-25 17:22:05 -06:00
Matthew Stamy 7f572cad14 Ignores multiple definitions only when strict = False, prevent exception when attempting to correct non-zeroed xrefs 2014-02-25 17:18:01 -06:00
Matthew Stamy 37e84af103 Merge pull request #71 from switham/pdfcat
Fix for pdfcat options parse, fix issue #70
2014-02-25 16:13:41 -06:00