I need something like this (green square):
I've tried adding attributedString with an image attached to the cell, but that doesn't work. Do you have any ideas?
let attachmentImage = NSTextAttachment()
attachmentImage.image = serviceImage.image
attachmentImage.bounds = CGRect(x: 0, y: 0, width: 14, height: 14)
let attrString = NSMutableAttributedString(
string: "Text followed by an image",
attributes: [
.font: regularFont
])
attrString.append(NSAttributedString(attachment: attachmentImage))
let imageCell = table[position: PDFTableCellPosition(row: 0, column: 0)]
imageCell.content = try? PDFTableContent(content: attrString)