diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index dc6e9090..bef79f39 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -419,6 +419,7 @@ class QPDF // The PDF /Pages tree allows inherited values. Working with // the pages of a pdf is much easier when the inheritance is // resolved by explicitly setting the values in each /Page. + QPDF_DLL void pushInheritedAttributesToPage(); // Add new page at the beginning or the end of the current pdf. diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh index a17b91f4..a446a02b 100644 --- a/include/qpdf/QPDFWriter.hh +++ b/include/qpdf/QPDFWriter.hh @@ -191,6 +191,7 @@ class QPDFWriter // Copy encryption parameters from another QPDF object. If you // want to copy encryption from the object you are writing, call // setPreserveEncryption(true) instead. + QPDF_DLL void copyEncryptionParameters(QPDF&); // Set up for encrypted output. Disables stream prefiltering and diff --git a/libqpdf/QPDF_optimization.cc b/libqpdf/QPDF_optimization.cc index e1fa8e76..67f147f3 100644 --- a/libqpdf/QPDF_optimization.cc +++ b/libqpdf/QPDF_optimization.cc @@ -170,7 +170,7 @@ QPDF::optimize(std::map const& object_stream_data, pushInheritedAttributesToPage(allow_changes, false); // Traverse pages - int n = this->all_pages.size(); + int n = (int)this->all_pages.size(); for (int pageno = 0; pageno < n; ++pageno) { updateObjectMaps(ObjUser(ObjUser::ou_page, pageno), diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index 73f4cbd0..e7daa8ae 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -837,7 +837,7 @@ QPDFPageData::QPDFPageData(QPDF* qpdf, char const* range) : qpdf(qpdf), orig_pages(qpdf->getAllPages()) { - this->selected_pages = parse_numrange(range, this->orig_pages.size()); + this->selected_pages = parse_numrange(range, (int)this->orig_pages.size()); } int main(int argc, char* argv[])