PdfMetadata constructor

PdfMetadata(
  1. PdfDocument pdfDocument,
  2. XmlDocument metadata
)

Store an Xml object

Implementation

PdfMetadata(
  PdfDocument pdfDocument,
  this.metadata,
) : super(
        pdfDocument,
        params: PdfDictStream(
          compress: false,
          encrypt: false,
        ),
      ) {
  pdfDocument.catalog.metadata = this;
}