Customize a Billing Document (PDF)
- Copy /usr/local/billmax/cfg/xsltfiles/fo/documents.xsl locally. Make local edits.
- Copy /usr/local/billmax/cfg/xsltfiles/fop.conf locally. Edit file and change the strings file:cfg to file:/usr/local/billmax/cfg.
- Run the commands "xsltproc -o xmlfile.fo documents.xsl xmlfile; /usr/local/fop/fop -c fop.conf -q -fo xmlfile.fo -pdf xmlfile.pdf" where xmlfile is the input XML file copied from /usr/local/billmax/documents.
- View the resulting PDF document (assuming no errors).
-
When satisfied with PDF, do one of the following:
- copy edited documents.xsl to /usr/local/billmax/cfg/xsltfiles/fo/documents.xsl.
- implement a new documentclass
- Copy edited documents.xsl to /usr/local/billmax/cfg/xsltfiles/fo/newnamedocuments.xsl.
- Add newname to the BillMax List documentclass.
- For each Account Profile that will use the new documentclass, set the Document Class tonewname.
-
Warning: PDF files are stored for performance reasons. When testing a new XSL file, you must either have pending transactions and be generating trial documents, or be changing some data like due date in a posted document to see the results of the new XSL file. Changing the document class will also generate a new HTML and PDF.Test PDF generation from interface.