All APSIM training documention is kept on this website with one page per module. All updates will be done to these pages with the intent of having no printable external documents to keep updated in parallel. The purpose of this document is to describe a method for automating the process of collating these web documents into a .PDF that is ready for printing.
A small console based application has been built to automate the task of preparing the manual for download then processing into a single .PDF for printing. Note that this tool is not designed for general use outside of APSIM developers and as such is not user friendly. Having said that, if all your after is the General Training Manual in a .PDF format, you should be able to run the tool without modifications.
The tool consists of a precompiled Visual Studio project along with three external programs. To use the tool, extract all files to a folder of your choice, install the three applications and run the file DocumentBuilder\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe. Note the tool expects the external programs to be in their default locations. A 64-bit version of Windows is required. This will download the required files, remove headers and footers and create a collated .PDF. Note the created file does not include a table of contents or page numbers and the page breaks may not be in the most appropriate places. The output file can be imported into a PDF editor such as Adobe Acrobat for further editing if required.
The final file will be placed on the desktop and is called Doc.pdf.
Adding Page Breaks
Page breaks can be forced in the document generation process by including the following line in web content:
<div style="page-break-after: always;"></div>
The tool can be downloaded here: DocBuilder.zip