[Poppler-bugs] [Bug 107182] Add support for reading PDF/A, PDF/X version from the information dictionary (glib backend)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 16 10:06:39 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=107182

--- Comment #16 from Evangelos Rigas <e.rigas at cranfield.ac.uk> ---
(In reply to Albert Astals Cid from comment #15)
> You mean that 
>   std::string pdfsubver = pdfSubtypeVersion->toStr();
> doesn't work for you?
The problem was on my computer, I managed to make it work.

> Also there's a few memory leaks in the code, you never free
> pdfSubtypeVersion nor conf.
Ooops! Sorry about that. I totally forgot that the string returned from
getDocInfoStringEntry has to be freed.

I have added an extra function to check if a string entry exists in the
document's info dictionary, thus solving the issue with the returned strings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180816/fe30f4fe/attachment.html>


More information about the Poppler-bugs mailing list