Skip to content

Commit

Permalink
fix(pdf) Do not preserve page breaks by defaults on import
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Sep 4, 2020
1 parent dfdb530 commit 9f86f72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 259 deletions.
2 changes: 1 addition & 1 deletion packages/markdown-pdf/src/PdfTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PdfTransformer {
* @param {boolean} [options.preservePages] - whether to preserve PDF page breaks (defaults to true)
* @returns {promise} a Promise to the CiceroMark DOM
*/
async toCiceroMark(input, format = 'concerto', options = { paragraphVerticalOffset: 2, preservePages: true }) {
async toCiceroMark(input, format = 'concerto', options = { paragraphVerticalOffset: 2, preservePages: false }) {

let loadingTask = pdfjsLib.getDocument(input.buffer);

Expand Down
Loading

0 comments on commit 9f86f72

Please sign in to comment.