New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruby-poppler test failure with poppler 0.63.0 #1159
Comments
I think that this is a poppler-glib problem. Poppler adds I think that poppler-glib computes length in Can you re-report it to poppler-glib? |
We'll be able to compute length by |
Ah, we can just use the length passed by argument: diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc
index b343eb90..504042cd 100644
--- a/glib/poppler-document.cc
+++ b/glib/poppler-document.cc
@@ -298,7 +298,7 @@ poppler_document_new_from_stream (GInputStream *stream,
}
if (stream_is_memory_buffer_or_local_file(stream)) {
- str = new PopplerInputStream(stream, cancellable, 0, gFalse, 0, Object(objNull));
+ str = new PopplerInputStream(stream, cancellable, 0, gFalse, length, Object(objNull));
} else {
CachedFile *cachedFile = new CachedFile(new PopplerCachedFileLoader(stream, cancellable, length), new GooString());
str = new CachedFileStream(cachedFile, 0, gFalse, cachedFile->getLength(), Object(objNull)); |
I've pushed workaround for now. |
Great! |
forwarded from https://bugs.debian.org/896596
The text was updated successfully, but these errors were encountered: