diff --git a/lib/document/document-converter.js b/lib/document/document-converter.js
index 34a252c0..7e027536 100644
--- a/lib/document/document-converter.js
+++ b/lib/document/document-converter.js
@@ -486,10 +486,22 @@ ${faDom.css()}
if (node.getDocumentTitle()) {
const doc = node.getDocument()
if (this.hasTitlePage(doc)) {
- return `
-
${node.getDocumentTitle()}
-
${node.getDocument().getAuthor()}
+ const docTitle = node.getDocument().getDocumentTitle({ partition: true })
+ //If the document has a subtitle, we split title in h1 / subtitle in h2
+ if (docTitle.hasSubtitle()){
+ return `
+
${docTitle.getMain()}
+
${docTitle.getSubtitle()}
+
${node.getDocument().getAuthor()}
+
Version ${node.getDocument().getRevisionNumber()}, ${node.getDocument().getRevisionDate()}
+
`
+ } else {
+ return `
+
${docTitle.getCombined()}
+
${node.getDocument().getAuthor()}
+
Version ${node.getDocument().getRevisionNumber()}, ${node.getDocument().getRevisionDate()}
`
+ }
}
return `
${node.getDocumentTitle()}