From 2d1db060422eabb82aaa1764926a3f9e881116e2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 26 Jan 2019 17:33:06 -0500 Subject: Example of form XObject, page overlay --- examples/qtest/overlay-page.test | 28 ++++++++++++++++++++++++++++ examples/qtest/overlay-page/in.pdf | Bin 0 -> 1840 bytes examples/qtest/overlay-page/out.pdf | Bin 0 -> 3361 bytes examples/qtest/overlay-page/stamp.pdf | Bin 0 -> 799 bytes 4 files changed, 28 insertions(+) create mode 100644 examples/qtest/overlay-page.test create mode 100644 examples/qtest/overlay-page/in.pdf create mode 100644 examples/qtest/overlay-page/out.pdf create mode 100644 examples/qtest/overlay-page/stamp.pdf (limited to 'examples/qtest') diff --git a/examples/qtest/overlay-page.test b/examples/qtest/overlay-page.test new file mode 100644 index 00000000..68e695d3 --- /dev/null +++ b/examples/qtest/overlay-page.test @@ -0,0 +1,28 @@ +#!/usr/bin/env perl +require 5.008; +use warnings; +use strict; + +chdir("overlay-page"); + +require TestDriver; + +my $td = new TestDriver('overlay-page'); + +cleanup(); + +$td->runtest("overlay-page", + {$td->COMMAND => "pdf-overlay-page in.pdf stamp.pdf a.pdf"}, + {$td->STRING => "", $td->EXIT_STATUS => 0}); +$td->runtest("compare files", + {$td->FILE => "a.pdf"}, + {$td->FILE => "out.pdf"}); + +cleanup(); + +$td->report(2); + +sub cleanup +{ + unlink("a.pdf"); +} diff --git a/examples/qtest/overlay-page/in.pdf b/examples/qtest/overlay-page/in.pdf new file mode 100644 index 00000000..f94c739a Binary files /dev/null and b/examples/qtest/overlay-page/in.pdf differ diff --git a/examples/qtest/overlay-page/out.pdf b/examples/qtest/overlay-page/out.pdf new file mode 100644 index 00000000..b589d2c4 Binary files /dev/null and b/examples/qtest/overlay-page/out.pdf differ diff --git a/examples/qtest/overlay-page/stamp.pdf b/examples/qtest/overlay-page/stamp.pdf new file mode 100644 index 00000000..a86f4344 Binary files /dev/null and b/examples/qtest/overlay-page/stamp.pdf differ -- cgit v1.2.3-70-g09d2