2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-02 19:49:43 +00:00
qpdf/examples/qtest/create.test
Jay Berkenbilt ceae9dc1cb Enhance pdf-create example
pdf-create now creates images with different color spaces and encoding
schemes and verifies them for data correctness.
2017-08-21 17:44:22 -04:00

27 lines
428 B
Perl

#!/usr/bin/env perl
require 5.008;
use warnings;
use strict;
chdir("create") or die "chdir testdir failed: $!\n";
require TestDriver;
cleanup();
my $td = new TestDriver('create');
$td->runtest("create a simple PDF",
{$td->COMMAND => "pdf-create a.pdf"},
{$td->FILE => "create.out", $td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
cleanup();
$td->report(1);
sub cleanup
{
unlink "a.pdf";
}