diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-26 23:33:06 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-27 13:50:30 +0100 |
commit | 2d1db060422eabb82aaa1764926a3f9e881116e2 (patch) | |
tree | a3915a98112e2705ad4fe92ab9587534a47bc619 /examples/qtest | |
parent | 623f5b664ece02027b550bec085fc9c6486986ff (diff) | |
download | qpdf-2d1db060422eabb82aaa1764926a3f9e881116e2.tar.zst |
Example of form XObject, page overlay
Diffstat (limited to 'examples/qtest')
-rw-r--r-- | examples/qtest/overlay-page.test | 28 | ||||
-rw-r--r-- | examples/qtest/overlay-page/in.pdf | bin | 0 -> 1840 bytes | |||
-rw-r--r-- | examples/qtest/overlay-page/out.pdf | bin | 0 -> 3361 bytes | |||
-rw-r--r-- | examples/qtest/overlay-page/stamp.pdf | bin | 0 -> 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 Binary files differnew file mode 100644 index 00000000..f94c739a --- /dev/null +++ b/examples/qtest/overlay-page/in.pdf diff --git a/examples/qtest/overlay-page/out.pdf b/examples/qtest/overlay-page/out.pdf Binary files differnew file mode 100644 index 00000000..b589d2c4 --- /dev/null +++ b/examples/qtest/overlay-page/out.pdf diff --git a/examples/qtest/overlay-page/stamp.pdf b/examples/qtest/overlay-page/stamp.pdf Binary files differnew file mode 100644 index 00000000..a86f4344 --- /dev/null +++ b/examples/qtest/overlay-page/stamp.pdf |