mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 17:45:09 +00:00
f81152311e
This method allows parsing of the PDF objects in a content stream or array of content streams.
18 lines
355 B
Perl
18 lines
355 B
Perl
#!/usr/bin/env perl
|
|
require 5.008;
|
|
BEGIN { $^W = 1; }
|
|
use strict;
|
|
|
|
chdir("parse-content");
|
|
|
|
require TestDriver;
|
|
|
|
my $td = new TestDriver('pdf-parse-content');
|
|
|
|
$td->runtest("parse content",
|
|
{$td->COMMAND => "pdf-parse-content input.pdf 1"},
|
|
{$td->FILE => "content.out", $td->EXIT_STATUS => 0},
|
|
$td->NORMALIZE_NEWLINES);
|
|
|
|
$td->report(1);
|