I'm not sure if you're going about this the right way. I am not too familiar with the capabilities of PDF. If you plan on linking in XML to a PDF, you will need Adobe's PDF creation software (expensive) and if you have it, then search the manual to see how to do this, if it is in fact possible.

My suggestion is that you should really be doing this in some other environment. QuickBooks or something like that will do just what you...