This topic is locked

pdf view help

9/25/2008 9:48:23 AM
PHPRunner General questions
G
garethp authorDevClub member

Hi
I have managed to get pdf view working by adding the line ini_set("memory_limit","128M"); in the include\dbcommon.php file.
So now for the first time I am creating pdf's from the view and print pages - fantastic.
So now I have a few questions if that's ok.

  1. I can see the pdf are stored in the templates_c folder and the link looks into here. Will these pdf's ever get removed from here (not sure how but worth asking) or just keep building up? Could end up quite large!
  2. Instead of being put into this templates_c folder - could they be put somewhere else and with a specific file name depening on the record being viewed? eg invoice 1234
  3. I have a master details relationship. If I print the master and create pdf all is OK. If I select only the associated details manually (so no master key) and create pdf all is OK. However, if I select the details link from the mastertable (so there is a masterkey) and then select print, on the print page the header and details are shown but when I create a pdf only the header is shown - no details are on the pdf. Any ideas?
  4. How do I now play around with the pdf template to make the pdf format better. Can this be done specifically for each page - my invoice pdf and purchase order pdf will need to have a different format. Can you delfine page breaks etc?
    Many thanks still to you all for fanstic product and support