We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, great job. It will be practical to use a function for placing header and footer, programmatically, out of a file. Like this :
let headerContent = function (pageNum, numPages) { return "<h1>Header <span style='float:right'>" + pageNum + " / " + numPages + "</span></h1>" } let options = { cssPath: this.rootPath + "/style.css", header: { height: "1cm", contents: headerContent } } fs.createReadStream(this.rootPath + "/in.md") .pipe(markdownpdf(options)) .pipe(fs.createWriteStream(this.rootPath + "/out.pdf"))
It will be also useful for making custom header and footer be adding variables.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, great job.
It will be practical to use a function for placing header and footer, programmatically, out of a file.
Like this :
It will be also useful for making custom header and footer be adding variables.
The text was updated successfully, but these errors were encountered: