Skip to content

Commit

Permalink
Fix attachment PDF generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Feb 20, 2024
1 parent 23bbc44 commit 1442a91
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{$NEXT}}
- Fix attachment PDF generation

0.2.7 2023-08-21T08:07:06+12:00
- Fix annotation text placement for PDF::Content 0.6.14+
Expand Down
4 changes: 2 additions & 2 deletions lib/PDF/API6.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ class PDF::API6:ver<0.2.7>
with $io;
my PDF::COS::Stream() $F = { :%dict, :$decoded };
$F.compress if $compress;
my PDF::Filespec() $filespec ={
my PDF::Filespec() $filespec = {
:Type(/<Filespec>),
:$file-name,
:embedded-file{ :$F },
:embedded-files{ :$F },
};
%!attachments{$file-name} = $filespec;
Expand Down
Binary file modified t/annotations.pdf
Binary file not shown.
Binary file modified t/preferences.pdf
Binary file not shown.

0 comments on commit 1442a91

Please sign in to comment.