in src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java [1081:1098]
private String getGeneratedDocumentTitle(final File f) throws IOException {
final IndexEntry entry = new IndexEntry("index");
final IndexingSink titleSink = new IndexingSink(entry);
try (Reader reader = ReaderFactory.newXmlReader(f)) {
doxia.parse(reader, f.getParentFile().getName(), titleSink);
} catch (ParseException e) {
getLog().error("ParseException: " + e.getMessage());
getLog().debug(e);
return null;
} catch (ParserNotFoundException e) {
getLog().error("ParserNotFoundException: " + e.getMessage());
getLog().debug(e);
return null;
}
return titleSink.getTitle();
}