I've been researching for a past few days and could not find specific solution for my problem. I've created a program where I can set position of text with drag and drop on specific image by using Interact.js library, it is remembering positions by css transform:translate property. I've seen that there are many php and javascript libraries for converting html to pdf, but non of them is not able to use transform:translate property to set text position based on parent position inside pdf.
If anyone know how to solve positioning text with transform:translate or to give some other suggestions,I would be thankful. For now I am using TCPDF to import image backgrounds to pdf but not able to position text as I want to. I also tried FPDF, domPDF but with no luck. Thanks in advance.