Commit 316328704b3b21594b6bd4bc3e67bac117111329

Authored by Jay Berkenbilt
1 parent 31efe701

Windows compilation fixes

include/qpdf/QPDF.hh
... ... @@ -419,6 +419,7 @@ class QPDF
419 419 // The PDF /Pages tree allows inherited values. Working with
420 420 // the pages of a pdf is much easier when the inheritance is
421 421 // resolved by explicitly setting the values in each /Page.
  422 + QPDF_DLL
422 423 void pushInheritedAttributesToPage();
423 424  
424 425 // Add new page at the beginning or the end of the current pdf.
... ...
include/qpdf/QPDFWriter.hh
... ... @@ -191,6 +191,7 @@ class QPDFWriter
191 191 // Copy encryption parameters from another QPDF object. If you
192 192 // want to copy encryption from the object you are writing, call
193 193 // setPreserveEncryption(true) instead.
  194 + QPDF_DLL
194 195 void copyEncryptionParameters(QPDF&);
195 196  
196 197 // Set up for encrypted output. Disables stream prefiltering and
... ...
libqpdf/QPDF_optimization.cc
... ... @@ -170,7 +170,7 @@ QPDF::optimize(std::map<int, int> const& object_stream_data,
170 170 pushInheritedAttributesToPage(allow_changes, false);
171 171  
172 172 // Traverse pages
173   - int n = this->all_pages.size();
  173 + int n = (int)this->all_pages.size();
174 174 for (int pageno = 0; pageno < n; ++pageno)
175 175 {
176 176 updateObjectMaps(ObjUser(ObjUser::ou_page, pageno),
... ...
qpdf/qpdf.cc
... ... @@ -837,7 +837,7 @@ QPDFPageData::QPDFPageData(QPDF* qpdf, char const* range) :
837 837 qpdf(qpdf),
838 838 orig_pages(qpdf->getAllPages())
839 839 {
840   - this->selected_pages = parse_numrange(range, this->orig_pages.size());
  840 + this->selected_pages = parse_numrange(range, (int)this->orig_pages.size());
841 841 }
842 842  
843 843 int main(int argc, char* argv[])
... ...