You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Greenier <we...@yahoo.com> on 2004/05/04 22:52:25 UTC

How to generate Multiple PDF files for a project

Hi,
 
I am a new maven users and I have successfully created a pdf file for my project.  My question is how can I create specific pdf files that only contain the content I specify.  I am trying to create files that I can use for formal documentation on my project, so for example, I would like to create a pdf that only has my requirements section of my project.  Here is a sample of my project layout (documentation only) :
 
Project - root
     |
     - project.xml, project.properties, etc.
     - xdocs
           |
           - index.xml, navigation.xml, etc
           - reqs
                |
                - index.xml
 
When I use 'maven pdf' at the root level, it will successfully create a pdf for the entire site.  I am looking for a way to create a pdf for just the reqs section.  I have tried to do this by putting a project.xml, project.properties files in the reqs folder, and then a xdocs folder.  This allowed me to create the pdf for just that section, and I was still able to create the overall site pdf, but is this the best way?  Any help would be greatly appreciated.
 
Thanks!

		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

RE: How to generate Multiple PDF files for a project

Posted by Tim Greenier <we...@yahoo.com>.
Arnaud,
 
Thank you very much.  I didn't think about setting different navigation files at the command line.  That worked very well, as I already had a separate navigation.xml file for that section.
 
Thanks,
Tim

Arnaud Heritier <ar...@laposte.net> wrote:
Hello Tim.

By default content of the pdf file is generated from the navigation.xml file
used in your project.
If you don't want/need to modify the site navigation you can specify a new
one to be used for your pdf file. To do this you must specify the property:

maven.pdf.navigationFile

(see http://maven.apache.org/reference/plugins/pdf/properties.html)

If you want to generate several pdf files for the same project you must
specify for each pdf file a new "maven.pdf.navigationFile" and a new
"maven.pdf.pdfName"

For example:
maven -Dmaven.pdf.navigationFile=navigation-pdf1.xml
-Dmaven.pdf.pdfName=file1.pdf pdf

maven -Dmaven.pdf.navigationFile=navigation-pdf2.xml
-Dmaven.pdf.pdfName=file2.pdf pdf


...

I think that you can also create new targets in you maven.xml file to create
automatically these files.

#Arnaud

> -----Message d'origine-----
> De : Tim Greenier [mailto:wec_rpa@yahoo.com]
> Envoy� : mardi 4 mai 2004 22:52
> � : users@maven.apache.org
> Objet : How to generate Multiple PDF files for a project
> 
> Hi,
> 
> I am a new maven users and I have successfully created a pdf file for my
> project. My question is how can I create specific pdf files that only
> contain the content I specify. I am trying to create files that I can use
> for formal documentation on my project, so for example, I would like to
> create a pdf that only has my requirements section of my project. Here is
> a sample of my project layout (documentation only) :
> 
> Project - root
> |
> - project.xml, project.properties, etc.
> - xdocs
> |
> - index.xml, navigation.xml, etc
> - reqs
> |
> - index.xml
> 
> When I use 'maven pdf' at the root level, it will successfully create a
> pdf for the entire site. I am looking for a way to create a pdf for just
> the reqs section. I have tried to do this by putting a project.xml,
> project.properties files in the reqs folder, and then a xdocs folder.
> This allowed me to create the pdf for just that section, and I was still
> able to create the overall site pdf, but is this the best way? Any help
> would be greatly appreciated.
> 
> Thanks!
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

		
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

RE: How to generate Multiple PDF files for a project

Posted by Arnaud Heritier <ar...@laposte.net>.
Hello Tim.

By default content of the pdf file is generated from the navigation.xml file
used in your project.
If you don't want/need to modify the site navigation you can specify a new
one to be used for your pdf file. To do this you must specify the property:

maven.pdf.navigationFile

(see http://maven.apache.org/reference/plugins/pdf/properties.html)

If you want to generate several pdf files for the same project you must
specify for each pdf file a new "maven.pdf.navigationFile" and a new
"maven.pdf.pdfName"

For example:
maven -Dmaven.pdf.navigationFile=navigation-pdf1.xml
-Dmaven.pdf.pdfName=file1.pdf pdf

maven -Dmaven.pdf.navigationFile=navigation-pdf2.xml
-Dmaven.pdf.pdfName=file2.pdf pdf


...

I think that you can also create new targets in you maven.xml file to create
automatically these files.

#Arnaud

> -----Message d'origine-----
> De : Tim Greenier [mailto:wec_rpa@yahoo.com]
> Envoyé : mardi 4 mai 2004 22:52
> À : users@maven.apache.org
> Objet : How to generate Multiple PDF files for a project
> 
> Hi,
> 
> I am a new maven users and I have successfully created a pdf file for my
> project.  My question is how can I create specific pdf files that only
> contain the content I specify.  I am trying to create files that I can use
> for formal documentation on my project, so for example, I would like to
> create a pdf that only has my requirements section of my project.  Here is
> a sample of my project layout (documentation only) :
> 
> Project - root
>      |
>      - project.xml, project.properties, etc.
>      - xdocs
>            |
>            - index.xml, navigation.xml, etc
>            - reqs
>                 |
>                 - index.xml
> 
> When I use 'maven pdf' at the root level, it will successfully create a
> pdf for the entire site.  I am looking for a way to create a pdf for just
> the reqs section.  I have tried to do this by putting a project.xml,
> project.properties files in the reqs folder, and then a xdocs folder.
> This allowed me to create the pdf for just that section, and I was still
> able to create the overall site pdf, but is this the best way?  Any help
> would be greatly appreciated.
> 
> Thanks!
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org