pdf-load: use gio to transform path to uri

parent 47366bf6
......@@ -111,9 +111,11 @@ prepare (GeglOperation *operation)
}
else
{
char *uri = g_strdup_printf ("file://%s", p->path); // XXX :use better API
GFile *file = g_file_new_for_path (p->path);
char *uri = g_file_get_uri (file);
p->document = poppler_document_new_from_file (uri, password, NULL);
g_free (uri);
g_object_unref (file);
}
p->page = NULL;
p->page_no = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment