Skip to content

Commit

Permalink
Producer field added to resulted PDF for #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Sep 20, 2020
1 parent db8d52c commit f558361
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SHELL ?= /bin/bash

#JAR_VERSION := $(shell mvn -q -Dexec.executable="echo" -Dexec.args='$${project.version}' --non-recursive exec:exec -DforceStdout)
JAR_VERSION := 1.20
JAR_VERSION := 1.21
JAR_FILE := mn2pdf-$(JAR_VERSION).jar

all: target/$(JAR_FILE)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.metanorma.fop</groupId>
<artifactId>mn2pdf</artifactId>
<version>1.20</version>
<version>1.21</version>
<name>Metanorma XML to PDF converter</name>
<packaging>jar</packaging>
<url>https://www.metanorma.com</url>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/metanorma/fop/mn2pdf.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ private void runFOP (fontConfig fontcfg, Source src, File pdf, Transformer trans
JEuclidFopFactoryConfigurator.configure(fopFactory);
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
// configure foUserAgent
foUserAgent.setProducer("Ribose Metanorma mn2pdf version " + Util.getAppVersion());

//Adding a simple logging listener that writes to stdout and stderr
//foUserAgent.getEventBroadcaster().addEventListener(new SysOutEventListener());
Expand Down

0 comments on commit f558361

Please sign in to comment.