mikefox wrote:Matth,
I will need to replace some text in a string like this
http://www.abc.com/xx,text,yy
So you are saying I think that I could leave text blank.
However the problem is that the replacement text may vary in
size so would that make it not possible ?
Mike
Hello,
It's difficult to give an accurate answer, because it depends on the length of the string you want to write and the blank area you can put on your pdf.
Anyway, if there's a problem of size, maybe you can detect the length of the text you want to write (php function strlen()), and adapt the size of the font to write smaller if the text is too long.
But I assume you already know the max length of the text that will be written on the blank area (I mean, if the text is a user's email adress, you will encounter a problem if you let users write too long email adresses, no matter how wide the blank area is). So, then you just need to adapt the blank area and the font size to the max allowed text length.
It could be less difficult to create the whole PDF with FPDI rather than using an exsiting PDF (creating a PDF with FPDI is rather simple) ; but once again it depends on your existing PDF.
To answer your other question, it's technicaly possible, but heavy for your server as cyberlew15 said.