Jay Berkenbilt
b067c014b2
Replace - with -- in documentation
...
This is a cosmetic change since both are accepted.
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
9adb6a8dfd
Update for 4.2.0
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
b84f57e56d
Ignore broken DecodeParms for stream with no filters
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
a2696ac271
Adjust to-do list
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
91367239fd
Add --show-npages option to qpdf
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
adccedc02f
Allow numeric range to be omitted qpdf --pages
...
Detect a missing page range and assume 1-z.
2013-07-07 19:43:16 -04:00
Jay Berkenbilt
88bacb6449
Fix QPDFObjGen constructor implementation
2013-07-07 19:43:01 -04:00
Jay Berkenbilt
212812d837
Fix errors reported by Coverity
...
Thanks to Jiri Popelka from Red Hat for sending the output of a
Coverity run over qpdf.
2013-07-07 15:36:51 -04:00
Jon Snell
66c88995fc
Fix typo in qpdf-manual.xml
...
s/Controls handing of object streams./Controls handling of object streams./
2013-06-19 14:21:14 -04:00
Jay Berkenbilt
a85007cb0d
Handle more broken files
...
Space rather than newline after xref, missing /ID in trailer for
encrypted file. This enables qpdf to handle some files that xpdf can
handle. Adobe reader can't necessarily handle them.
2013-06-15 12:40:01 -04:00
Jay Berkenbilt
a1d5a3e916
Retarget some items for 4.2.0 and 4.3.0
...
Bug fixes for 4.2.0 force additional interfaces, so move most of the
4.2.0 items to 4.3.0.
2013-06-14 21:36:22 -04:00
Jay Berkenbilt
16051788ed
Handle /Outlines dictionary being a direct object
...
Even though this case is not valid according to the spec, it has been
seen, and caused an internal error.
2013-06-14 21:36:04 -04:00
Jay Berkenbilt
eae8370cd9
Add optional /Length key in crypt filter dictionary
2013-06-14 20:42:39 -04:00
Jay Berkenbilt
a3576a7359
Bug fix: handle generation > 0 when generating object streams
...
Rework QPDFWriter to always track old object IDs and QPDFObjGen
instead of int, thus not discarding the generation number. Switch to
QPDF::getCompressibleObjGen() to properly handle the case of an old
object eligible for compression that has a generation of other than
zero.
2013-06-14 14:58:09 -04:00
Jay Berkenbilt
96eb965115
Use QPDFObjectHandle::getObjGen() where appropriate
...
In internal code and examples, replace calls to getObjectID() and
getGeneration() with calls to getObjGen() where possible.
2013-06-14 14:58:09 -04:00
Jay Berkenbilt
5039da0b91
Add QPDFObjectHandle::getObjGen()
...
This is safer than getObjectID() and getGeneration() for many uses.
2013-06-14 14:58:09 -04:00
Jay Berkenbilt
d88231e01e
Promote QPDF::ObjGen to top-level object QPDFObjGen
2013-06-14 14:58:08 -04:00
Jay Berkenbilt
690d6031db
Remove duplicated comment
2013-06-08 18:58:31 -04:00
Jay Berkenbilt
c660f74334
User suggestions from github issues 10 and 11
2013-06-02 16:10:53 -04:00
Jay Berkenbilt
f02c5f5e12
Final preparation for 4.1.0 release
2013-04-14 15:03:51 -04:00
Jay Berkenbilt
403bb68d33
Run spelling checker
2013-04-14 14:36:25 -04:00
Jay Berkenbilt
65c667eef9
Remove RPM spec file
...
Most Linux distributions include qpdf now, so there is no need to
distribute our own spec file.
2013-04-14 14:33:10 -04:00
Jay Berkenbilt
be72eab99b
Update release notes for 4.1.0
2013-04-14 14:31:32 -04:00
Jay Berkenbilt
eb6f066296
Update 4.2.0 target
2013-04-04 14:13:51 -04:00
Jay Berkenbilt
2d02b3cc3d
Add explicit int to double cast
2013-04-04 14:13:31 -04:00
Jay Berkenbilt
8e636ea680
Protect gcc diagnostic pragmas with gcc version
...
Versions prior to 4.6 didn't allow gcc diagnostic pragmas with push
and pop and to appear anywhere in the file. Just let the warning be
there for those versions.
2013-03-27 17:36:28 -04:00
Jay Berkenbilt
e8ddac8950
Document casting policy
2013-03-25 14:37:25 -04:00
Jay Berkenbilt
1ec1b12864
Improve idea for corrupted stream handling
2013-03-17 13:16:14 -04:00
Jay Berkenbilt
77a35e0870
Retarget some items for 4.2.0
2013-03-16 22:04:36 -04:00
Jay Berkenbilt
238996667c
Describe mingw-w64 workaround
...
The latest automated mingw-w64 build's libstdc++-6.dll crashes with
qpdf 4.1.0, but libstdc++-6.dll can be replaced with one from a newer
build.
2013-03-16 21:58:23 -04:00
Jay Berkenbilt
49c7681c58
Windows install: check DLL type
...
When copying dlls, make sure to only consider DLLs whose type matches
the type of what is loading them.
2013-03-11 14:10:37 -04:00
Jay Berkenbilt
3803e9cc4a
Export terminateParsing in the DLL
...
Windows fix: QPDFObject::ParserCallbacks::terminateParsing() was not
declared with QPDF_DLL.
2013-03-11 12:37:32 -04:00
Jay Berkenbilt
9d4f52c014
Clarify documentation on encrypted files
...
Explicitly state how QPDF handles empty passwords when writing files.
Apparently some libraries treat the empty string as the owner password
as an instruction to generate a random password.
2013-03-11 12:37:32 -04:00
Jay Berkenbilt
f13558dddb
More 4.1.0 TODO items
2013-03-10 20:32:52 -04:00
Jay Berkenbilt
c380fb00d8
Update TODO for 4.1.0
...
Prepare update for TODO for publication since there is useful
information there for people looking at the repository.
2013-03-07 11:33:09 -05:00
Jay Berkenbilt
197af341de
Use ./install-sh instead of install -c
2013-03-07 11:29:56 -05:00
Jay Berkenbilt
29f5830325
Fix getTypeCode and getTypeName work for indirect objects
...
Remove const qualifier from getTypeCode and get getTypeName methods of
QPDFObjectHandle, make them work properly for indirect objects, and
exercise them much better in the test suite.
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
119f2a4b68
Add method to terminate content stream parsing
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
7be97b3e80
Fix long long format string for WIN32
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
53bfa86084
Fix inadvertent pointer to integer cast
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
fd64959398
Favor strerror_s and fopen_s on MSVC
...
Make remaining calls to fopen and strerror use strerror_s and fopen_s
on MSVC.
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
ac4deac187
Call QUtil::safe_fopen in place of fopen
...
fopen was previuosly called wrapped by QUtil::fopen_wrapper, but
QUtil::safe_fopen does this itself, which is less cumbersome.
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
7ccc9bd9d5
Remove all calls to strcpy
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
a51ae10b8d
Remove all calls to sprintf
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
66c3c8fdf7
Use portable versions of some UNIX-specific calls
...
Remove needless calls to open, close, and fileno; call remove instead
of unlink.
2013-03-05 13:35:46 -05:00
Jay Berkenbilt
6b9297882e
Mark secure CRT warnings with comment
...
Put a specific comment marker next to every piece of code that MSVC
gives warning 4996 for. This warning is generated for calls to
functions that Microsoft considers insecure or deprecated. This
change is in preparation for fixing all these cases even though none
of them are actually incorrect or insecure as used in qpdf. The
comment marker makes them easier to find so they can be fixed in
subsequent commits.
2013-03-05 13:33:32 -05:00
Jay Berkenbilt
8be8277613
Rewrite QUtil::int_to_string and QUtil::double_to_string
...
Make them safer by avoiding any internal limits and replacing sprintf
with std::ostringstream.
2013-03-04 16:45:16 -05:00
Jay Berkenbilt
ed19516aa7
Fix unused local variable warnings
2013-03-04 16:45:16 -05:00
Jay Berkenbilt
30027481f7
Remove all old-style casts from C++ code
2013-03-04 16:45:16 -05:00
Jay Berkenbilt
babb47948a
Changing default warnings for MSVC
...
Enable C4996, deprecation/security warnings, which helps for Windows 8
certification. Stop enabling C4267, which was warning about
conversions between size_t and other integer types.
2013-03-04 16:45:15 -05:00