mirror of https://github.com/qpdf/qpdf.git
Windows compilation fixes
This commit is contained in:
parent
31efe701ae
commit
316328704b
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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[])
|
||||
|
|
Loading…
Reference in New Issue