react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Download PDF By Page Number

Open KalanaPerera opened this issue 2 years ago • 1 comments

Thank you for the awesome library, I believe my request will be a new feature.

Use Case: Generated PDF document have multiple pages, therefore the end-user would like to download specific PDF pages or pages.

Idea:

<PDFDownloadLink downloadPages={[1,2,5]} document={<MyDoc />} fileName="somename.pdf"> {({ blob, url, loading, error }) => loading ? 'Loading document...' : 'Download now!' } </PDFDownloadLink>

Result:

PDF should have 3 pages, which include 1,2,5 page from the original document.

KalanaPerera avatar May 14 '23 09:05 KalanaPerera

hi @diegomura , sorry to tag you here, Do you have any suggestion or idea how to achieve this ?

KalanaPerera avatar Jun 09 '24 06:06 KalanaPerera

This falls outside this lib scope. This lib is for creating pdf documents, if you want to split them by page you will need another tool

diegomura avatar Mar 05 '25 00:03 diegomura