2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-02 10:20:52 +00:00
qpdf/qpdf/qtest/qpdf/filter-xref-offsets.pl
Jay Berkenbilt 7e679ab8b6 Avoid depending on exact xref stream offsets
For the modified test case, we care about successful recovery, not
about the exact offsets. Add a filter to remove the specific numbers
from show-xref.
2023-12-20 15:46:20 -05:00

9 lines
97 B
Perl

use warnings;
use strict;
while (<>)
{
s/(uncompressed; offset =) \d+/$1 .../;
print;
}