INNER CODE UNIT · JavaScript

pdf

danburzo/percollate · index.js:658

async function pdf(urls, options) {
	return await generate(bundlePdf, urls, {
		...options,
		// Hyphenate by default
		hyphenate: options.hyphenate !== undefined ? options.hyphenate : true,
		slugCache: {}
	});
}

/*
	Generate EPUB
 */
async function epub(urls, options) {
	return await generate(bundleEpub, urls, {
		...options,
		xhtml: true,
		mapRemoteResources: !options.inline,
		hyphenate: options.hyphenate !== undefined ? options.hyphenate : false,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…