-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon-doc.xml
34 lines (28 loc) · 1.33 KB
/
common-doc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="common-doc">
<import file="common.xml"/>
<!-- Common ant code to support building software documentation. -->
<target name="mergePDF" description="Merges multiple PDF files into one" >
<!-- depends on the following variables being set
pdf_file - the pathname of the final (merged) PDF to create, with .pdf extension
pdfsrc.dir - the folder from which filelist PDF files are located
filelist - File that contains the list and ordering of PDF input files to be merged.
The PDF files listed should not contain a leading path because the file names
are shown in the bookmarks of the final PDF.
-->
<dirname property="pdf.output.dir" file="${pdf_file}"/>
<mkdir dir="${pdf.output.dir}"/>
<exec executable="${rti.build.home}/lib/pdfmerge/PMCMD.exe" dir="${pdfsrc.dir}">
<arg value="${pdf_file}" />
<!-- List of files to merge -->
<arg value="-F${filelist}" />
<!-- Create Bookmarks -->
<arg value="-B" />
<!-- insert page numbers -->
<arg value="-NSTYLE=[0]" />
<!-- Create Table of Contents -->
<arg value="-TLEVEL=1,LEVELSIZE1=10,LEVELCOLOR1=993333,TEMPLATE=${rti.build.home}/lib/pdfmerge/Table_of_Contents.pdf,TOP=2,PAGE=3" />
<!-- Opens the document with bookmark pane visible -->
<arg value="-VOPENSHOW=bookmark" />
</exec>
</target>
</project>