2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-16 17:45:09 +00:00

Windows compilation fixes

This commit is contained in:
Jay Berkenbilt 2012-07-21 20:50:42 -04:00
parent 31efe701ae
commit 316328704b
4 changed files with 4 additions and 2 deletions

View File

@ -419,6 +419,7 @@ class QPDF
// The PDF /Pages tree allows inherited values. Working with // The PDF /Pages tree allows inherited values. Working with
// the pages of a pdf is much easier when the inheritance is // the pages of a pdf is much easier when the inheritance is
// resolved by explicitly setting the values in each /Page. // resolved by explicitly setting the values in each /Page.
QPDF_DLL
void pushInheritedAttributesToPage(); void pushInheritedAttributesToPage();
// Add new page at the beginning or the end of the current pdf. // Add new page at the beginning or the end of the current pdf.

View File

@ -191,6 +191,7 @@ class QPDFWriter
// Copy encryption parameters from another QPDF object. If you // Copy encryption parameters from another QPDF object. If you
// want to copy encryption from the object you are writing, call // want to copy encryption from the object you are writing, call
// setPreserveEncryption(true) instead. // setPreserveEncryption(true) instead.
QPDF_DLL
void copyEncryptionParameters(QPDF&); void copyEncryptionParameters(QPDF&);
// Set up for encrypted output. Disables stream prefiltering and // Set up for encrypted output. Disables stream prefiltering and

View File

@ -170,7 +170,7 @@ QPDF::optimize(std::map<int, int> const& object_stream_data,
pushInheritedAttributesToPage(allow_changes, false); pushInheritedAttributesToPage(allow_changes, false);
// Traverse pages // Traverse pages
int n = this->all_pages.size(); int n = (int)this->all_pages.size();
for (int pageno = 0; pageno < n; ++pageno) for (int pageno = 0; pageno < n; ++pageno)
{ {
updateObjectMaps(ObjUser(ObjUser::ou_page, pageno), updateObjectMaps(ObjUser(ObjUser::ou_page, pageno),

View File

@ -837,7 +837,7 @@ QPDFPageData::QPDFPageData(QPDF* qpdf, char const* range) :
qpdf(qpdf), qpdf(qpdf),
orig_pages(qpdf->getAllPages()) 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[]) int main(int argc, char* argv[])