freebsd-ports/converters/pdf2djvu/files/patch-gentoo_pdf2djvu-0.9.12-poppler-0.76-1.patch
Tobias C. Berner 753388101e graphics/poppler: update to 0.76.1
From Changelog at https://poppler.freedesktop.org/releases.html :

Release 0.76.1:
        core:
         * Make the mul tables be calculated at compile time with constexpr.
         * splash: Fix compile with SPLASH_CMYK enabled
         * Some typo fixing in error messages

        qt5:
         * Fix regression in annotation handling

        build system:
         * Fix some typos in build system output and comments

Release 0.76.0:

        core:
         * Fix regression on case-insensitive search. Issue #743
         * Remove GooList, use std::vector instead
         * Fix radiobutton reporting wrong state. Issue #159
         * Handle UTF16-LE strings
         * Don't error out if there's no DA in FreeText annotation
         * cairo: Compute correct coverage values for box filter.
         * cairo: Constrain number of cycles in rescale filter.
         * Read more fields from ViewerPreferences
         * Introduce and use Ref::INVALID
         * Fix crashes in broken files
         * Fix mismatched free/delete
         * Add missing include guards

        utils:
         * pdftohtml: Properly initialize HtmlOutputDev::page to avoid SIGSEGV upon error exit. Issue #742

All the required patches have been obtained via gentoo.

PR:		237846
Exp-run by:	antoine
Approved by:	kwm
2019-05-13 18:33:10 +00:00

36 lines
1.0 KiB
Diff

From aa3fdae51c19ad2865f92882ec9007feeb7e477a Mon Sep 17 00:00:00 2001
From: Jakub Wilk <jwilk@jwilk.net>
Date: Mon, 1 Apr 2019 08:23:51 +0200
Subject: [PATCH] Put Ref in pdf namespace.
---
pdf-backend.hh | 1 +
pdf2djvu.cc | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/pdf-backend.hh b/pdf-backend.hh
index 43899c0..d7872c3 100644
--- pdf-backend.hh
+++ pdf-backend.hh
@@ -82,6 +82,7 @@ namespace pdf
typedef ::Catalog Catalog;
typedef ::GooString String;
typedef ::Goffset Offset;
+ typedef ::Ref Ref;
/* type definitions — annotations
* ==============================
diff --git a/pdf2djvu.cc b/pdf2djvu.cc
index 669eba5..d9e1532 100644
--- pdf2djvu.cc
+++ pdf2djvu.cc
@@ -86,7 +86,7 @@ static int get_page_for_goto_link(pdf::link::GoTo *goto_link, pdf::Catalog *cata
int page;
if (dest->isPageRef())
{
- Ref pageref = dest->getPageRef();
+ pdf::Ref pageref = dest->getPageRef();
page = catalog->findPage(pageref.num, pageref.gen);
}
else