PdfXObject constructor

PdfXObject(
  1. PdfDocument pdfDocument,
  2. String? subtype, {
  3. bool isBinary = false,
})

Implementation

PdfXObject(PdfDocument pdfDocument, String? subtype, {bool isBinary = false})
    : super(pdfDocument, type: '/XObject', isBinary: isBinary) {
  if (subtype != null) {
    params['/Subtype'] = PdfName(subtype);
  }
}