Chapter wise PDF Generation
Feature proposal: [Export Chapter-wise PDF] Context
Generate Chapter-wise PDF
Currently, there is no option for generating the chapter-wise PDF from Ketida, One of our customers using Ketida requires chapter-wise PDF delivery from the platform.
Proposal
Generate chapter-wise PDF from Ketida as an extra export option. We will send the same book component to the pagedjs server for generating the chapter-wise PDF. PagedJS microservice must split each chapter and paginate them accordingly. Pack them all in a zip file and stream them for download. The important thing is the page numbers for chapter wise PDF must continue from the previous chapter.
Design
Implementation (if applicable)
In PagedJS microservice, split the HTML into chapters. Apply the template. Remember the page-counter of each chapter and reset the page-counter for the next chapter.
Get all the PDF’s and rename them as per the chapter number. Zip them for download.
Alternative approaches (if applicable)
If the above approach is not possible, then can we look at splitting the PDF itself into multiple PDFs at each chapter? We have command line utilities in linux to do this, but we will need the page-numbers to split them.
Open issues (if applicable) None