Skip to content

Commit 6969bb9

Browse files
committed
Fix include of css in pdf header/footer
1 parent 4567041 commit 6969bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/ebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Generator.prototype.getPDFTemplate = function(id) {
6363

6464
// Custom PDF style
6565
if (this.styles.pdf) {
66-
stylesheets.push(fs.readFileSync(this.book.resolve(this.styles.pdf), { encoding: 'utf-8' }));
66+
stylesheets.push(fs.readFileSync(this.book.resolveOutput(this.styles.pdf), { encoding: 'utf-8' }));
6767
}
6868

6969
tpl = juice(tpl, {

0 commit comments

Comments
 (0)