You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-users@maven.apache.org by Dmitri Pissarenko <dm...@gmail.com> on 2008/09/29 14:43:18 UTC

Generating a PDF from an APT file

Hello!

I want to create a PDF document from an APT (almost plain text) file.

I want the PDF document to have a title page. However, the resulting
PDF document doesn't have any title page, it begins straight with the
chapter/sections.

My POM looks like this:

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>at.swDev</groupId>
  <artifactId>marketingDb</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>marketingDb</name>
  <url>http://www.xing.com/profile/Dmitri_Pissarenko</url>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>	
        <version>2.0-beta-7</version>
      </plugin>
<!-- START SNIPPET: configuration -->
      <plugin>
        <groupId>org.apache.maven.doxia</groupId>
        <artifactId>doxia-maven-plugin</artifactId>
        <version>1.0-alpha-10</version>
        <executions>
          <execution>
            <phase>pre-site</phase>
            <goals>
              <goal>render-books</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <books>
            <book>
              <directory>src/doc/maintenance-manual</directory>
              <descriptor>src/doc/maintenance-manual.xml</descriptor>
              <formats>
                <format>
                  <id>pdf</id>
                </format>
              </formats>
            </book>
          </books>	
        </configuration>
      </plugin>
    </plugins>
  </build>

	
	
	
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

The book descriptor is as shown below.

<book>
  <id>maintenance-manual</id>
  <title>Marketing-DB Maintenance Manual</title>
  <author>Dmitri Pissarenko</author>
  <date>29.09.2008</date>
  <chapters>
    <chapter>
      <id>how-tos</id>
      <title>How-tos</title>
      <sections>
      	<section>
	    <id>section1</id>
	</section>
      </sections>
    </chapter>
  </chapters>
</book>

All other files can be found in the attached zip file.


What should I change in order to get a title page in my document?

Is there any tutorial about how to configure the layout (fonts,
colours, headlines etc.) of the generated PDF?

Thanks in advance

Dmitri Pissarenko
-- 
http://www.xing.com/profile/Dmitri_Pissarenko