1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-01 07:59:00 +00:00

fix build with git version of poppler

This commit is contained in:
Lu Wang 2013-01-28 19:45:40 +08:00
parent d38697d890
commit b7ffd969e5
2 changed files with 7 additions and 0 deletions

View File

@ -147,7 +147,9 @@ class HTMLRenderer : public OutputDev
virtual void setDefaultCTM(double *ctm);
// Start a page.
// UGLY: These 2 versions are for different versions of poppler
virtual void startPage(int pageNum, GfxState *state);
virtual void startPage(int pageNum, GfxState *state, XRef * xref);
// End a page.
virtual void endPage();

View File

@ -134,6 +134,11 @@ void HTMLRenderer::setDefaultCTM(double *ctm)
}
void HTMLRenderer::startPage(int pageNum, GfxState *state)
{
startPage(pageNum, state, nullptr);
}
void HTMLRenderer::startPage(int pageNum, GfxState *state, XRef * xref)
{
this->pageNum = pageNum;
this->pageWidth = state->getPageWidth();