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 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.

View File

@ -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

View File

@ -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),

View File

@ -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[])