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