Code: Select all
protected override PrintJobHandlerResult OnProcess(IPrintJob printJob) { ... }
DocReportId - it used to be
Code: Select all
IPrintJobItem.Properties["DocReportId”]
Code: Select all
((IOrder)IPrintJob.Properties["Order"]).Number
I was able to find DocReportId. It’s IDocument.ID now.
I expected to get a PDF document from IPrintJob.Properties["Context"] as Order -> Order.Data -> byte[]
But it appeared to be something else. I couldn’t build a PDF document using that array of bytes.
How to get access to a PDF document in Cameron in order to apply some changes to it?