Update to pdf2djvu 0.9.17.
This commit is contained in:
parent
79eb3c3cc3
commit
81c2b33c69
@ -1,10 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.38 2020/02/17 20:35:18 kili Exp $
|
||||
# $OpenBSD: Makefile,v 1.39 2020/03/10 16:14:59 juanfra Exp $
|
||||
|
||||
COMMENT = creates DjVu files from PDF files
|
||||
|
||||
V = 0.9.14
|
||||
V = 0.9.17
|
||||
DISTNAME = pdf2djvu-${V}
|
||||
REVISION = 1
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (pdf2djvu-0.9.14.tar.xz) = 8ZuDyJa8cGds1u3n+5KjNP1YMsuScYeMidpdUt5a4hc=
|
||||
SIZE (pdf2djvu-0.9.14.tar.xz) = 295436
|
||||
SHA256 (pdf2djvu-0.9.17.tar.xz) = KXahU0Tlade6amlPAC6ZcNCFntwq0bJyZpLmxGlpz8Q=
|
||||
SIZE (pdf2djvu-0.9.17.tar.xz) = 295280
|
||||
|
@ -1,42 +0,0 @@
|
||||
$OpenBSD: patch-pdf-backend_cc,v 1.5 2020/02/17 20:35:18 kili Exp $
|
||||
|
||||
Fix build with poppler-0.83.0 and -0.85.0.
|
||||
|
||||
Index: pdf-backend.cc
|
||||
--- pdf-backend.cc.orig
|
||||
+++ pdf-backend.cc
|
||||
@@ -48,7 +48,7 @@
|
||||
* ======================
|
||||
*/
|
||||
|
||||
-static void poppler_error_handler(void *data, ErrorCategory category, pdf::Offset pos, const char *message)
|
||||
+static void poppler_error_handler(ErrorCategory category, pdf::Offset pos, const char *message)
|
||||
{
|
||||
std::string format;
|
||||
const char *category_name = _("PDF error");
|
||||
@@ -103,8 +103,8 @@ static void poppler_error_handler(void *data, ErrorCat
|
||||
|
||||
pdf::Environment::Environment()
|
||||
{
|
||||
- globalParams = new GlobalParams();
|
||||
- setErrorCallback(poppler_error_handler, nullptr);
|
||||
+ globalParams = std::make_unique<GlobalParams>();
|
||||
+ setErrorCallback(poppler_error_handler);
|
||||
}
|
||||
|
||||
void pdf::Environment::set_antialias(bool value)
|
||||
@@ -499,12 +499,11 @@ bool pdf::get_glyph(splash::Splash *splash, splash::Fo
|
||||
void pdf::Renderer::convert_path(pdf::gfx::State *state, splash::Path &splash_path)
|
||||
{
|
||||
/* Source was copied from <poppler/SplashOutputDev.c>. */
|
||||
- pdf::gfx::Subpath *subpath;
|
||||
- pdf::gfx::Path *path = state->getPath();
|
||||
+ const pdf::gfx::Path *path = state->getPath();
|
||||
int n_subpaths = path->getNumSubpaths();
|
||||
for (int i = 0; i < n_subpaths; i++)
|
||||
{
|
||||
- subpath = path->getSubpath(i);
|
||||
+ const pdf::gfx::Subpath *subpath = path->getSubpath(i);
|
||||
if (subpath->getNumPoints() > 0)
|
||||
{
|
||||
double x1, y1, x2, y2, x3, y3;
|
Loading…
Reference in New Issue
Block a user