2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-02-09 15:18:29 +00:00

1018 Commits

Author SHA1 Message Date
m-holger
8e23ab01ab In QPDFJob::handlePageSpecs open files by looping over FileStore
To facilitate this, add new data member QPDFJob::InputFile::password.
2024-06-03 13:16:52 +01:00
m-holger
91b88da983 In QPDFJob::handlePageSpecs merge page_spec_cfis into FileStore 2024-06-03 12:31:31 +01:00
m-holger
96a63a625f Add new class QPDFJob::FileStore
Basic temporary implementation of FileStore. Merge QPDFJob::handlePageSpecs
variables page_heap, filenames and page_spec_qpdfs into FileStore.
2024-06-03 12:25:19 +01:00
m-holger
a4812552d0 Merge QPDFPageData into QPDFJob::Section 2024-06-03 12:24:55 +01:00
m-holger
424646892c Replace struct QPDFJob::PageSpec with new class QPDFJob::Section 2024-06-03 12:24:29 +01:00
m-holger
826c0fa45e In QPDFJob change data member encryption_file_password to std::string 2024-06-03 12:23:59 +01:00
m-holger
5a306354ea In QPDFJob change data member password to std::string 2024-06-03 12:23:36 +01:00
m-holger
5c882bbc17 In QPDFJob change data member outfilename to std::string 2024-06-03 12:23:22 +01:00
m-holger
6c22208d33 In QPDFJob change data member infilename to std::string 2024-06-03 12:23:09 +01:00
m-holger
4c1581245a In QPDFJob add data member empty_input to explicitly represent the
--empty option
2024-06-03 12:22:50 +01:00
m-holger
3683938caa In QPDFJob push the page_heap from QPDFJob down to handlePageSpecs 2024-06-03 12:22:33 +01:00
m-holger
e1ca10ccc4 In QPDFJob::handleUnderOverlay flatten nested fo maps 2024-06-03 12:21:12 +01:00
m-holger
09ddce19e8 In QPDFJob::handleUnderOverlay flatten nested under/overlay_pagenos maps
Also, in QPDFJob::getUOPagenos tweak vector access and change signature to
return result and make parameter const. In doUnderOverlayForPage make
pagenos parameter a const&.
2024-06-03 12:20:20 +01:00
m-holger
b84a08f447 In QPDFJob::doUnderOverlayForPage tweak make_afdh 2024-06-03 12:19:32 +01:00
m-holger
4df77d44a6 In QPDFJob::handleUnderOverlay tweak get_pages 2024-06-03 12:19:13 +01:00
m-holger
aa2e0d23f0 In QPDFWriter::writeLinearized use object table obj in call to getLinearizedParts 2024-03-08 10:41:24 +00:00
m-holger
97d78c75ff In QPDFWriter::writeLinearized use object table obj in call to optimize 2024-03-08 10:33:42 +00:00
m-holger
0df0d00c58 Add method QPDF::Writer::getCompressibleObjSet
Create set without creation of an intermediate vector.
2024-03-08 10:20:12 +00:00
m-holger
ae00ee6119 Replace QPDF::Writer::getObjectStreamData with getXRefTable 2024-03-08 10:10:31 +00:00
m-holger
ef3a8025fb In QPDFWriter replace map lenghts with ObjTable new_obj 2024-03-08 10:06:14 +00:00
m-holger
ccad589f7d In QPDFWriter replace map xref with new ObjTable new_obj 2024-03-08 10:05:57 +00:00
m-holger
2fa93e79b4 In QPDFWriter replace map object_to_object_stream with ObjTable obj 2024-03-08 09:59:56 +00:00
m-holger
84e25919cb In QPDFWriter replace map obj_renumber_no_gen with ObjTable obj 2024-03-08 09:36:47 +00:00
m-holger
8791b5f8d0 In QPDFWriter replace map obj_renumber with a new object table obj 2024-03-08 09:36:22 +00:00
Jay Berkenbilt
e362bce8e8 Merge branch 'jw' from #1146 into work 2024-02-17 14:15:48 -05:00
m-holger
4f54508f7f Refactor QPDFJob::doJSONObjects 2024-02-16 15:50:30 +00:00
m-holger
f0bc2f11ef Expose QPDFObjectHandle::writeJSON 2024-02-16 14:09:28 +00:00
m-holger
b9bc05356a Refactor QPDF::writeJSONStream
Use QPDF_Stream::writeStreamJSON.
Factor out the json_stream_data == qpdf_sj_file case.
2024-02-16 11:51:10 +00:00
m-holger
e2737ab646 Add new writeJSON methods
Create an alternative to getJSON to allow an object handle to be written as JSON without the overhead of creating a JSON object.
2024-02-16 10:51:25 +00:00
m-holger
9e90007a4a Add new private class JSON::Writer
Create a simple utility class for writing JSON to a pipeline.
2024-02-16 10:32:41 +00:00
Jay Berkenbilt
b1dad0de2a Fix previous fix to setting checkbox value (fixes #1056)
The code accepted values other than /Yes but still used /Yes as the
checked value instead of obeying the normal appearance dictionary.
2024-02-11 15:49:44 -05:00
m-holger
a41b789995 Add new method JSON::getDictItem 2024-01-15 15:02:52 +00:00
Jay Berkenbilt
5b2e543089 Honor repeated overlay/underlay 2024-01-11 06:13:57 -05:00
Jay Berkenbilt
6488b156f7 Fix deleted copy constructors for Config classes 2024-01-10 16:45:14 -05:00
Jay Berkenbilt
1ecdbc1e55 Bump version to 11.9.0 2024-01-10 16:45:13 -05:00
Jay Berkenbilt
9c723aeb56 Allow --file with --overlay and --underlay 2024-01-10 16:44:46 -05:00
Jay Berkenbilt
34f013c1be Allow --file and --range with --pages
Accept --file and --range as named parameters in additional to
allowing positional arguments. This is in preparation for adding
additional flags.
2024-01-10 16:44:17 -05:00
m-holger
8715d6a693 Tweak QPDF::replaceObject 2024-01-08 11:54:33 +00:00
Jay Berkenbilt
07f6c635a9 Bug fix: treat old generations of reused objects as null 2024-01-07 17:16:14 -05:00
Jay Berkenbilt
ebdd41e692 Spell check 2024-01-07 08:54:36 -05:00
Jay Berkenbilt
7cac433e2d Implement --set-page-labels and supporting API (fixes #939) 2024-01-05 17:12:12 -05:00
Jay Berkenbilt
543038c52a Bump version to 11.8.0 2024-01-05 17:11:21 -05:00
Jay Berkenbilt
08e3050d5f Automated changes for --set-page-labels
This commit contains the changes from generate_auto_job based on
manual changes from the previous commit.
2024-01-05 17:10:45 -05:00
Jay Berkenbilt
a0e70b370a Wiring for --set-page-labels: manual (non-bisectable commit)
This commit contains only the manual changes. It is separated for
clarity. This commit would not pass CI because it lacks the automated
changes, which appear in the next commit.
2024-01-05 17:10:32 -05:00
Jay Berkenbilt
bfc5fc51f2 Remove unused argument in private setWriterOptions method 2024-01-04 07:31:00 -05:00
Jay Berkenbilt
d8d70ecca2 Support comma-separated numeric values with --collate (fixes #505) 2024-01-01 18:57:32 -05:00
Jay Berkenbilt
9db5d75b2b Update copyright to 2024 2024-01-01 10:56:06 -05:00
Jay Berkenbilt
070ee710eb Support excluding values from numeric ranges (fixes #564, #790) 2024-01-01 10:48:14 -05:00
Jay Berkenbilt
d9b8b0aae1 Bump version to 11.7.1 2023-12-29 13:40:30 -05:00
Jay Berkenbilt
1ad6451e8c Fix comment formatting and update notes 2023-12-29 13:16:01 -05:00