Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.spyhunter99:maven-pdf-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.spyhunter99:maven-pdf-plugin

Generates a PDF document from the project site. This fork adds more header/footer options.

  • 1.5.0.8
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

A modified version of the Apache Maven PDF Plugin

Primary deltas

  • Allows for custom headers and footers
  • Headers/footers are centered on page
  • Seperate headers on the title pages
  • Adjustable, Multi-level Table of Contents (generated from your docs)
  • EXSUM, rendered before the TOC
  • Project logo is front and centered and is stretched to full width if possible
  • Title page has several new fields that can be populated
    • Date
    • Distribution statement
  • Overridable stylesheet so you can customize the output on a per project/per pdf basis
  • Table rendering supports alternate background colors per row

This repo contains the source for several doxia modules and for the original maven-pdf-plugin

ASF 2.0 licensed

<properties>
....
	<timestamp>${maven.build.timestamp}</timestamp>
	<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
....
</properties>
<build>
	<plugins>
		<plugin>
			<groupId>com.github.spyhunter99</groupId>
			<artifactId>maven-pdf-plugin</artifactId>
			<version>1.5.0.7</version>
			<executions>
				<execution>
				  <id>pdf-user</id>
				  <phase>site</phase>
				  <goals>
					<goal>pdf</goal>
				  </goals>
				  <configuration>
					<outputDirectory>${project.reporting.outputDirectory}</outputDirectory>
					<includeReports>false</includeReports>
					<docDescriptor>src/site/pdf-user.xml</docDescriptor>
					
					<!-- optional, the title of a doc defined in pdf-user that is rendered before the TOC -->
					<executiveSummaryName>EXSUM</executiveSummaryName>
					<!-- optional, a header only on the title page-->
					<titleHeader>A custom header only on the title pages</titleHeader>
					
					<!-- optional, the distribution statement is printed on the title page towards the bottom, common use case:
							confidentiality statements, limited distribution, legalese and other mumbo jumbo.-->
					<distributionStatement>DISTRIBUTION STATEMENT: Feel free to give this document to anyone you will take it.</distributionStatement>
						
					<!-- optional, these header/footer definitions are used on all pages exception the title page -->
					<pdfFooter>Some contet 
						Second line content 
						Third line content 
						Version ${project.version} 
						${timestamp}</pdfFooter>
					<pdfHeader>Some contet 
						Second line content 
						Third line content 
						Version ${project.version} 
						${timestamp}</pdfHeader>
						
					<!-- optional, the cover page can have a pom defined date too -->
					<pdfCoverDate>1970-1-1</pdfCoverDate>
					
					<!-- optional, the max depth of the TOC -->
					<tocMaxDepthToPrint>4</tocMaxDepthToPrint>
                                        <!-- optional, you can override any of the colors, fonts, padding etc with your own file here -->
                                        <foStylesOverride>src/main/resources/fo-styles_1.xslt</foStylesOverride>
				  </configuration>
				</execution>
			  
			</executions>
		</plugin>
	</plugins>
</build>

FAQs

Package last updated on 03 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc