...
 
Commits (220)
This diff is collapsed.
Source: poppler
Section: devel
Priority: optional
Maintainer: Loic Minier <lool@dooz.org>
Maintainer: Debian freedesktop.org maintainers <pkg-freedesktop-maintainers@lists.alioth.debian.org>
Uploaders: Josselin Mouette <joss@debian.org>,
Dave Beckett <dajobe@debian.org>,
Ross Burton <ross@debian.org>,
Pino Toscano <pino@debian.org>
Build-Depends: debhelper (>= 9),
Loic Minier <lool@dooz.org>,
Pino Toscano <pino@debian.org>,
Emilio Pozuelo Monfort <pochu@debian.org>,
Build-Depends: debhelper (>= 11),
dpkg (>= 1.16.1),
autotools-dev,
libglib2.0-dev (>= 2.18),
libgtk2.0-dev (>= 2.12),
cmake,
libglib2.0-dev (>= 2.41),
libfontconfig1-dev,
libqt4-dev (>= 4.4.0),
libcairo2-dev (>= 1.10.0),
libopenjpeg-dev,
libopenjp2-7-dev,
libjpeg-dev,
libpng-dev,
libtiff-dev,
......@@ -22,17 +20,19 @@ Build-Depends: debhelper (>= 9),
libfreetype6-dev,
gtk-doc-tools (>= 1.14),
pkg-config (>= 0.18),
libgirepository1.0-dev (>= 1.31.0-2~),
gobject-introspection (>= 1.31.0-2~),
libgirepository1.0-dev (>= 1.42.0-2~),
gobject-introspection (>= 1.42.0-2~),
qtbase5-dev,
libglib2.0-doc,
libcairo2-doc
Standards-Version: 3.9.5
zlib1g-dev,
libnss3-dev,
Build-Depends-Indep: libglib2.0-doc,
libcairo2-doc
Standards-Version: 4.1.2
Homepage: http://poppler.freedesktop.org/
Vcs-Git: git://anonscm.debian.org/pkg-freedesktop/poppler.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-freedesktop/poppler.git
Vcs-Git: https://salsa.debian.org/freedesktop-team/poppler.git
Vcs-Browser: https://salsa.debian.org/freedesktop-team/poppler
Package: libpoppler46
Package: libpoppler82
Architecture: any
Section: libs
Multi-Arch: same
......@@ -48,7 +48,8 @@ Description: PDF rendering library
Package: libpoppler-dev
Architecture: any
Section: libdevel
Depends: libpoppler46 (= ${binary:Version}),
Multi-Arch: same
Depends: libpoppler82 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: PDF rendering library -- development files
......@@ -60,11 +61,10 @@ Description: PDF rendering library -- development files
Package: libpoppler-private-dev
Architecture: any
Section: libdevel
Multi-Arch: same
Depends: libpoppler-dev (= ${binary:Version}),
${misc:Depends}
Suggests: libfreetype6-dev,
Breaks: libpoppler-dev (<< 0.20.2)
Replaces: libpoppler-dev (<< 0.20.2)
Description: PDF rendering library -- private development files
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
......@@ -76,7 +76,8 @@ Architecture: any
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
Depends: libpoppler82 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: PDF rendering library (GLib-based shared library)
Poppler is a PDF rendering library based on Xpdf PDF viewer.
......@@ -90,7 +91,7 @@ Section: libdevel
Depends: libpoppler-glib8 (= ${binary:Version}),
libpoppler-dev (= ${binary:Version}),
gir1.2-poppler-0.18 (= ${binary:Version}),
libglib2.0-dev (>= 2.18),
libglib2.0-dev (>= 2.41),
libcairo2-dev (>= 1.10.0),
${shlibs:Depends},
${misc:Depends}
......@@ -104,11 +105,9 @@ Description: PDF rendering library -- development files (GLib interface)
Package: libpoppler-glib-doc
Architecture: all
Section: doc
Depends: libglib2.0-doc,
libcairo2-doc,
${misc:Depends}
Breaks: libpoppler-glib-dev (<< 0.22.5)
Replaces: libpoppler-glib-dev (<< 0.22.5)
Depends: ${misc:Depends}
Recommends: libglib2.0-doc,
libcairo2-doc,
Description: PDF rendering library -- documentation for the GLib interface
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
......@@ -118,6 +117,7 @@ Description: PDF rendering library -- documentation for the GLib interface
Package: gir1.2-poppler-0.18
Architecture: any
Section: introspection
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends},
${gir:Depends}
......@@ -129,39 +129,13 @@ Description: GObject introspection data for poppler-glib
It can be used by packages using the GIRepository format to generate
dynamic bindings.
Package: libpoppler-qt4-4
Architecture: any
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
${misc:Depends}
Description: PDF rendering library (Qt 4 based shared library)
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
This package provides the Qt 4 based shared library for applications
using the Qt 4 interface to Poppler.
Package: libpoppler-qt4-dev
Architecture: any
Section: libdevel
Depends: libpoppler-qt4-4 (= ${binary:Version}),
libpoppler-dev (= ${binary:Version}),
libqt4-dev (>= 4.4.0),
${shlibs:Depends},
${misc:Depends}
Description: PDF rendering library -- development files (Qt 4 interface)
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
This package contains the headers and development libraries needed to
build applications using the Qt 4-based Poppler interface.
Package: libpoppler-qt5-1
Architecture: any
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
Depends: libpoppler82 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Description: PDF rendering library (Qt 5 based shared library)
Poppler is a PDF rendering library based on Xpdf PDF viewer.
......@@ -172,6 +146,7 @@ Description: PDF rendering library (Qt 5 based shared library)
Package: libpoppler-qt5-dev
Architecture: any
Section: libdevel
Multi-Arch: same
Depends: libpoppler-qt5-1 (= ${binary:Version}),
libpoppler-dev (= ${binary:Version}),
qtbase5-dev,
......@@ -183,13 +158,16 @@ Description: PDF rendering library -- development files (Qt 5 interface)
This package contains the headers and development libraries needed to
build applications using the Qt 5-based Poppler interface.
Package: libpoppler-cpp0
Package: libpoppler-cpp0v5
Architecture: any
Section: libs
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends},
Depends: libpoppler82 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Conflicts: libpoppler-cpp0
Replaces: libpoppler-cpp0
Description: PDF rendering library (CPP shared library)
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
......@@ -199,7 +177,8 @@ Description: PDF rendering library (CPP shared library)
Package: libpoppler-cpp-dev
Architecture: any
Section: libdevel
Depends: libpoppler-cpp0 (= ${binary:Version}),
Multi-Arch: same
Depends: libpoppler-cpp0v5 (= ${binary:Version}),
libpoppler-dev (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
......@@ -213,9 +192,13 @@ Package: poppler-utils
Architecture: any
Section: utils
Multi-Arch: foreign
Depends: ${shlibs:Depends},
Depends: libpoppler82 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends}
Breaks: xpdf-utils (<< 3.02-2~)
# should really be just the following:
#Breaks: xpdf-utils (<< 3.02-2~)
# ... but because of #774949 (remove after Stretch/9.0) instead is:
Breaks: xpdf-utils (<< 1:0), xpdf-common
Conflicts: pdftohtml
Replaces: xpdf-utils (<< 3.02-2~),
pdftohtml,
......@@ -233,23 +216,10 @@ Description: PDF utilities (based on Poppler)
* pdfimages -- image extractor
* pdfinfo -- document information
* pdfseparate -- page extraction tool
* pdfsig -- verifies digital signatures
* pdftocairo -- PDF to PNG/JPEG/PDF/PS/EPS/SVG converter using Cairo
* pdftohtml -- PDF to HTML converter
* pdftoppm -- PDF to PPM/PNG/JPEG image converter
* pdftops -- PDF to PostScript (PS) converter
* pdftotext -- text extraction
* pdfunite -- document merging tool
Package: poppler-dbg
Architecture: any
Section: debug
Priority: extra
Multi-Arch: same
Depends: ${misc:Depends},
libpoppler46 (= ${binary:Version})
Description: PDF rendering library -- debugging symbols
Poppler is a PDF rendering library based on Xpdf PDF viewer.
.
This package contains the debugging symbols for all the Poppler libraries
and the utilities.
This diff is collapsed.
[DEFAULT]
debian-branch = master
pristine-tar = false
usr/lib/*/girepository-1.0/Poppler-0.18.typelib usr/lib/girepository-1.0/
usr/lib/*/girepository-1.0/Poppler-0.18.typelib
usr/include/poppler/cpp
usr/lib/*/libpoppler-cpp.a
usr/lib/*/libpoppler-cpp.so
usr/lib/*/pkgconfig/poppler-cpp.pc
usr/lib/*/libpoppler.a
usr/lib/*/libpoppler.so
usr/lib/*/pkgconfig/poppler.pc
usr/lib/*/pkgconfig/poppler-splash.pc
......
usr/include/poppler/glib/
usr/lib/*/libpoppler-glib.a
usr/lib/*/libpoppler-glib.so
usr/lib/*/pkgconfig/poppler-glib.pc
usr/share/gir-1.0/Poppler-0.18.gir
......@@ -55,6 +55,7 @@ libpoppler-glib.so.8 libpoppler-glib8 #MINVER#
poppler_annot_markup_set_opacity@Base 0.18.0
poppler_annot_markup_set_popup@Base 0.18.0
poppler_annot_markup_set_popup_is_open@Base 0.18.0
poppler_annot_markup_set_popup_rectangle@Base 0.34.0
poppler_annot_movie_get_movie@Base 0.18.0
poppler_annot_movie_get_title@Base 0.18.0
poppler_annot_movie_get_type@Base 0.18.0
......@@ -113,6 +114,10 @@ libpoppler-glib.so.8 libpoppler-glib8 #MINVER#
poppler_document_get_page_by_label@Base 0.18.0
poppler_document_get_page_layout@Base 0.18.0
poppler_document_get_page_mode@Base 0.18.0
poppler_document_get_pdf_conformance@Base 0.71.0
poppler_document_get_pdf_part@Base 0.71.0
poppler_document_get_pdf_subtype@Base 0.71.0
poppler_document_get_pdf_subtype_string@Base 0.71.0
poppler_document_get_pdf_version@Base 0.18.0
poppler_document_get_pdf_version_string@Base 0.18.0
poppler_document_get_permissions@Base 0.18.0
......@@ -128,6 +133,14 @@ libpoppler-glib.so.8 libpoppler-glib8 #MINVER#
poppler_document_new_from_stream@Base 0.22.1
poppler_document_save@Base 0.18.0
poppler_document_save_a_copy@Base 0.18.0
poppler_document_set_author@Base 0.46.0
poppler_document_set_creation_date@Base 0.46.0
poppler_document_set_creator@Base 0.46.0
poppler_document_set_keywords@Base 0.46.0
poppler_document_set_modification_date@Base 0.46.0
poppler_document_set_producer@Base 0.46.0
poppler_document_set_subject@Base 0.46.0
poppler_document_set_title@Base 0.46.0
poppler_error_get_type@Base 0.18.0
poppler_error_quark@Base 0.18.0
poppler_find_flags_get_type@Base 0.22.1
......@@ -229,10 +242,11 @@ libpoppler-glib.so.8 libpoppler-glib8 #MINVER#
poppler_media_save@Base 0.18.0
poppler_media_save_to_callback@Base 0.18.0
poppler_movie_get_filename@Base 0.18.0
poppler_movie_get_play_mode@Base 0.57.0
poppler_movie_get_type@Base 0.18.0
poppler_movie_need_poster@Base 0.18.0
poppler_movie_play_mode_get_type@Base 0.57.0
poppler_movie_show_controls@Base 0.18.0
poppler_orientation_get_type@Base 0.18.0
poppler_page_add_annot@Base 0.18.0
poppler_page_find_text@Base 0.18.0
poppler_page_find_text_with_options@Base 0.22.1
......@@ -280,6 +294,9 @@ libpoppler-glib.so.8 libpoppler-glib8 #MINVER#
poppler_page_transition_get_type@Base 0.18.0
poppler_page_transition_new@Base 0.18.0
poppler_page_transition_type_get_type@Base 0.18.0
poppler_pdf_conformance_get_type@Base 0.71.0
poppler_pdf_part_get_type@Base 0.71.0
poppler_pdf_subtype_get_type@Base 0.71.0
poppler_permissions_get_type@Base 0.18.0
poppler_point_copy@Base 0.26.0
poppler_point_free@Base 0.26.0
......
usr/lib/*/libpoppler-qt4.so.4*
This diff is collapsed.
usr/include/poppler/qt4
usr/lib/*/libpoppler-qt4.a
usr/lib/*/libpoppler-qt4.so
usr/lib/*/pkgconfig/poppler-qt4.pc
This diff is collapsed.
usr/include/poppler/qt5
usr/lib/*/libpoppler-qt5.a
usr/lib/*/libpoppler-qt5.so
usr/lib/*/pkgconfig/poppler-qt5.pc
usr/lib/*/libpoppler.so.46*
......@@ -2,4 +2,3 @@ AUTHORS
NEWS
README
README-XPDF
TODO
usr/lib/*/libpoppler.so.*
From: Simon McVittie <smcv@debian.org>
Date: Thu, 14 Feb 2019 09:43:32 +0000
Subject: glib: Don't create PopplerInputStream with length 0
Since commit a59f6164, PopplerInputStream requires a nonzero length.
Loosely based on an earlier patch by Kouhei Sutou. This version adds
support for length == -1, which is documented to work.
Bug: https://gitlab.freedesktop.org/poppler/poppler/issues/414
Bug-Debian: https://bugs.debian.org/896596
Forwarded: https://gitlab.freedesktop.org/poppler/poppler/merge_requests/189
---
glib/poppler-document.cc | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index ed37da4c..e04c8b42 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -309,7 +309,14 @@ poppler_document_new_from_stream (GInputStream *stream,
}
if (stream_is_memory_buffer_or_local_file(stream)) {
- str = new PopplerInputStream(stream, cancellable, 0, false, 0, Object(objNull));
+ if (length == (goffset)-1) {
+ if (!g_seekable_seek(G_SEEKABLE(stream), 0, G_SEEK_END, cancellable, error)) {
+ g_prefix_error(error, "Unable to determine length of stream: ");
+ return nullptr;
+ }
+ length = g_seekable_tell(G_SEEKABLE(stream));
+ }
+ str = new PopplerInputStream(stream, cancellable, 0, false, length, Object(objNull));
} else {
CachedFile *cachedFile = new CachedFile(new PopplerCachedFileLoader(stream, cancellable, length), new GooString());
str = new CachedFileStream(cachedFile, 0, false, cachedFile->getLength(), Object(objNull));
Bug-Debian: http://bugs.debian.org/347650
Last-Update: 2012-02-12
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -5800,6 +5800,11 @@ func_mode_link ()
arg=$func_stripname_result
;;
+ -Wl,--as-needed|-Wl,--no-as-needed)
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
-Wl,*)
func_stripname '-Wl,' '' "$arg"
args=$func_stripname_result
@@ -6163,6 +6168,15 @@ func_mode_link ()
lib=
found=no
case $deplib in
+ -Wl,--as-needed|-Wl,--no-as-needed)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ fi
+ continue
+ ;;
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
|-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
if test "$linkmode,$pass" = "prog,link"; then
From a4fad73c86a2eabe004e7cbaa8c9c0ff42146375 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Thu, 6 Dec 2018 18:27:04 +0100
Subject: [PATCH] cpp: Fix page::text_list encoding issue
Text from TextoutputDev always comes in UTF-8
Well it comes in GlobalParams::textEncoding but that is UTF-8 and we
don't let people change it
---
cpp/poppler-page.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/poppler-page.cpp b/cpp/poppler-page.cpp
index 9d9526cc..c4955471 100644
--- a/cpp/poppler-page.cpp
+++ b/cpp/poppler-page.cpp
@@ -365,7 +365,7 @@ std::vector<text_box> page::text_list() const
TextWord *word = word_list->get(i);
std::unique_ptr<GooString> gooWord{word->getText()};
- ustring ustr = detail::unicode_GooString_to_ustring(gooWord.get());
+ ustring ustr = ustring::from_utf8(gooWord->getCString());
double xMin, yMin, xMax, yMax;
word->getBBox(&xMin, &yMin, &xMax, &yMax);
--
2.18.1
Author: Pino Toscano <pino@debian.org>
Description: Hidden visibility for poppler-qt4 and poppler-qt5
Enables the hidden visibility for poppler-qt4 and poppler-qt5, hiding all the
non-exported symbols.
.
The CXXFLAGS additions need to be added with proper configure check.
Forwarded: no
Last-Update: 2014-03-27
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103827
--- a/qt4/src/Makefile.am
+++ b/qt4/src/Makefile.am
@@ -56,6 +56,7 @@ libpoppler_qt4_la_SOURCES = \
ArthurOutputDev.cc
libpoppler_qt4_la_CXXFLAGS = \
+ -fvisibility=hidden -fvisibility-inlines-hidden \
-Dpoppler_qt4_EXPORTS
libpoppler_qt4_la_LIBADD = \
--- a/qt4/src/Makefile.in
+++ b/qt4/src/Makefile.in
@@ -502,6 +502,7 @@ libpoppler_qt4_la_SOURCES = \
ArthurOutputDev.cc
libpoppler_qt4_la_CXXFLAGS = \
+ -fvisibility=hidden -fvisibility-inlines-hidden \
-Dpoppler_qt4_EXPORTS
libpoppler_qt4_la_LIBADD = \
--- a/qt5/src/Makefile.am
+++ b/qt5/src/Makefile.am
@@ -56,6 +56,7 @@ libpoppler_qt5_la_SOURCES = \
ArthurOutputDev.cc
libpoppler_qt5_la_CXXFLAGS = \
+ -fvisibility=hidden -fvisibility-inlines-hidden \
-Dpoppler_qt5_EXPORTS -fPIC
libpoppler_qt5_la_LIBADD = \
--- a/qt5/src/Makefile.in
+++ b/qt5/src/Makefile.in
@@ -502,6 +502,7 @@ libpoppler_qt5_la_SOURCES = \
ArthurOutputDev.cc
libpoppler_qt5_la_CXXFLAGS = \
+ -fvisibility=hidden -fvisibility-inlines-hidden \
-Dpoppler_qt5_EXPORTS -fPIC
libpoppler_qt5_la_LIBADD = \
diff --git a/qt5/src/CMakeLists.txt b/qt5/src/CMakeLists.txt
index 113140a3..e38ac1b3 100644
--- a/qt5/src/CMakeLists.txt
+++ b/qt5/src/CMakeLists.txt
@@ -1,5 +1,6 @@
add_definitions(${QT5_DEFINITIONS})
add_definitions(${Qt5Core_DEFINITIONS})
+add_definitions(-fvisibility=hidden -fvisibility-inlines-hidden -Dpoppler_qt5_EXPORTS)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
ltmain-as-needed.diff
qt-visibility.diff
glib-Don-t-create-PopplerInputStream-with-length-0.patch
page-ustring.patch
#qt-visibility.diff
# temporary for upgrades to buster -- see #774949
poppler-utils: breaks-without-version xpdf-common
......@@ -6,16 +6,11 @@ UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut
SYMBOLS_in := $(wildcard debian/*.symbols.in)
SYMBOLS_generated := $(patsubst %.in,%,$(SYMBOLS_in))
# use qt4's moc as the default moc is qt3's when both are installed
PATH := /usr/share/qt4/bin:$(PATH)
export PATH
libpopplerN := $(shell sed -rn 's/^Package:[[:space:]]*(libpoppler[0-9]+)[[:space:]]*$$/\1/p' debian/control)
# avoid overlinking and reduce library dependencies
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
# make the build verbose
export V=1
# enable all the hardening options
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
......@@ -24,50 +19,43 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# disable gtk stuff to minimize Build-Depends
CONFIGURE_ARGS := \
--enable-libjpeg \
--enable-libpng \
--enable-libtiff \
--enable-splash-output \
--enable-cairo-output \
--enable-poppler-glib \
--enable-poppler-qt4 \
--enable-poppler-qt5 \
--enable-poppler-cpp \
--enable-gtk-doc \
--enable-xpdf-headers \
--enable-introspection=yes \
--enable-cms=lcms2 \
--disable-gtk-test
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE="$(CFLAGS)" \
-DCMAKE_CXX_FLAGS_RELEASE="$(CXXFLAGS)" \
-DCMAKE_INSTALL_LIBDIR="lib/$(DEB_HOST_MULTIARCH)" \
-DENABLE_GLIB=ON \
-DENABLE_QT5=ON \
-DENABLE_CPP=ON \
-DENABLE_GTK_DOC=ON \
-DENABLE_XPDF_HEADERS=ON \
-DENABLE_CMS=lcms2 \
-DENABLE_LIBOPENJPEG=openjpeg2 \
-DBUILD_GTK_TESTS=OFF
%:
dh $@ --parallel --with gir,autotools_dev
dh $@ --with gir
override_dh_auto_clean:
dh_auto_clean
rm -f glib/reference/html/*
rm -f $(SYMBOLS_generated)
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_ARGS)
override_dh_auto_install:
dh_auto_install
# remove libtool .la files
rm -f -v $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
override_dh_install:
dh_install --list-missing
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs -plibpoppler46
dh_installchangelogs -p$(libpopplerN)
dh_installchangelogs --remaining-packages -XChangeLog
override_dh_strip:
dh_strip --dbg-package=poppler-dbg
override_dh_makeshlibs: $(SYMBOLS_generated)
dh_makeshlibs -plibpoppler46 -V
dh_makeshlibs -plibpoppler-cpp0 -V"libpoppler-cpp0 (>= 0.16)"
dh_makeshlibs -p$(libpopplerN) -V
dh_makeshlibs -plibpoppler-cpp0v5 -V"libpoppler-cpp0v5 (>= 0.46.0)"
dh_makeshlibs --remaining-packages
debian/%.symbols: debian/%.symbols.in
......
Tests: cpp
Depends: build-essential, pkg-config, libpoppler-cpp-dev, cups-filters
Tests: glib
Depends: build-essential, pkg-config, libpoppler-glib-dev, cups-filters
Tests: qt5
Depends: build-essential, pkg-config, libpoppler-qt5-dev, cups-filters
#!/bin/sh
set -e
SRCDIR=$(dirname $(realpath $0))
cd $ADTTMP
g++ -Wall -Werror -pedantic -Wno-long-long -o poppler-cpp-test $SRCDIR/test-cpp.cpp `pkg-config --cflags --libs poppler-cpp`
./poppler-cpp-test "/usr/share/cups/data/default-testpage.pdf"
#!/bin/sh
set -e
SRCDIR=$(dirname $(realpath $0))
cd $ADTTMP
gcc -Wall -Werror -std=c99 -o poppler-glib-test $SRCDIR/test-glib.c `pkg-config --cflags --libs poppler-glib`
./poppler-glib-test "file:///usr/share/cups/data/default-testpage.pdf"
gcc -Wall -Werror -std=c99 -o poppler-glib-test $SRCDIR/test-glib.c -DTEST_GIO `pkg-config --cflags --libs poppler-glib gio-2.0`
./poppler-glib-test "file:///usr/share/cups/data/default-testpage.pdf"
#!/bin/sh
set -e
SRCDIR=$(dirname $(realpath $0))
cd $ADTTMP
g++ -Wall -Werror -pedantic -Wno-long-long -fPIC -std=c++11 -o poppler-qt5-test $SRCDIR/test-qt5.cpp `pkg-config --cflags --libs poppler-qt5 Qt5Core`
./poppler-qt5-test "/usr/share/cups/data/default-testpage.pdf"
#include <poppler-document.h>
#include <assert.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2)
return EXIT_FAILURE;
poppler::document* doc = poppler::document::load_from_file(argv[1]);
assert(doc);
assert(!doc->is_locked());
int n_pages = doc->pages();
assert(n_pages > 0);
delete doc;
return EXIT_SUCCESS;
}
#include <poppler.h>
#include <stdlib.h>
#ifdef TEST_GIO
#include <gio/gio.h>
#endif
int main(int argc, char *argv[])
{
PopplerDocument* doc;
int n_pages;
#ifdef TEST_GIO
GError *error = NULL;
GFile *file;
GFileInfo *info;
GInputStream *istream;
#endif
if (argc < 2)
return EXIT_FAILURE;
#if !defined(GLIB_VERSION_2_36)
g_type_init();
#endif
doc = poppler_document_new_from_file(argv[1], NULL, NULL);
g_assert(doc != NULL);
n_pages = poppler_document_get_n_pages(doc);
g_assert_cmpint(n_pages, > , 0);
g_object_unref(doc);
#ifdef TEST_GIO
/* https://bugs.debian.org/896596 */
file = g_file_new_for_uri(argv[1]);
g_assert_nonnull(file);
info = g_file_query_info(file, G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, &error);
g_assert_no_error(error);
g_assert_nonnull(info);
g_assert_cmpint(g_file_info_get_size(info), > , 0);
istream = G_INPUT_STREAM(g_file_read(file, NULL, &error));
g_assert_no_error(error);
g_assert_nonnull(istream);
doc = poppler_document_new_from_stream(istream, -1, NULL, NULL, &error);
g_assert_no_error(error);
g_assert_nonnull(doc);
g_assert_cmpint(poppler_document_get_n_pages(doc), == , n_pages);
g_object_unref(doc);
g_object_unref(istream);
istream = G_INPUT_STREAM(g_file_read(file, NULL, &error));
g_assert_no_error(error);
g_assert_nonnull(istream);
doc = poppler_document_new_from_stream(istream, g_file_info_get_size(info), NULL, NULL, &error);
g_assert_no_error(error);
g_assert_nonnull(doc);
g_assert_cmpint(poppler_document_get_n_pages(doc), == , n_pages);
g_object_unref(doc);
g_object_unref(istream);
g_object_unref(info);
g_object_unref(file);
#endif
return EXIT_SUCCESS;
}
#include <poppler-qt5.h>
#include <QtCore/QFile>
#include <stdlib.h>
int main(int argc, char *argv[])
{
if (argc < 2)
return EXIT_FAILURE;
Poppler::Document* doc = Poppler::Document::load(QFile::decodeName(argv[1]));
Q_ASSERT(doc);
Q_ASSERT(!doc->isLocked());
int n_pages = doc->numPages();
Q_ASSERT(n_pages > 0);
delete doc;
return EXIT_SUCCESS;
}
Name: poppler
Homepage: http://poppler.freedesktop.org/
Bug-Database: https://bugs.freedesktop.org/buglist.cgi?bug_status=__open__&content=&product=poppler&query_format=specific&order=bug_id%20DESC&query_based_on=
Bug-Submit: https://bugs.freedesktop.org/enter_bug.cgi?product=poppler
Repository: git://git.freedesktop.org/git/poppler/poppler
Repository-Browse: http://cgit.freedesktop.org/poppler/poppler
version=3
http://poppler.freedesktop.org/ poppler-([0-9.]*)\.tar\.(?:gz|xz) debian uupdate
http://poppler.freedesktop.org/ poppler-([0-9.]*)\.tar\.(?:gz|xz)