Skip to content

Add ability to save a book as a PDF #7

Description

@c12i

When browsing a page of a book, a user should be able to save the entire book as a pdf file.

The PDF file should initially be consecutive book pages with the page count indicated at the bottom of the page (center or right side alignment).

Since the Books in the current implementation have no title, there won't be any explicit title page or title indicators at the top of each page.

implementation details

  • Given a Location -> traverse the book to both the left and right hand side and write each page's content into a pdf file using the gofpdf package.
  • Current Location API exposes a Next and Previous method -> we could leverage this to traverse the book till we hit the 1st and 410th page.
  • Expose a GetFullBook/ GetFullBookPdf method that should be called by the API handler that serves this request

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions