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

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Nov 12 08:19:30 PST 2009


On Thu, Nov 12, 2009 at 5:15 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Thu, Nov 12, 2009 at 5:02 PM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>> Hi there,
>>
>>  I am trying to compile against libpoppler and I am getting the
>> following compiler error:
>>
>> /tmp/buildd/gdcm-2.0.14/Applications/Cxx/gdcminfo.cxx: In function
>> 'int ProcessOneFile(const std::string&, const gdcm::Defs&)':
>> /tmp/buildd/gdcm-2.0.14/Applications/Cxx/gdcminfo.cxx:480: error:
>> 'class PDFDoc' has no member named 'getPDFVersion'
>>
>>  Why has the function been removed. It seems to be me that only the
>> minor version has been changed, right ?
>
> Looks like it broke in some other place:
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529331
>
> How do I check the poppler version ? I cannot simply try-compile
> every-single function to check which one disapear during a minor
> version change.
>
> Thanks for suggestion,

The patch is really easy to apply upstream, could please consider
adding back the getPDFVersion:

  double getPDFVersion() { return getPDFMajorVersion() + 0.1 *
getPDFMinorVersion(); }

Thanks,
-- 
Mathieu


More information about the poppler mailing list