[poppler] error: 'class PDFDoc' has no member named 'getPDFVersion'

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Nov 12 09:21:10 PST 2009


On Thu, Nov 12, 2009 at 6:11 PM, Dominic Lachowicz
<domlachowicz at gmail.com> wrote:
> On Thu, Nov 12, 2009 at 12:03 PM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>> On Thu, Nov 12, 2009 at 5:48 PM, Dominic Lachowicz
>> <domlachowicz at gmail.com> wrote:
>>> Just because a method is included in the "public" part of the class
>>> doesn't mean that it's part of poppler's supported, public API (i.e.
>>
>> Of course it is, this is exactly the definition. If you do not want to
>> expose it, put it in the protected section and make class friend. This
>> is basic C++.
>
> Or, alternately, one could choose not to install the headers and mark
> their use as "caveat emptor".
>
>>> I believe that the recommended way of using poppler is through either
>>> the Qt or Glib bindings.
>>
>> This has absolutely nothing to do here. This is a matter of respection
>> versioning. Apparently work is properly done at library level and
>> SONAME/SOVERSION have been updated, all I am looking for is the same
>> at API level (ie. reflect the change of ABI/API, at code level).
>
> If something is not considered to be part of the public API, then
> there's nothing to respect. What you need to respect is what the
> developers declare to be public, supported API. Which, in this case,
> are the Glib and Qt bindings.

So you are saying I need the following, to open a PDF file and get its
PDF Version :
[ref: http://packages.debian.org/sid/libpoppler-glib-dev]

    *

      dep: hurd [hurd-i386]
          The GNU Hurd
          also a virtual package provided by hurd-udeb

    *

      dep: libc0.1 (>= 2.3) [kfreebsd-amd64, kfreebsd-i386]
          GNU C Library: Shared libraries
          also a virtual package provided by libc0.1-udeb

    *

      dep: libc0.3 (>= 2.9) [hurd-i386]
          GNU C Library: Shared libraries
          also a virtual package provided by libc0.3-udeb

    *

      dep: libc6 (>= 2.2.5) [amd64]
          GNU C Library: Shared libraries
          also a virtual package provided by libc6-udeb

      dep: libc6 (>= 2.3.6-6~) [i386]

      dep: libc6 (>= 2.4) [armel, mips, mipsel, powerpc, s390]

      dep: libc6 (>= 2.5) [hppa]

      dep: libc6 (>= 2.5-5) [m68k]

      dep: libc6 (>= 2.6) [sparc]

    *

      dep: libc6.1 (>= 2.2) [ia64]
          GNU C Library: Shared libraries
          also a virtual package provided by libc6.1-udeb

      dep: libc6.1 (>= 2.4) [alpha]

    *

      dep: libcairo2 (>= 1.4) [m68k]
          The Cairo 2D vector graphics library

      dep: libcairo2 (>= 1.8.4) [not m68k]

    *

      dep: libcairo2-dev (>= 1.4) [m68k]
          Development files for the Cairo 2D graphics library

      dep: libcairo2-dev (>= 1.8.4) [not m68k]

    *

      dep: libfontconfig1 (>= 2.4.0)
          generic font configuration library - runtime

    *

      dep: libfreetype6 (>= 2.2.1)
          FreeType 2 font engine, shared library files

    *

      dep: libgcc1 (>= 1:4.1.1) [not armel, hppa, hurd-i386,
kfreebsd-amd64, kfreebsd-i386, m68k]
          GCC support library

      dep: libgcc1 (>= 1:4.4) [kfreebsd-amd64, kfreebsd-i386]

      dep: libgcc1 (>= 1:4.4.0) [armel]

      dep: libgcc1 (>= 4.2.1) [hurd-i386]

    *

      dep: libgcc2 (>= 4.2.1) [m68k]
          Package not available

    *

      dep: libgcc4 (>= 4.1.1) [hppa]
          GCC support library

    *

      dep: libglib2.0-0 (>= 2.16.0)
          The GLib library of C routines

    *

      dep: libglib2.0-dev (>= 2.12) [not m68k]
          Development files for the GLib library

      dep: libglib2.0-dev (>= 2.6) [m68k]

    *

      dep: libgtk2.0-0 (>= 2.12) [not m68k]
          The GTK+ graphical user interface library

      dep: libgtk2.0-0 (>= 2.12.0) [m68k]

    *

      dep: libjpeg62
          The Independent JPEG Group's JPEG runtime library

    *

      dep: liblcms1 (>= 1.15-1) [not m68k]
          Color management library

    *

      dep: libopenjpeg2
          JPEG 2000 image compression/decompression library

    *

      dep: libpango1.0-0 (>= 1.14.0)
          Layout and rendering of internationalized text

    *

      dep: libpango1.0-dev
          Development files for the Pango

    *

      dep: libpng12-0 (>= 1.2.13-4) [not m68k]
          PNG library - runtime

    *

      dep: libpoppler-dev (= 0.10.5-1) [m68k]
          PDF rendering library -- development files

      dep: libpoppler-dev (= 0.12.0-2) [not alpha, armel, i386,
kfreebsd-amd64, kfreebsd-i386, m68k, sparc]

      dep: libpoppler-dev (= 0.12.0-2.1) [alpha, armel, i386,
kfreebsd-amd64, kfreebsd-i386, sparc]

    *

      dep: libpoppler-glib4 (= 0.10.5-1) [m68k]
          PDF rendering library (GLib-based shared library)

      dep: libpoppler-glib4 (= 0.12.0-2) [not alpha, armel, i386,
kfreebsd-amd64, kfreebsd-i386, m68k, sparc]

      dep: libpoppler-glib4 (= 0.12.0-2.1) [alpha, armel, i386,
kfreebsd-amd64, kfreebsd-i386, sparc]

    *

      dep: libpoppler4 [m68k]
          PDF rendering library

    *

      dep: libpoppler5 [not m68k]
          PDF rendering library

    *

      dep: libstdc++6 (>= 4.1.1) [not kfreebsd-amd64, kfreebsd-i386]
          The GNU Standard C++ Library v3

      dep: libstdc++6 (>= 4.4) [kfreebsd-amd64, kfreebsd-i386]

    *

      dep: libunwind7 [ia64]
          A library to determine the call-chain of a program - runtime

    *

      dep: libxml2 (>= 2.4.30) [mips]
          GNOME XML library

      dep: libxml2 (>= 2.6.27) [not mips]

    *

      dep: zlib1g (>= 1:1.1.4)
          compression library - runtime



I did not realize how complex was the PDF format.

Sigh...
-- 
Mathieu


More information about the poppler mailing list