PdfObjectDict constructor

PdfObjectDict(
  1. PdfDocument pdfDocument, {
  2. String? type,
  3. int objgen = 0,
  4. int? objser,
})

This is usually called by extensors to this class, and sets the Pdf Object Type

Implementation

PdfObjectDict(
  PdfDocument pdfDocument, {
  String? type,
  int objgen = 0,
  int? objser,
}) : super(pdfDocument, params: PdfDict(), objgen: objgen, objser: objser) {
  if (type != null) {
    params['/Type'] = PdfName(type);
  }
}