@@ -3,7 +3,7 @@ import PDFHexString from 'src/core/objects/PDFHexString';
33import PDFContext from 'src/core/PDFContext' ;
44import PDFRef from 'src/core/objects/PDFRef' ;
55
6- /**
6+ /**
77 * From the PDF-A3 specification, section **3.1. Requirements - General**.
88 * See:
99 * * https://www.pdfa.org/wp-content/uploads/2018/10/PDF20_AN002-AF.pdf
@@ -16,7 +16,7 @@ export enum AFRelationship {
1616 EncryptedPayload = 'EncryptedPayload' ,
1717 FormData = 'EncryptedPayload' ,
1818 Schema = 'Schema' ,
19- Unspecified = 'Unspecified'
19+ Unspecified = 'Unspecified' ,
2020}
2121
2222export interface EmbeddedFileOptions {
@@ -56,10 +56,9 @@ class FileEmbedder {
5656 description,
5757 creationDate,
5858 modificationDate,
59- afRelationship
59+ afRelationship,
6060 } = this . options ;
6161
62-
6362 const embeddedFileStream = context . flateStream ( this . fileData , {
6463 Type : 'EmbeddedFile' ,
6564 Subtype : mimeType ?? undefined ,
@@ -81,7 +80,7 @@ class FileEmbedder {
8180 UF : PDFHexString . fromText ( this . fileName ) ,
8281 EF : { F : embeddedFileStreamRef } ,
8382 Desc : description ? PDFHexString . fromText ( description ) : undefined ,
84- AFRelationship : afRelationship ?? undefined
83+ AFRelationship : afRelationship ?? undefined ,
8584 } ) ;
8685
8786 if ( ref ) {
0 commit comments