aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2012-07-22 02:50:42 +0200
committerJay Berkenbilt <ejb@ql.org>2012-07-22 02:51:56 +0200
commit316328704b3b21594b6bd4bc3e67bac117111329 (patch)
tree16abb4860a1491ff1cac0b7e9b70860b2412e7ed
parent31efe701aedaf2d67704f1b293dd919bd4cf5e3d (diff)
downloadqpdf-316328704b3b21594b6bd4bc3e67bac117111329.tar.zst
Windows compilation fixes
-rw-r--r--include/qpdf/QPDF.hh1
-rw-r--r--include/qpdf/QPDFWriter.hh1
-rw-r--r--libqpdf/QPDF_optimization.cc2
-rw-r--r--qpdf/qpdf.cc2
4 files changed, 4 insertions, 2 deletions
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<int, int> 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[])