 <p>On Windows at the command prompt run: <code>gradlew referencePdf --stacktrace</code> and that should tell you what happened. In my case, it was a heap size issue. I set an environment variable <code>set GRADLE_OPTS="-Xmx1024m"</code> then was able to build the pdf successfully.</p>