diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-07-01 18:00:31 -0400 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-07-01 18:00:31 -0400 |
commit | 4aa8e6654932dc3cc61626fa30d3ae42d1629f8d (patch) | |
tree | 25051e3074b572aa4b2594faa035efc21b70c17a /lib/configuration.js | |
parent | 2f5e53da5581daf01570d422d55dcbc94443fc85 (diff) | |
parent | 917a6f70d821e675181cbc1b28e603be2e53a1ea (diff) | |
download | gitbook-4aa8e6654932dc3cc61626fa30d3ae42d1629f8d.zip gitbook-4aa8e6654932dc3cc61626fa30d3ae42d1629f8d.tar.gz gitbook-4aa8e6654932dc3cc61626fa30d3ae42d1629f8d.tar.bz2 |
Merge pull request #813 from MrMaksimize/pdf-options
Allowing for custom chapter-mark and page-break in PDF.
Diffstat (limited to 'lib/configuration.js')
-rw-r--r-- | lib/configuration.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/configuration.js b/lib/configuration.js index 29776bd..9e839e6 100644 --- a/lib/configuration.js +++ b/lib/configuration.js @@ -246,6 +246,14 @@ Configuration.DEFAULT = { // Choices are [u’a0’, u’a1’, u’a2’, u’a3’, u’a4’, u’a5’, u’a6’, u’b0’, u’b1’, u’b2’, u’b3’, u’b4’, u’b5’, u’b6’, u’legal’, u’letter’] "paperSize": "a4", + // How to mark detected chapters. + // Choices are “pagebreak”, “rule”, "both" or “none”. + "chapterMark" : "pagebreak", + + // An XPath expression. Page breaks are inserted before the specified elements. + // To disable use the expression: "/" + "pageBreaksBefore": "/", + // Margin (in pts) // Note: 72 pts equals 1 inch "margin": { |