'How to add an Ink annotation to a pdf

I know you can do $pdf->annotation('test'); in mpdf, which works perfectly fine, but how do you add other types of annotations? one example is "/Subtype /Ink" on which The annotation() function documentation says nothing about. I also searched for fpdf solutions because i understand that mpdf is only an extension of fpdf, but found nothing.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source