1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-04 17:18:40 +00:00

commiting changes required to compile with poppler-0.76.0

This commit is contained in:
Stephen Gaito 2019-09-26 16:00:11 +01:00
parent 12d1af344f
commit 319cae5588
3 changed files with 7 additions and 9 deletions

View File

@ -16,6 +16,7 @@
#include <GfxState.h>
#include <Stream.h>
#include <PDFDoc.h>
#include <Outline.h>
/************ from goo/gtypes.h ***************/
// #include <goo/gtypes.h>
@ -197,7 +198,7 @@ protected:
void post_process(void);
void process_outline(void);
void process_outline_items(const GooList * items);
void process_outline_items(const std::vector<OutlineItem*> * items);
void process_form(std::ofstream & out);

View File

@ -40,7 +40,7 @@ static string get_linkdest_detail_str(LinkDest * dest, Catalog * catalog, int &
if(dest->isPageRef())
{
auto pageref = dest->getPageRef();
pageno = catalog->findPage(pageref.num, pageref.gen);
pageno = catalog->findPage(pageref);
}
else
{

View File

@ -9,9 +9,6 @@
#include <iostream>
#include <Outline.h>
#include <goo/GooList.h>
#include "HTMLRenderer.h"
#include "util/namespace.h"
#include "util/encoding.h"
@ -21,16 +18,16 @@ namespace pdf2htmlEX {
using std::ostream;
void HTMLRenderer::process_outline_items(const GooList * items)
void HTMLRenderer::process_outline_items(const std::vector<OutlineItem*> * items)
{
if((!items) || (items->getLength() == 0))
if((!items) || (items->size() == 0))
return;
f_outline.fs << "<ul>";
for(int i = 0; i < items->getLength(); ++i)
for(std::size_t i = 0; i < items->size(); ++i)
{
OutlineItem * item = (OutlineItem*)(items->get(i));
OutlineItem * item = items->at(i);
string detail;
string dest = get_linkaction_str(item->getAction(), detail);