aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qtest
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-26 23:33:06 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-27 13:50:30 +0100
commit2d1db060422eabb82aaa1764926a3f9e881116e2 (patch)
treea3915a98112e2705ad4fe92ab9587534a47bc619 /examples/qtest
parent623f5b664ece02027b550bec085fc9c6486986ff (diff)
downloadqpdf-2d1db060422eabb82aaa1764926a3f9e881116e2.tar.zst
Example of form XObject, page overlay
Diffstat (limited to 'examples/qtest')
-rw-r--r--examples/qtest/overlay-page.test28
-rw-r--r--examples/qtest/overlay-page/in.pdfbin0 -> 1840 bytes
-rw-r--r--examples/qtest/overlay-page/out.pdfbin0 -> 3361 bytes
-rw-r--r--examples/qtest/overlay-page/stamp.pdfbin0 -> 799 bytes
4 files changed, 28 insertions, 0 deletions
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
--- /dev/null
+++ b/examples/qtest/overlay-page/in.pdf
Binary files differ
diff --git a/examples/qtest/overlay-page/out.pdf b/examples/qtest/overlay-page/out.pdf
new file mode 100644
index 00000000..b589d2c4
--- /dev/null
+++ b/examples/qtest/overlay-page/out.pdf
Binary files differ
diff --git a/examples/qtest/overlay-page/stamp.pdf b/examples/qtest/overlay-page/stamp.pdf
new file mode 100644
index 00000000..a86f4344
--- /dev/null
+++ b/examples/qtest/overlay-page/stamp.pdf
Binary files differ