PdfInfo constructor
PdfInfo(})
Create an information object
Implementation
PdfInfo(
PdfDocument pdfDocument, {
this.title,
this.author,
this.creator,
this.subject,
this.keywords,
this.producer,
}) : super(
pdfDocument,
params: PdfDict.values({
if (author != null) '/Author': PdfString.fromString(author),
if (creator != null) '/Creator': PdfString.fromString(creator),
if (title != null) '/Title': PdfString.fromString(title),
if (subject != null) '/Subject': PdfString.fromString(subject),
if (keywords != null) '/Keywords': PdfString.fromString(keywords),
if (producer != null)
'/Producer': PdfString.fromString('$producer ($_libraryName)')
else
'/Producer': PdfString.fromString(_libraryName),
'/CreationDate': PdfString.fromDate(DateTime.now()),
}),
);