[Poppler-bugs] [Bug 96884] Regression: pdf that used to work in 0.24.5 fails in 0.45.0
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 11 12:01:02 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96884
--- Comment #2 from Phillip Berndt <phillip.berndt at googlemail.com> ---
Indeed, the demo works here as well. I dug a bit deeper into this and found
that the error is in the poppler_document_new_from_stream() call of the glib
interface.
Files opened via poppler_document_new_from_file() and
poppler_document_new_from_data(), respectively, work fine.
This fails:
-----8<----------------------------
// gcc -o test test.c `pkg-config --libs --cflags glib-2.0 poppler-glib`
// to compile
#include <stdio.h>
#include <glib.h>
#include <poppler.h>
int main(int argc, char *argv[]) {
GError *error_pointer = NULL;
GFile *file = g_file_new_for_path(argv[1]);
GFileInputStream *stream = g_file_read(file, NULL, &error_pointer);
PopplerDocument *doc =
poppler_document_new_from_stream(G_INPUT_STREAM(stream), -1, NULL, NULL,
&error_pointer);
if(error_pointer) {
printf("Error: %s\n", error_pointer->message);
}
}
----->8----------------------------
--
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/20160711/9a66a269/attachment.html>
More information about the Poppler-bugs
mailing list