2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-23 03:18:59 +00:00
Commit Graph

176 Commits

Author SHA1 Message Date
Jay Berkenbilt
a101533e0a Add command line option to copy encryption from other file
Add --copy-encryption and --encryption-file-password options to qpdf.
Also strengthen test suite for copying encryption.  The strengthened
test suite would have caught the failure to preserve AES and the
failure to update the file version, which was invalidating the
encrypted data.
2012-07-15 21:15:24 -04:00
Jay Berkenbilt
0575d77d77 Add public QPDFWriter::copyEncryptionParameters
Method to copy encryption parameters from another file.  Adapted from
existing code to copy encryption parameters from the original file.
2012-07-14 09:14:41 -04:00
Jay Berkenbilt
e7b8f297ba Support copying objects from another QPDF object
This includes QPDF::copyForeignObject and supporting foreign objects
as arguments to addPage*.
2012-07-11 15:54:33 -04:00
Jay Berkenbilt
b20e37a2c5 Update TODO 2012-07-08 16:01:27 -04:00
Jay Berkenbilt
e2dedde4bd Don't require stream data provider to know length in advance
Breaking API change: length parameter has disappeared from the
StreamDataProvider version of QPDFObjectHandle::replaceStreamData
since it is no longer necessary to compute it in advance.  This
breaking change is justified by the fact that removing the length
parameter provides the caller an opportunity to simplify the calling
code.
2012-07-07 17:33:45 -04:00
Jay Berkenbilt
a167ce8120 Update ChangeLog and TODO 2012-06-27 10:20:50 -04:00
Jay Berkenbilt
5b4aba20a2 TODO 2012-06-27 06:48:06 -04:00
Jay Berkenbilt
47fe285567 Update TODO 2012-06-24 15:56:59 -04:00
Jay Berkenbilt
8318d81ada Fix and test support for files >= 4 GB 2012-06-24 15:56:50 -04:00
Jay Berkenbilt
ffb96ee17e Add pdf-from-scratch example 2012-06-23 09:05:06 -04:00
Jay Berkenbilt
b6bdc0f595 Add factory methods for creating empty arrays and dictionaries.
Also updated pdf_from_scratch test driver to use the new factories,
and made some cosmetic improvements and documentation updates for the
emptyPDF() method.
2012-06-22 09:46:33 -04:00
Jay Berkenbilt
a0768e4190 Add QPDF::emptyPDF() and pdf_from_scratch test code 2012-06-21 23:09:05 -04:00
Jay Berkenbilt
9eb8c9159b Update TODO file 2012-06-21 21:24:54 -04:00
Jay Berkenbilt
9cdaa76b52 note to add pkg-config 2012-06-21 16:15:09 -04:00
Jay Berkenbilt
ba61c3aef0 Updates to TODO file 2012-06-21 15:04:45 -04:00
Jay Berkenbilt
5d4cad9c02 ABI change: fix use of off_t, size_t, and integer types
Significantly improve the code's use of off_t for file offsets, size_t
for memory sizes, and integer types in cases where there has to be
compatibility with external interfaces.  Rework sections of the code
that would have prevented qpdf from working on files larger than 2 (or
maybe 4) GB in size.
2012-06-20 15:20:26 -04:00
Jay Berkenbilt
92c94e7df2 Add symbol versioning
For ELF systems, turn on versioned symbols by default, and add a
configure option to enable or disable them.
2012-06-20 15:18:12 -04:00
Jay Berkenbilt
a04de932d2 to-do updates for planned work 2012-06-16 20:35:16 -04:00
Jay Berkenbilt
17de39a6a0 notes for portability fixes 2012-05-19 09:23:00 -04:00
Jay Berkenbilt
e3c9512b25 notes on symbol versioning 2012-02-11 12:49:47 -05:00
Jay Berkenbilt
8e9fe21316 Update for 2.3.1 2011-12-28 17:19:40 -05:00
Jay Berkenbilt
5963267b5f Discard stderr from gs when comparing images.
This works around cases where gs falsely complains about things in the
PDF files or gives warnings that don't harm the output.  See comments
in qpdf.test for details.
2011-12-28 14:02:07 -05:00
Jay Berkenbilt
04fe9cc257 *** empty log message *** 2011-12-06 10:58:29 -05:00
Jay Berkenbilt
ee93b24d67 remove remaining 2.3.0 TODO items 2011-08-11 14:50:05 -04:00
Jay Berkenbilt
76b1659177 enhance PointerHolder so that it can explicitly be told to use delete [] instead of delete, thus making it useful to run valgrind over qpdf during its test suite 2011-08-11 11:57:37 -04:00
Jay Berkenbilt
14fe2e6de3 qpdf_set_info_key, qpdf_get_info_key 2011-08-11 10:48:37 -04:00
Jay Berkenbilt
cb0c8ca2fe update release notes and TODO for changes made so far 2011-08-11 08:17:39 -04:00
Jay Berkenbilt
8b0fbfe806 bug description 2011-08-10 17:40:58 -04:00
Jay Berkenbilt
b1a5b7e5d4 include encrypted file bug and associated data 2011-08-02 12:44:37 -04:00
Jay Berkenbilt
7f41a8a0ce more ideas for 2.3 2011-08-02 12:33:39 -04:00
Jay Berkenbilt
d0f4469522 added API change suggestions based on discussions with a helpful user
who asked to remain anonymous
2011-08-02 12:23:47 -04:00
Jay Berkenbilt
9de1f4826b 2.2.4
git-svn-id: svn+q:///qpdf/trunk@1062 71b93d88-0707-0410-a8cf-f5a4172ac649
2011-06-25 18:39:05 +00:00
Jay Berkenbilt
5c44898d57 notes
git-svn-id: svn+q:///qpdf/trunk@1059 71b93d88-0707-0410-a8cf-f5a4172ac649
2011-06-23 18:47:01 +00:00
Jay Berkenbilt
6405d3928f be less conservative when skipping over inline images in content normalization
git-svn-id: svn+q:///qpdf/trunk@1050 71b93d88-0707-0410-a8cf-f5a4172ac649
2011-04-30 18:20:35 +00:00
Jay Berkenbilt
5ccc788b80 doc note
git-svn-id: svn+q:///qpdf/trunk@1048 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-12-27 15:42:48 +00:00
Jay Berkenbilt
48b2b57257 update doc
git-svn-id: svn+q:///qpdf/trunk@1036 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-10-01 11:05:10 +00:00
Jay Berkenbilt
a72ce95c92 setOutputStreams
git-svn-id: svn+q:///qpdf/trunk@1035 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-10-01 11:02:35 +00:00
Jay Berkenbilt
9f444ffef3 add QPDF::processMemoryFile and API additions to support it
git-svn-id: svn+q:///qpdf/trunk@1034 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-10-01 10:20:38 +00:00
Jay Berkenbilt
359999a59c note
git-svn-id: svn+q:///qpdf/trunk@1033 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-09-24 20:47:58 +00:00
Jay Berkenbilt
1dade9a7ee more notes on cout
git-svn-id: svn+q:///qpdf/trunk@1026 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-09-05 15:02:19 +00:00
Jay Berkenbilt
0c1dab0cea *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@1022 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-15 12:58:47 +00:00
Jay Berkenbilt
adf8c50ccc note
git-svn-id: svn+q:///qpdf/trunk@1020 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-15 00:03:49 +00:00
Jay Berkenbilt
6b4d231245 2.2.0
git-svn-id: svn+q:///qpdf/trunk@1016 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-14 16:43:18 +00:00
Jay Berkenbilt
f9d0f58e90 merge notes
git-svn-id: svn+q:///qpdf/trunk@1011 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-10 02:28:08 +00:00
Jay Berkenbilt
bd7261da9b getRawStreamData()
git-svn-id: svn+q:///qpdf/trunk@1010 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-09 23:33:40 +00:00
Jay Berkenbilt
54303cea9c *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@1009 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-08 23:54:43 +00:00
Jay Berkenbilt
d6bcad5145 update release notes, TODO
git-svn-id: svn+q:///qpdf/trunk@1005 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-08 21:27:54 +00:00
Jay Berkenbilt
1ff024fafc update version numbers
git-svn-id: svn+q:///qpdf/trunk@1004 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-08 21:19:58 +00:00
Jay Berkenbilt
cf172cf550 some doc updates, shlib version
git-svn-id: svn+q:///qpdf/trunk@1002 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-06 01:38:24 +00:00
Jay Berkenbilt
cb1d89e763 invert images example
git-svn-id: svn+q:///qpdf/trunk@1001 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-06 01:27:47 +00:00
Jay Berkenbilt
81b73bb9e9 notes
git-svn-id: svn+q:///qpdf/trunk@997 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 21:54:15 +00:00
Jay Berkenbilt
9ba5b27ce4 add double-page-size example
git-svn-id: svn+q:///qpdf/trunk@996 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 21:51:19 +00:00
Jay Berkenbilt
2dbc1006fb addPageContents
git-svn-id: svn+q:///qpdf/trunk@995 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 21:06:49 +00:00
Jay Berkenbilt
c292442962 change note
git-svn-id: svn+q:///qpdf/trunk@994 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 20:33:22 +00:00
Jay Berkenbilt
9a8f6b8c2d move note
git-svn-id: svn+q:///qpdf/trunk@993 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 20:26:09 +00:00
Jay Berkenbilt
11df7809af add pipeline-based stream data replacement function
git-svn-id: svn+q:///qpdf/trunk@990 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-05 19:04:22 +00:00
Jay Berkenbilt
998a6cbee9 remove stream_data_handler; it wouldn't work as designed. replacement data implemented but not tested
git-svn-id: svn+q:///qpdf/trunk@988 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02 22:40:52 +00:00
Jay Berkenbilt
ab5a01c64e notes
git-svn-id: svn+q:///qpdf/trunk@986 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02 16:46:39 +00:00
Jay Berkenbilt
00ed5af502 remove use of float for version comparison
git-svn-id: svn+q:///qpdf/trunk@984 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02 16:18:46 +00:00
Jay Berkenbilt
01d6f04adc qpdf.qbilt.org -> qpdf.sourceforge.net
git-svn-id: svn+q:///qpdf/trunk@983 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-08-02 15:59:56 +00:00
Jay Berkenbilt
21579bc297 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@982 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-07-31 14:54:23 +00:00
Jay Berkenbilt
1a1a7551ce function to get images
git-svn-id: svn+q:///qpdf/trunk@981 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-26 01:27:29 +00:00
Jay Berkenbilt
0520f7d1a7 todo idea
git-svn-id: svn+q:///qpdf/trunk@980 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-14 01:21:29 +00:00
Jay Berkenbilt
21753001b7 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@978 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-06 15:45:02 +00:00
Jay Berkenbilt
9496b2cb20 fix memory leak
git-svn-id: svn+q:///qpdf/trunk@976 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-06 13:32:08 +00:00
Jay Berkenbilt
909d1d5602 another bug description
git-svn-id: svn+q:///qpdf/trunk@974 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-06 12:34:27 +00:00
Jay Berkenbilt
7559934b02 solved memory leak
git-svn-id: svn+q:///qpdf/trunk@973 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-06-05 21:27:41 +00:00
Jay Berkenbilt
70f9dc9acf current notes
git-svn-id: svn+q:///qpdf/trunk@969 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-05-31 17:12:22 +00:00
Jay Berkenbilt
dd99ff8b59 copy encryption
git-svn-id: svn+q:///qpdf/trunk@954 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-04-10 13:35:34 +00:00
Jay Berkenbilt
507ea15ec5 more TODO items
git-svn-id: svn+q:///qpdf/trunk@948 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-03-27 16:00:41 +00:00
Jay Berkenbilt
a800b4eaa1 updated ChangeLog
git-svn-id: svn+q:///qpdf/trunk@947 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-03-27 15:53:44 +00:00
Jay Berkenbilt
7a804090b3 update patch
git-svn-id: svn+q:///qpdf/trunk@937 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-01-25 01:27:12 +00:00
Jay Berkenbilt
3416c60fe9 save pass1 patch
git-svn-id: svn+q:///qpdf/trunk@931 71b93d88-0707-0410-a8cf-f5a4172ac649
2010-01-18 03:37:01 +00:00
Jay Berkenbilt
0d3829949d note
git-svn-id: svn+q:///qpdf/trunk@924 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-11-08 14:49:59 +00:00
Jay Berkenbilt
5ddcee6bd8 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@922 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-11-08 14:49:01 +00:00
Jay Berkenbilt
ace2a031b5 prepare 2.1.rc1 for release
git-svn-id: svn+q:///qpdf/trunk@901 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-24 04:47:17 +00:00
Jay Berkenbilt
cfc1f6fcac notes, version
git-svn-id: svn+q:///qpdf/trunk@893 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 16:44:13 +00:00
Jay Berkenbilt
dcaeb6a89d *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@892 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 16:23:20 +00:00
Jay Berkenbilt
46c178260b *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@880 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 03:42:26 +00:00
Jay Berkenbilt
9e57897c89 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@879 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 03:38:34 +00:00
Jay Berkenbilt
d607e965e5 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@877 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 03:35:16 +00:00
Jay Berkenbilt
d9939b9ad6 more tweaking of external libs
git-svn-id: svn+q:///qpdf/trunk@875 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-23 03:34:05 +00:00
Jay Berkenbilt
633a294694 notes
git-svn-id: svn+q:///qpdf/trunk@867 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-22 18:52:48 +00:00
Jay Berkenbilt
ae4c6166a1 notes
git-svn-id: svn+q:///qpdf/trunk@866 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-22 18:04:46 +00:00
Jay Berkenbilt
8fe48ace4f notes
git-svn-id: svn+q:///qpdf/trunk@862 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-22 16:05:47 +00:00
Jay Berkenbilt
873ae724c1 note
git-svn-id: svn+q:///qpdf/trunk@856 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-22 15:33:42 +00:00
Jay Berkenbilt
eff113fa68 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@848 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-20 03:04:40 +00:00
Jay Berkenbilt
b477b36590 *** empty log message ***
git-svn-id: svn+q:///qpdf/trunk@836 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-20 01:39:16 +00:00
Jay Berkenbilt
ad0ab25d66 fix bug in C API, test invalid password specifically
git-svn-id: svn+q:///qpdf/trunk@832 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-20 00:59:38 +00:00
Jay Berkenbilt
3f8c4c2736 categorize all error messages and include object information if available
git-svn-id: svn+q:///qpdf/trunk@829 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19 23:09:19 +00:00
Jay Berkenbilt
734ac1e1d2 deal with stream-specific crypt filters
git-svn-id: svn+q:///qpdf/trunk@827 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19 01:58:31 +00:00
Jay Berkenbilt
70ae58c035 better testing of V4
git-svn-id: svn+q:///qpdf/trunk@826 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19 01:22:10 +00:00
Jay Berkenbilt
09175e4578 more testing, bug fix for linearized aes encrypted files
git-svn-id: svn+q:///qpdf/trunk@824 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-19 00:17:11 +00:00
Jay Berkenbilt
94131116a9 more notes, testing of cleartext metadata, some crypt filter fixes
git-svn-id: svn+q:///qpdf/trunk@823 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18 19:54:24 +00:00
Jay Berkenbilt
34097d6c64 notes
git-svn-id: svn+q:///qpdf/trunk@820 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18 14:39:44 +00:00
Jay Berkenbilt
3359051d08 only seed randon number generater once for aes-cbc, try to avoid compressing Metadata streams
git-svn-id: svn+q:///qpdf/trunk@819 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18 14:09:53 +00:00
Jay Berkenbilt
67e353e4e4 use StdCF to make adobe reader happy; handle EncryptMetadata properly when reading
git-svn-id: svn+q:///qpdf/trunk@817 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18 02:26:09 +00:00
Jay Berkenbilt
b873dc9c59 implemented writing R4/V4 encryption except that the output files don't open in Adobe reader 9.1.3.
git-svn-id: svn+q:///qpdf/trunk@816 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-18 02:03:18 +00:00
Jay Berkenbilt
c13bc66de8 checkpoint -- partially implemented /V=4 encryption
git-svn-id: svn+q:///qpdf/trunk@811 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-17 18:54:51 +00:00
Jay Berkenbilt
846c9f6bcc checkpoint -- started doing some R4 encryption support
git-svn-id: svn+q:///qpdf/trunk@807 71b93d88-0707-0410-a8cf-f5a4172ac649
2009-10-17 03:14:47 +00:00