aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-26 22:40:14 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commitedef2cd330d0f4ca77f75e7192628a64bf67de3e (patch)
treecd1f6d7bee4a587e1876b7347525342544cd21f3 /include
parentf2409f4fca3ace5627e7166f9c27167aab869f2a (diff)
downloadqpdf-edef2cd330d0f4ca77f75e7192628a64bf67de3e.tar.zst
QPDFJob: make remaining members private
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh38
1 files changed, 16 insertions, 22 deletions
diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh
index 46ec3d5a..12c7bfb7 100644
--- a/include/qpdf/QPDFJob.hh
+++ b/include/qpdf/QPDFJob.hh
@@ -284,9 +284,8 @@ class QPDFJob
QPDF_DLL
std::shared_ptr<Config> config();
- // QXXXQ set options -- implemented in QPDFJob_options.cc
-
- // QXXXQ these will not be in the final interface
+ // Options for helping the qpdf CLI use the correct edit code and
+ // properly report warnings.
QPDF_DLL
bool suppressWarnings();
QPDF_DLL
@@ -295,7 +294,6 @@ class QPDFJob
bool checkRequiresPassword();
QPDF_DLL
bool checkIsEncrypted();
- // /QXXXQ
// Execute the job
QPDF_DLL
@@ -320,17 +318,12 @@ class QPDFJob
void doIfVerbose(
std::function<void(std::ostream&, std::string const& prefix)> fn);
-
- private:
- public: // QXXXQ
+ // Provide a string that is the help information ("schema" for the
+ // qpdf-specific JSON object) for version 1 of the JSON output.
QPDF_DLL
- static JSON json_schema(std::set<std::string>* keys = 0);
-
- private: // QXXXQ
- QPDF_DLL
- static void parse_object_id(
- std::string const& objspec, bool& trailer, int& obj, int& gen);
+ static std::string json_out_schema_v1();
+ private:
struct RotationSpec
{
RotationSpec(int angle = 0, bool relative = false) :
@@ -345,7 +338,6 @@ class QPDFJob
enum password_mode_e { pm_bytes, pm_hex_bytes, pm_unicode, pm_auto };
- public: // QXXXQ begin public
struct UnderOverlay
{
UnderOverlay(char const* which) :
@@ -368,13 +360,10 @@ class QPDFJob
std::vector<int> repeat_pagenos;
};
- size_t oi_min_width;
- size_t oi_min_height;
- size_t oi_min_area;
- // QXXXQ END-PUBLIC
-
- private:
// Helper functions
+ static JSON json_schema(std::set<std::string>* keys = 0);
+ static void parse_object_id(
+ std::string const& objspec, bool& trailer, int& obj, int& gen);
void parseRotationParameter(std::string const&);
std::vector<int> parseNumrange(char const* range, int max);
@@ -397,17 +386,19 @@ class QPDFJob
std::vector<std::shared_ptr<QPDF>>& page_heap);
bool shouldRemoveUnreferencedResources(QPDF& pdf);
void handleRotations(QPDF& pdf);
+ void getUOPagenos(UnderOverlay& uo,
+ std::map<int, std::vector<int> >& pagenos);
void handleUnderOverlay(QPDF& pdf);
void doUnderOverlayForPage(
QPDF& pdf,
- QPDFJob::UnderOverlay& uo,
+ UnderOverlay& uo,
std::map<int, std::vector<int> >& pagenos,
size_t page_idx,
std::map<int, QPDFObjectHandle>& fo,
std::vector<QPDFPageObjectHelper>& pages,
QPDFPageObjectHelper& dest_page,
bool before);
- void validateUnderOverlay(QPDF& pdf, QPDFJob::UnderOverlay* uo);
+ void validateUnderOverlay(QPDF& pdf, UnderOverlay* uo);
void handleTransformations(QPDF& pdf);
void addAttachments(QPDF& pdf);
void copyAttachments(QPDF& pdf);
@@ -556,6 +547,9 @@ class QPDFJob
bool externalize_inline_images;
bool keep_inline_images;
bool remove_page_labels;
+ size_t oi_min_width;
+ size_t oi_min_height;
+ size_t oi_min_area;
size_t ii_min_bytes;
UnderOverlay underlay;
UnderOverlay overlay;