Document.load constructor

Document.load(
  1. PdfDocumentParserBase parser, {
  2. @Deprecated('Not used') PdfPageMode pageMode = PdfPageMode.none,
  3. DeflateCallback? deflate,
  4. bool compress = true,
  5. bool verbose = false,
  6. ThemeData? theme,
  7. String? title,
  8. String? author,
  9. String? creator,
  10. String? subject,
  11. String? keywords,
  12. String? producer,
})

Implementation

Document.load(
  PdfDocumentParserBase parser, {
  @Deprecated('Not used') PdfPageMode pageMode = PdfPageMode.none,
  DeflateCallback? deflate,
  bool compress = true,
  bool verbose = false,
  this.theme,
  String? title,
  String? author,
  String? creator,
  String? subject,
  String? keywords,
  String? producer,
}) : document = PdfDocument.load(
        parser,
        deflate: deflate,
        compress: compress,
        verbose: verbose,
      ) {
  if (title != null ||
      author != null ||
      creator != null ||
      subject != null ||
      keywords != null ||
      producer != null) {
    PdfInfo(
      document,
      title: title,
      author: author,
      creator: creator,
      subject: subject,
      keywords: keywords,
      producer: producer,
    );
  }
}