创建条码图像(用PHP?)

i've a particular question... i need to create barcode image that will be used inside a pdf (created with php). So i need to insert the image as a jpg|png|gif files inside the pdf... i can't insert a dynamic url as a source for the image.

I see (here but worldwid) there are plenty options that produce images like <img src="myfile.php?code=12354353&code128" />.... but i don't need a dynamic source, cause it will not work (already tested)... what i need is the classic, html output like <img src="myfilename.jpg|png|gif" />.

Some hints on how to start this?