From 58142222ef8296ed3abed91c6582afc31e4464fd Mon Sep 17 00:00:00 2001 From: theAdib Date: Sat, 22 Jan 2011 22:34:27 +0100 Subject: [PATCH] add pdf import filter via poppler-cairo --- build.xml | 1 + src/extension/init.cpp | 4 ++-- src/extension/internal/pdf-input-cairo.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.xml b/build.xml index 407fa4ae1..2c00661fa 100755 --- a/build.xml +++ b/build.xml @@ -178,6 +178,7 @@ /* use poppler for pdf import? */ #define HAVE_POPPLER 1 + #define HAVE_POPPLER_GLIB 1 #define HAVE_POPPLER_CAIRO 1 /* do we want bitmap manipulation? */ diff --git a/src/extension/init.cpp b/src/extension/init.cpp index 8578e8c6c..230d4b50f 100644 --- a/src/extension/init.cpp +++ b/src/extension/init.cpp @@ -166,7 +166,7 @@ init() Internal::PdfInput::init(); #endif #ifdef HAVE_POPPLER_GLIB - if (0) { + if (1) { Internal::PdfInputCairo::init(); } #endif @@ -192,7 +192,7 @@ init() #ifdef WITH_DBUS Dbus::init(); #endif - + /* Raster Effects */ #ifdef WITH_IMAGE_MAGICK Internal::Bitmap::AdaptiveThreshold::init(); diff --git a/src/extension/internal/pdf-input-cairo.cpp b/src/extension/internal/pdf-input-cairo.cpp index 2c7ea3b33..6657ea222 100644 --- a/src/extension/internal/pdf-input-cairo.cpp +++ b/src/extension/internal/pdf-input-cairo.cpp @@ -87,11 +87,11 @@ PdfInputCairo::init(void) { ext = Inkscape::Extension::build_from_mem( "\n" "PDF Input\n" - "org.inkscape.input.pdf\n" + "org.inkscape.input.cairo-pdf\n" "\n" ".pdf\n" "application/pdf\n" - "Adobe PDF (*.pdf)\n" + "Adobe PDF via poppler-cairo (*.pdf)\n" "PDF Document\n" "\n" "", new PdfInputCairo()); -- 2.30.2