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
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
Location-> traverse the book to both the left and right hand side and write each page's content into a pdf file using thegofpdfpackage.NextandPreviousmethod -> we could leverage this to traverse the book till we hit the1stand410thpage.GetFullBook/GetFullBookPdfmethod that should be called by the API handler that serves this request