aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-07-26Updates for newer Windows toolchainJay Berkenbilt
2016-12-27Note about std::regex attemptJay Berkenbilt
2016-09-10install target: only install docs if buildingJay Berkenbilt
Don't try to install HTML or PDF documentation if we're not building docs.
2016-09-10Fix page range example in documentationJay Berkenbilt
2016-01-24C++-Builder supports 64 Bit file functionsThorsten Schöning
The 64 Bit file functions are supported by C++-Builder as well and need to be used, else fseek will error out on larger files than 4 GB like used in the large file test.
2016-01-24Include QPDFExc.hh for use in std::listThorsten Schöning
2016-01-24Use RM_WS_ONLY_LINES in testThorsten Schöning
Some compilers output extra newlines in some cases.
2016-01-24Include stdlib.h to provide exitThorsten Schöning
2016-01-24Include QPDFObjectHandle for use in std::listThorsten Schöning
QPDFObjectHandle was used as forward declaration, but C++-Builder 10 Seattle can't use it in std::list in such cases because the type is undefined.
2016-01-24From qtest: add RM_WS_ONLY_LINES optionThorsten Schöning
qutil.cc uses strerror to print some exceptions and adds a newline afterwards, but strerror in Windows already adds one newline at the end of the message and the additional one from std::endl breaks the output vs. the expected one.
2016-01-24Tweak wording of Thorsten's documentation updatesJay Berkenbilt
2016-01-24Add notes for running more tests on WindowsThorsten Schöning
Provide notes about LibTiff and such.
2016-01-24Support paths with spacesThorsten Schöning
2016-01-24Use absolute paths for large file testsThorsten Schöning
Working with absolute paths makes debugging easier, but some called scripts always need / as dir separator or won't work.
2016-01-24Fix non-portable use of /dev/nullThorsten Schöning
/dev/null is not portable, so use File::Spec instead, which provides portable "paths" and especially "nul" on Windows. I changed all places with hard coded /dev/null to be sure, while I think it only is a problem in direct system calls, because the other executed commands go to sh.exe from MSYS which itself should port /dev/null to NUL. The test still pass, so shouldn't have made any harm...
2016-01-24Fix expr syntax, support spaces in pathsThorsten Schöning
expr needs ARG + ARG quote paths to support support spaces
2016-01-24Explicitly invoke shell scripts with shThorsten Schöning
Shebang doesn't work well on Windows.
2016-01-24Useless use of a constant in void contextThorsten Schöning
Remove an extraneous newline to avoid useless constant warning.
2015-11-10Prepare 6.0.0 releaserelease-qpdf-6.0.0Jay Berkenbilt
2015-11-10Bump library sonameJay Berkenbilt
Also update maintainer documentation on binary compatibility testing.
2015-11-10Remove some ABI compatibility private methodsJay Berkenbilt
Since we have to bump soname, remove some private methods that were just there for binary compatibility
2015-11-01Prepare 5.2.0 releaserelease-qpdf-5.2.0Jay Berkenbilt
2015-11-01Comment use of static ID in examplesJay Berkenbilt
Make sure people know that static ID should be used only for testing.
2015-11-01Fix copyright year in manualJay Berkenbilt
2015-11-01Linearize manualJay Berkenbilt
2015-10-31Fix spelling errorsJay Berkenbilt
2015-10-31Tolerate some mangled xref tablesJay Berkenbilt
If xref table entries lack the spec-required trailing whitespace or contain a small amount of extra space, handle them anyway.
2015-10-31Remove trailing whitespaceJay Berkenbilt
2015-10-31Bump soname minor revision for ABI additionsJay Berkenbilt
2015-10-31Implement deterministic IDJay Berkenbilt
For non-encrypted files, determinstic ID generation uses file contents instead of timestamp and file name. At a small runtime cost, this enables generation of the same /ID if the same inputs are converted in the same way multiple times.
2015-09-07Mention debian copyrightJay Berkenbilt
2015-05-24Prepare 5.1.3 releaserelease-qpdf-5.1.3Jay Berkenbilt
2015-05-24Update documentation for 5.1.3Jay Berkenbilt
2015-05-24Copyright 2015Jay Berkenbilt
2015-05-24Notes to self on local Windows buildJay Berkenbilt
2015-05-24fix-qdf: handle object streams with > 255 objectsJay Berkenbilt
fix-qdf was previously hard-coding the number of bytes for the f2 field of the xref stream entry. This addresses issue #37. Thanks aluebcke for reporting.
2015-05-24Handle Microsoft crypt provider without prior keysJay Berkenbilt
As reported in issue #40, a call to CryptAcquireContext in SecureRandomDataProvider fails in a fresh windows install prior to any user keys being created in AppData\Roaming\Microsoft\Crypto\RSA. Thanks michalrames.
2015-05-24include time.h in QUtil.hhJay Berkenbilt
QUtil.hh needs time.h to get time_t on some platforms. Thanks Peter Korsgaard <peter@korsgaard.com>
2015-05-24Update TODO with some small enhancementsJay Berkenbilt
There have been a few enhancements requested that only affect the qpdf command line tool and that should be relatively quick to implement. Work out the details and acknowledge these publicly in the TODO file.
2015-02-22Detect loops in /Pages structureJay Berkenbilt
Pushing inherited objects to pages and getting all pages were both prone to stack overflow infinite loops if there were loops in the Pages dictionary. There is a general weakness in the code in that any part of the code that traverses the Pages structure would be prone to this and would have to implement its own loop detection. A more robust fix may provide some general method for handling the Pages structure, but it's probably not worth doing. Note: addition of *Internal2 private functions was done rather than changing signatures of existing methods to avoid breaking compatibility.
2015-02-21Avoid buffer overrun copying digestJay Berkenbilt
Converting a password to an encryption key is supposed to copy up to a certain number of bytes from a digest. Make sure never to copy more than the size of the digest.
2015-02-21Avoid resolving arguments to RJay Berkenbilt
When checking two objects preceding R while parsing, ensure that the objects are direct. This avoids stuff like 1 0 obj containing 1 0 R 0 R from causing an infinite loop in object resolution.
2014-12-29Handle page tree node with no /TypeJay Berkenbilt
Original reported here: https://bugs.launchpad.net/ubuntu/+source/qpdf/+bug/1397413 The PDF specification says that the /Type key for nodes in the pages dictionary (both /Page and /Pages) is required, but some PDF files omit them. Use the presence of other keys to determine the type of pages tree node this is if the type key is not found.
2014-11-14Handle pages with no /Contents from getPageContents()Jay Berkenbilt
The spec allows /Contents to be omitted for pages that are blank, but QPDFObjectHandle::getPageContents() was throwing an exception in this case.
2014-06-07Prepare 5.1.2 releaserelease-qpdf-5.1.2Jay Berkenbilt
2014-06-07Windows build (msvc): target Windows 5.0.1 (XP)Jay Berkenbilt
Without this, qpdf executables work only on Vista or newer. Fixes #35
2014-06-07Ignore some files created by MSVCJay Berkenbilt
2014-06-07Ignore external-libs directoryJay Berkenbilt
Used during creation of Windows releases
2014-06-07Example: fast split into single pagesJay Berkenbilt
This is faster than using qpdf --pages to do it.
2014-06-07Handle indirect stream filter/decode parametersJay Berkenbilt
QPDFWriter was trying to make /Filter and /DecodeParms direct in all cases, but there are some cases where /DecodeParms may refer to a stream, which can't be direct. QPDFWriter doesn't actually need /DecodeParms to be direct in that case because it won't be able to filter the stream. Until we can handle this type of stream, just don't make /Filter and /DecodeParms direct if we can't filter the stream anyway. Fixes #34