<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    <br>
    It may useful if somebody would like to use other filename for the
    PDF invoice. For example in Hungary better to use other word then
    Invoice. <br>
    <br>
    My suggestion is to use instead of word Invoice a string variable
    that could be set up in the settings screen or in config.inc.php.<br>
    <br>
    Here is in file: ....\modules\Invoice\CreatePDF.php<br>
    <br>
    include_once 'modules/Invoice/InvoicePDFController.php';<br>
    global $currentModule;<br>
    <br>
    $controller = new Vtiger_InvoicePDFController($currentModule);<br>
    $controller-&gt;loadRecord(vtlib_purify($_REQUEST['record']));<br>
    $invoice_no =
getModuleSequenceNumber($currentModule,vtlib_purify($_REQUEST['record']));<br>
    if(isset($_REQUEST['savemode']) &amp;&amp; $_REQUEST['savemode'] ==
    'file') {<br>
        $id = vtlib_purify($_REQUEST['record']);<br>
        $filepath='test/product/'.$id.'_<font color="#990000"><b><big>Invoice</big></b></font>_'.$invoice_no.'.pdf';<br>
        $controller-&gt;Output($filepath,'F'); //added file name to make
    it work in IE, also forces the download giving the user the option
    to save<br>
    } else {<br>
        $controller-&gt;Output('<font color="#990000"><big><b>Invoice</b></big></font>_'.$invoice_no.'.pdf',

    'D');//added file name to make it work in IE, also forces the
    download giving the user the option to save<br>
        exit();<br>
    }<br>
    <br>
    Best regards:<br>
    <div class="moz-signature">-- <br>
      <br>
      Holbok István<br>
      telefon: +3670-342-0900<br>
      e-mail: <a href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
      <br>
      <br>
      <br>
    </div>
  </body>
</html>