Open colomet opened 6 years ago
Also a way to export just one chapter or part without export the full book
@colomet — the ability to select which chapters will be exported (one or many, or all) is already a feature of PB. On the Organize
page in the admin area, unchecking the checkbox for Export will eliminate that particular chapter from the export file.
Yes, but the current process is not flexible, it just works. The current process works perfect for exporting the book, and allowing for the download. But if by working in a chapter we need to know if the content fits into the page (some times, because of one line, we need one extra page), we need to export all the book, to go to the export page, after , to delete the book as is not as good as we need.... time consuming. To be able to export one page on the fly, helps for the creation process also for a simple sharing.
Maybe we could also to offer that functionality in the front end for registered users. In that way, students can print one page while they are studing and download it in a perfect stiling.
Okay, thanks for fleshing out that use case a little bit for me.
We worked on preview a bit in the summer but stopped because the implementation was not good enough:
https://github.com/pressbooks/pressbooks/pull/827
The backend code is still in pressbooks. It can be activated by appending ?preview[0]=111&preview[1]=222&preview[2]=333
to a URL where 111, 222, and 333 are post_ids.
Examples:
There's even a GUI in this reverted commit that may be salvagable:
Clicking on any of those buttons would open a new tab previewing only the post you are in. Interbally it was decided that the GUI was a prototype at best so please do not implement it without discussing with us first.
We would prefer "Preview" be a Pressbooks wide feature, not a MPDF feature. If this somehow becomes part of your sprint I would appreciate you talk to @greatislander to coordinate efforts. We will probably be breaking things moving forward.
I agree that this may be better served as a pressbooks wide feature and not something specific to Mpdf.
Description
To be able to see a preview of the PDF page for each chapter or part (by using the pdf settings for such preview). To be able to export an independent chapter or part from the edit page.
Expected behaviour
To have in each page a buttom where we can see in a pop up how would be the exported current page. Also a way to export just one chapter or part without export the full book.
Actual behaviour
Now, if we need to know how looks like a page, we need to export a full book and to take a look. Is important to know how looks like a PDF page, the current way is slow. Also, some times we just need to give one chapter, to export each chapter as independent would give us more flexibility as in the current way, many settings are necesary for such purpose.
System Information