chikamichi / gitbook-plugin-pdf-styling Goto Github PK
View Code? Open in Web Editor NEWA GitBook post-processing plugin to further customize your PDF renderings.
Home Page: https://www.gitbook.com
License: MIT License
A GitBook post-processing plugin to further customize your PDF renderings.
Home Page: https://www.gitbook.com
License: MIT License
HummusJS is available on npm and has mergePDFPagesToPage
which could be used (twice in a row) to replicate pdftk
's background
operation. Maybe worth the try. There are more advanced features which could allow for thorough post-processing.
Allow end-user to specify an image
configuration key, whose value should be the path to an image to be used as the PDF background.
error: error with pdf-styling: Error: invalid book format
at /tmp/book/node_modules/gitbook-plugin-pdf-styling/lib/post_processing.js:38:13
at _fulfilled (/tmp/book/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/tmp/book/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/tmp/book/node_modules/q/q.js:749:13)
at /tmp/book/node_modules/q/q.js:810:14
at flush (/tmp/book/node_modules/q/q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
warn: aborting post-processing of pdf
What can I do to change the books format to get this to work?
Say:
Requires implementing a queue of background-related post-processing, instead of limiting the end-user to one operation type. Probably simply require using an array in book.json
.
Allow end-user to specify an color
configuration key, whose value should be a color hex code to be used as the PDF background (fill).
Allow end-user to specify an texture
configuration key, whose value should be the path to a texture image to be used as the PDF background (fill).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.