Skip to content

Commit

Permalink
Fix bug in pdf_file_data() mangling xref table.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Dec 14, 2020
1 parent 1351b84 commit ba3ad25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ sub pdf_file_data {
# Add cross-reference table.
my $startxref = length($pdf_file_data);
$pdf_file_data .= sprintf "xref\n0 %d\n", scalar @{$xrefs};
$pdf_file_data .= @{$xrefs};
$pdf_file_data .= join "", @{$xrefs};

# Save correct size in trailer dictionary.
$self->{Size} = scalar @{$xrefs};
Expand Down

0 comments on commit ba3ad25

Please sign in to comment.