mealie-recipes / mealie

Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. Easily add recipes into your database by providing the url and mealie will automatically import the relevant data or add a family recipe with the UI editor
https://docs.mealie.io
GNU Affero General Public License v3.0
5.59k stars 608 forks source link

[v1.0.0b] [Task] - Export Recipes and Cookbooks to PDF #1306

Open hay-kot opened 2 years ago

hay-kot commented 2 years ago

What is the problem this task addresses?

Some users want to export Recipes into a standard format and/or capture recipes into a printable format.

Mealie should provide a way to

Proposed/Possible Solution(s)?

I have not looked into PDF libraries in Python

doctorjames commented 2 years ago

A suggestion for consideration: might targetting a well-supported, semantically rich format consumable by Pandoc be worthwhile? I can see PDF would be good for printing, but EPUB would be more useful for offline electronic reference.

In addition to those two, Pandoc would also enable conversion to more editable formats, for example if someone wanted to make more of a traditional recipe book by adding additional content around/between recipes.

I haven't tried it myself, but here's the kind of thing I was imagining: https://www.toptal.com/docker/pandoc-docker-publication-chain

stroodle96 commented 2 years ago

I really like the idea of being able to export as an epub or pdf.

Fufs commented 11 months ago

For PDF, won't Print to PDF function be enough? Printing directly from the recipe is already implemented and Print to PDF function is preinstalled for the vast majority of Windows and Android devices.

I don't know if it's available in Apple OSes and Linux Distros tho.

AnthonyHeide commented 11 months ago

Print to PDF might be fine for single recipes, but the idea here is to generate an entire cookbook with the recipes you selected. It could also be that exporting to PDF might format it better than just printing it out.

michael-genson commented 11 months ago

Print to PDF might be fine for single recipes, but the idea here is to generate an entire cookbook with the recipes you selected

Yup I think this is still a good feature to have, separate from individual recipes. We could also generate a nice cover page

It could also be that exporting to PDF might format it better than just printing it out.

I don't think there's much value in this unless vs making the standard print look nice. The main advantage of using the PDF format directly is for extra features (such as links, bookmarks, etc.) but I don't see it being worth the hassle. The only advantage I could see is being able to count pages for a ToC or something

Skiepp commented 10 months ago

IMHO this feature would be great for third party integration 😊 But access recipes to export as PDF / EPUB has to be done via API

As example I'm building a suite around PocketBook and Kindle. It would be great to manage recipes via web and have them synched into the ebook reader

In those sceanarios, "Print to PDF function" is not enought, unless performed with tools like cypress and selenium (which is not a good approach, nor a correct microservices integration)

Fufs commented 10 months ago

Hmmmmmm, true. In that case the download/export functionality should be able to support multiple formats with respective API functionality. I think other formats worth to implement, other than pdf or epub would be html, md, latex, and maybe doc(x) and odt?

I can start the work on the backend but someone else will have to play with the PDF as I'm a terrible graphic designer 😄

michael-genson commented 10 months ago

For the first iteration I'd recommend just serving the existing print view in each format. Later down the line we can enrich it

acorncom commented 10 months ago

I can start the work on the backend but someone else will have to play with the PDF as I'm a terrible graphic designer 😄

@Fufs I'm happy to help with the design. I'm not an amazing graphic designer, but I can make it look decent until someone else comes along to make it better 😄

wiltified commented 3 months ago

Hey guys! Any traction on this? I, the techy, love having mealie on my iPad for cooking. Where as my wife is a "old fashioned" book / print out person and would really benefit from this. Thanks!

diedrichg commented 1 month ago

I also need this feature. I would suggest there also be a toggle to include/exclude recipe images in the PDF as well as a toggle to place the image on the left or right of the title or below the recipe title. As mentioned above; printing a whole cookbook or selecting individual recipes to be included in the PDF would be ideal. EDIT: One more request - Print a page with the Category name prior to those included recipes.