summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-14 15:15:33 +0200
committerRobin Watts <robin.watts@artifex.com>2016-06-16 18:08:15 +0100
commitae0e385406e5f0b82bec97fcf8021b6690acb949 (patch)
tree16db1d6598aac791cad077c3c19e74ebacaa7d2f /platform
parentbafc03500857692703b3f7650936b13623e85bb1 (diff)
downloadmupdf-ae0e385406e5f0b82bec97fcf8021b6690acb949.tar.xz
gl: Add PDF creator and producer to info display.
Diffstat (limited to 'platform')
-rw-r--r--platform/gl/gl-main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index cc849a2f..07b8cc4e 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -943,7 +943,7 @@ static void do_info(void)
int x = canvas_x + 4 * ui.lineheight;
int y = canvas_y + 4 * ui.lineheight;
int w = canvas_w - 8 * ui.lineheight;
- int h = 7 * ui.lineheight;
+ int h = 9 * ui.lineheight;
glBegin(GL_TRIANGLE_STRIP);
{
@@ -969,6 +969,10 @@ static void do_info(void)
y = do_info_line(x, y, "Encryption", buf);
if (pdf_specifics(ctx, doc))
{
+ if (fz_lookup_metadata(ctx, doc, "info:Creator", buf, sizeof buf) > 0)
+ y = do_info_line(x, y, "PDF Creator", buf);
+ if (fz_lookup_metadata(ctx, doc, "info:Producer", buf, sizeof buf) > 0)
+ y = do_info_line(x, y, "PDF Producer", buf);
buf[0] = 0;
if (fz_has_permission(ctx, doc, FZ_PERMISSION_PRINT))
fz_strlcat(buf, "print, ", sizeof buf);