X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2Fpdf.cc;h=53d95cc4422ce2b46d3b8a240501c908afdfafc6;hb=70c85e8a814e75b29883fc347a65f83af370249b;hp=81f16bfb9ddb8c2b36295154fd8fdf6e3f9c8aec;hpb=d4374435d4c10e2db76801995e69062a15df0bae;p=swftools.git diff --git a/lib/pdf/pdf.cc b/lib/pdf/pdf.cc index 81f16bf..53d95cc 100644 --- a/lib/pdf/pdf.cc +++ b/lib/pdf/pdf.cc @@ -1,6 +1,7 @@ #include "../gfxdevice.h" #include "../gfxsource.h" #include "../log.h" +#include "config.h" #include "GlobalParams.h" #include "InfoOutputDev.h" #include "GFXOutputDev.h" @@ -344,6 +345,9 @@ gfxdocument_t*pdf_open(char*filename) for(t=1;t<=pdf_doc->num_pages;t++) { if(!global_page_range || is_in_range(t, global_page_range)) { i->doc->displayPage((OutputDev*)io, t, zoom, zoom, /*rotate*/0, /*usemediabox*/true, /*crop*/true, /*doLinks*/(int)1); +#if xpdfUpdateVersion >= 16 + i->doc->processLinks((OutputDev*)io, t); +#endif i->pages[t-1].xMin = io->x1; i->pages[t-1].yMin = io->y1; i->pages[t-1].xMax = io->x2;