mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
commiting changes required to compile with poppler-0.76.0
This commit is contained in:
parent
12d1af344f
commit
319cae5588
@ -16,6 +16,7 @@
|
|||||||
#include <GfxState.h>
|
#include <GfxState.h>
|
||||||
#include <Stream.h>
|
#include <Stream.h>
|
||||||
#include <PDFDoc.h>
|
#include <PDFDoc.h>
|
||||||
|
#include <Outline.h>
|
||||||
|
|
||||||
/************ from goo/gtypes.h ***************/
|
/************ from goo/gtypes.h ***************/
|
||||||
// #include <goo/gtypes.h>
|
// #include <goo/gtypes.h>
|
||||||
@ -197,7 +198,7 @@ protected:
|
|||||||
void post_process(void);
|
void post_process(void);
|
||||||
|
|
||||||
void process_outline(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);
|
void process_form(std::ofstream & out);
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ static string get_linkdest_detail_str(LinkDest * dest, Catalog * catalog, int &
|
|||||||
if(dest->isPageRef())
|
if(dest->isPageRef())
|
||||||
{
|
{
|
||||||
auto pageref = dest->getPageRef();
|
auto pageref = dest->getPageRef();
|
||||||
pageno = catalog->findPage(pageref.num, pageref.gen);
|
pageno = catalog->findPage(pageref);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -9,9 +9,6 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <Outline.h>
|
|
||||||
#include <goo/GooList.h>
|
|
||||||
|
|
||||||
#include "HTMLRenderer.h"
|
#include "HTMLRenderer.h"
|
||||||
#include "util/namespace.h"
|
#include "util/namespace.h"
|
||||||
#include "util/encoding.h"
|
#include "util/encoding.h"
|
||||||
@ -21,16 +18,16 @@ namespace pdf2htmlEX {
|
|||||||
|
|
||||||
using std::ostream;
|
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;
|
return;
|
||||||
|
|
||||||
f_outline.fs << "<ul>";
|
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 detail;
|
||||||
string dest = get_linkaction_str(item->getAction(), detail);
|
string dest = get_linkaction_str(item->getAction(), detail);
|
||||||
|
Loading…
Reference in New Issue
Block a user