mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.02k stars 1.24k forks source link

Add PDF component #13825

Open oliviertassinari opened 1 month ago

oliviertassinari commented 1 month ago

Summary

This feature request is made of two parts:

PDF Viewer

The ability to display PDFs directly into a web page.

PDF Editor

The ability to display and edit PDF directly into a web page.

Motivation

Public: https://mui-org.notion.site/mui-x-PDF-component-74e68291f1c84bffa2b25f3a118edecd?pvs=4 Editable: https://www.notion.so/mui-org/mui-x-PDF-component-74e68291f1c84bffa2b25f3a118edecd

Search keywords: -

michelengelen commented 1 month ago

I have played with this package a while back and really liked it: https://react-pdf.org/

EDIT: just saw it in the list ... sry! :D

oliviertassinari commented 1 month ago

I have played with this package a while back

@michelengelen What was your use case to embed a PDF reader into a page?

michelengelen commented 1 month ago

I have played with this package a while back

@michelengelen What was your use case to embed a PDF reader into a page?

I had 2 use cases:

  1. was a simple accounting system to create invoices.
  2. was a system for football fans where they could select a player and print the infos about them in different templates.
michelengelen commented 1 month ago

Objections adding this to the explore board @mui/x ?

flaviendelangle commented 1 month ago

I don't think new set of components belongs to the board, it's not thing we are going to pick from the board as we would for bug fixes or new features.

TheOneTheOnlyJJ commented 1 month ago

When this ships, it would be useful to print charts and data grids.

oliviertassinari commented 1 month ago

@TheOneTheOnlyJJ For charts, I would see #11746 solving it, and for data grid: https://mui.com/x/react-data-grid/export/#print-export.