utils/pdftocairo.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit ab8616dcb637ac1aeb4d5f142c3c4bff9aecd041
Author: Adrian Johnson <[email protected]>
Date: Thu Oct 6 14:21:10 2011 +0200
close the file or flush stdout
diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc
index f86b10f..fb3ca30 100644
--- a/utils/pdftocairo.cc
+++ b/utils/pdftocairo.cc
@@ -336,6 +336,8 @@ void writePageImage(GooString *filename)
gfree(row);
writer->close();
delete writer;
+ if (file == stdout) fflush(file);
+ else fclose(file);
}
static void getCropSize(double page_w, double page_h, double *width, double
*height)
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler