Jay Berkenbilt
723b054bf9
Spell check
2018-08-16 11:53:10 -04:00
Jay Berkenbilt
19229e296d
Update documentation for 8.2.0
2018-08-16 11:53:10 -04:00
Jay Berkenbilt
693cdaac35
Missing header for std::max
2018-08-16 11:53:10 -04:00
Jay Berkenbilt
e73416319b
Fragile test
2018-08-14 17:22:23 -04:00
Jay Berkenbilt
e37ce85190
Clarify static vs. import library on Windows ( fixes #225 )
2018-08-14 16:57:37 -04:00
Jay Berkenbilt
8ca46d1ff0
Pass -k to make check in build-appimage
2018-08-14 16:41:13 -04:00
Jay Berkenbilt
7214ba2303
Fix memory error on virus workaround code
2018-08-14 16:41:13 -04:00
Jay Berkenbilt
b4ce557be5
Fix error in QPDFSystemError.cc
2018-08-14 11:39:07 -04:00
Jay Berkenbilt
b4bdc42b4f
New exception class QPDFSystemError ( fixes #221 )
2018-08-13 20:01:51 -04:00
Jay Berkenbilt
164cbdde46
Protect against virus warnings ( fixes #216 )
...
Some files in the test suite trigger antivirus warnings. These are
not infected files with malicious intent. They are test files to
ensure that qpdf does not crash when it encounters the files. This
change enables those files to be obfuscated in the source repository
so that checking out qpdf from version control or extracting the
source code doesn't trigger antivirus warnings.
2018-08-13 19:26:20 -04:00
Jay Berkenbilt
5d9d80beba
Fix fallback logic for encryption ( fixes #229 )
2018-08-12 22:32:40 -04:00
Jay Berkenbilt
fb1e29476c
Add --no-warn option to suppress warnings ( fixes #232 )
2018-08-12 22:20:40 -04:00
Jay Berkenbilt
60fe8061cb
Fix one more identifier ( fixes #236 )
2018-08-12 22:01:51 -04:00
Jay Berkenbilt
a2f62935b3
Catch exceptions as const references ( fixes #236 )
...
This fix allows qpdf to compile/test cleanly with gcc 8.
2018-08-12 21:57:52 -04:00
Jay Berkenbilt
3d6615b276
Pl_Buffer: reduce memory growth ( fixes #228 )
...
Rather than keeping a list of buffers for every write, accumulate
bytes in a single buffer, doubling the size of the buffer when needed
to accommodate new data.
This is not the best possible implementation, but the change was
implemented in this way to avoid changing the shape of Pl_Buffer and
thus breaking backward compatibility.
2018-08-12 17:45:43 -04:00
Jay Berkenbilt
48331b4bdc
Fix manual page formatting issues
...
Reported in debian bug 902642
2018-08-12 14:18:18 -04:00
Jay Berkenbilt
3873f5fd9b
Protect headers with compliant identifiers ( fixes #233 )
2018-08-12 14:10:32 -04:00
Jay Berkenbilt
932799baab
Fix memory access error
...
A previous fix introduced a potentially memory overrun under certain
rare conditions. The test suite now once again passes with address
sanitizer.
2018-08-12 13:16:17 -04:00
Jay Berkenbilt
b6e414b10b
Remove some extraneous null pointer checks ( fixes #234 )
...
There were a few places in the code that were checking that a pointer
wasn't null before deleting it, even though C++ has always allowed
delete 0. Most of the code did not perform these checks.
2018-08-12 12:58:39 -04:00
Jay Berkenbilt
4a4736c695
Fix EOL handling inside strings ( fixes #226 )
...
CR, CRLF, and LF are all supposed to be treated as LF; only one EOL is
to be ignored after backslash.
2018-08-05 20:48:35 -04:00
Jay Berkenbilt
1619cad1e8
Return correct method for string encryption ( fixes #227 )
2018-08-05 16:58:21 -04:00
Jay Berkenbilt
e1cd5891af
Fix infinite loop on small files with progress reporting ( fixes #230 )
...
Turns out you can keep adding zero to a number over and over again and
it just doesn't get any bigger. Who would have known?
2018-08-05 15:43:34 -04:00
Jay Berkenbilt
651b51f056
Add QPDF_DLL to public destructors ( fixes #220 )
...
A few public destructors were missing QPDF_DLL, which could cause some
Windows applications to fail to link.
2018-08-04 20:08:06 -04:00
Jay Berkenbilt
fe769f2723
Keep file open while adding its pages during merge ( fixes #217 )
2018-08-04 19:58:13 -04:00
Jay Berkenbilt
4f4c627b77
ClosedFileInputSource: add method to keep file open
...
During periods of intensive operation on a specific file, this method
can reduce the overhead of repeated open/close operations.
2018-08-04 19:52:46 -04:00
Ryan Schmidt
df7ef11181
Ensure zlib-flate doesn't link with an old libqpdf
...
See: https://sourceforge.net/p/qpdf/bugs/17/
Parts of the fix for that bug report had previously been committed in
30dbf94f53
and
6299c64cf3
.
2018-07-24 18:03:22 -05:00
Jay Berkenbilt
7855e18ae2
Add detail about Unicode passwords
2018-07-01 17:25:10 -04:00
Jay Berkenbilt
1bd2a2e79b
Prepare 8.1.0 release
2018-06-23 07:50:11 -04:00
Jay Berkenbilt
92ca2a41bc
Tweak release process
2018-06-23 07:50:11 -04:00
Jay Berkenbilt
ec8c7237e3
Bump shared library minor revision
2018-06-22 20:34:30 -04:00
Jay Berkenbilt
3fe5236d54
Fix typo
2018-06-22 19:28:18 -04:00
Jay Berkenbilt
3aad28aed0
Bug fix: honor encryption key length with R=3 ( fixes #212 )
2018-06-22 19:24:26 -04:00
Jay Berkenbilt
c543c1e4e5
Windows test workaround
2018-06-22 17:19:34 -04:00
Jay Berkenbilt
5db39a681a
Windows fixes
2018-06-22 17:01:18 -04:00
Jay Berkenbilt
c852af2a57
Add tests for progress and verbose changes
2018-06-22 16:14:54 -04:00
Jay Berkenbilt
d34ab8a936
spell check
2018-06-22 16:14:54 -04:00
Jay Berkenbilt
6bf47ac6e8
With --verbose, give information on processing merge inputs
2018-06-22 16:14:54 -04:00
Jay Berkenbilt
a433ed24f9
Add progress reporting for QPDFWriter ( fixes #200 )
2018-06-22 16:14:54 -04:00
Jay Berkenbilt
2a82f6e1e0
Add method to get count of objects in QPDF
2018-06-22 15:53:40 -04:00
Jay Berkenbilt
c81836076f
Correct incorrect comment
2018-06-22 13:13:09 -04:00
Jay Berkenbilt
99593e0eef
Use ClosedFileInputSource when merging files ( fixes #154 )
2018-06-22 12:53:41 -04:00
Jay Berkenbilt
4ccc8b1a44
Add ClosedFileInputSource
...
ClosedFileInputSource is an input source that keeps the file closed
when not reading it.
2018-06-22 12:52:45 -04:00
Jay Berkenbilt
32ddcec91e
Add missing headers
2018-06-22 11:44:04 -04:00
Jay Berkenbilt
c71dc6888c
Don't prune resource dictionaries on errors or by request
...
If we are unable to filter a page's content streams, don't attempt to
remove objects from the page's resource dictionary. Also provide a
command line option to suppress resource removal in case we ever need
this as a workaround for some bug or broken PDF files.
2018-06-22 10:45:31 -04:00
Jay Berkenbilt
38c9ed23c3
Treat content stream parsing errors as an error, not a warning
...
If parsing content streams is treated as a warning, there is no way
for a caller to know if a parsing operation has failed. This is very
dangerous and will likely result in data loss when token filters are
parser callbacks are in use.
2018-06-22 10:44:08 -04:00
Jay Berkenbilt
6c89d4b35b
When splitting files, remove unreferenced objects ( fixes #203 )
2018-06-21 21:03:30 -04:00
Jay Berkenbilt
ddd78c1b7f
Fix QPDFObjectHandle::shallowCopy
...
It's not really a shallow copy. It just doesn't cross indirect object
boundaries. The old implementation had a bug that would cause multiple
shallow copies of the same object to share memory, which was not the
intention.
2018-06-21 20:34:45 -04:00
Jay Berkenbilt
84cd53f5af
Make page range optional in --rotate ( fixes #211 )
2018-06-21 16:28:44 -04:00
Jay Berkenbilt
9d7eef7cc6
Update TODO
...
Remove form flattening
Clarify splitting/merging with document level constructs
2018-06-21 16:04:54 -04:00
Jay Berkenbilt
2e8a3e163f
Add interactive form example
2018-06-21 16:04:54 -04:00