|
| 1 | +diff --git a/src/HTMLRenderer/HTMLRenderer.h b/src/HTMLRenderer/HTMLRenderer.h |
| 2 | +index 329f868..a1195e8 100644 |
| 3 | +--- a/src/HTMLRenderer/HTMLRenderer.h |
| 4 | ++++ b/src/HTMLRenderer/HTMLRenderer.h |
| 5 | +@@ -16,6 +16,7 @@ |
| 6 | + #include <GfxState.h> |
| 7 | + #include <Stream.h> |
| 8 | + #include <PDFDoc.h> |
| 9 | ++#include <Outline.h> |
| 10 | + |
| 11 | + /************ from goo/gtypes.h ***************/ |
| 12 | + // #include <goo/gtypes.h> |
| 13 | +@@ -197,7 +198,7 @@ protected: |
| 14 | + void post_process(void); |
| 15 | + |
| 16 | + void process_outline(void); |
| 17 | +- void process_outline_items(const GooList * items); |
| 18 | ++ void process_outline_items(const std::vector<OutlineItem*> * items); |
| 19 | + |
| 20 | + void process_form(std::ofstream & out); |
| 21 | + |
| 22 | +diff --git a/src/HTMLRenderer/link.cc b/src/HTMLRenderer/link.cc |
| 23 | +index 9f3a62d..842b6de 100644 |
| 24 | +--- a/src/HTMLRenderer/link.cc |
| 25 | ++++ b/src/HTMLRenderer/link.cc |
| 26 | +@@ -40,7 +40,7 @@ static string get_linkdest_detail_str(LinkDest * dest, Catalog * catalog, int & |
| 27 | + if(dest->isPageRef()) |
| 28 | + { |
| 29 | + auto pageref = dest->getPageRef(); |
| 30 | +- pageno = catalog->findPage(pageref.num, pageref.gen); |
| 31 | ++ pageno = catalog->findPage(pageref); |
| 32 | + } |
| 33 | + else |
| 34 | + { |
| 35 | +diff --git a/src/HTMLRenderer/outline.cc b/src/HTMLRenderer/outline.cc |
| 36 | +index 205eac7..d5848c5 100644 |
| 37 | +--- a/src/HTMLRenderer/outline.cc |
| 38 | ++++ b/src/HTMLRenderer/outline.cc |
| 39 | +@@ -9,8 +9,8 @@ |
| 40 | + |
| 41 | + #include <iostream> |
| 42 | + |
| 43 | +-#include <Outline.h> |
| 44 | +-#include <goo/GooList.h> |
| 45 | ++//#include <Outline.h> |
| 46 | ++//#include <goo/GooList.h> |
| 47 | + |
| 48 | + #include "HTMLRenderer.h" |
| 49 | + #include "util/namespace.h" |
| 50 | +@@ -21,16 +21,16 @@ namespace pdf2htmlEX { |
| 51 | + |
| 52 | + using std::ostream; |
| 53 | + |
| 54 | +-void HTMLRenderer::process_outline_items(const GooList * items) |
| 55 | ++void HTMLRenderer::process_outline_items(const std::vector<OutlineItem*> * items) |
| 56 | + { |
| 57 | +- if((!items) || (items->getLength() == 0)) |
| 58 | ++ if((!items) || (items->size() == 0)) |
| 59 | + return; |
| 60 | + |
| 61 | + f_outline.fs << "<ul>"; |
| 62 | + |
| 63 | +- for(int i = 0; i < items->getLength(); ++i) |
| 64 | ++ for(std::size_t i = 0; i < items->size(); ++i) |
| 65 | + { |
| 66 | +- OutlineItem * item = (OutlineItem*)(items->get(i)); |
| 67 | ++ OutlineItem * item = items->at(i); |
| 68 | + |
| 69 | + string detail; |
| 70 | + string dest = get_linkaction_str(item->getAction(), detail); |
0 commit comments