I need to encode magnetic stripe on ID cards, It's very simple we just need to send a string like this : ~1%123456? to the printer with a software like notepad or word... The printer will encode the track one, and write %123456? on the magstripe.
But I need to do it with TCPDF, I try all functions like MultiCell, Text, Write or writeHTMLCell but the result is it just print "~1%123456?" on the card. The printer does not encode the card.
I read somewhere that PDF create an image and send it to the printer, so the printer don't see the text to encode, just the image to print.
Any suggestions to overcome this? Can we add data header to be interpreted by the printer?