subhamX / notion-easy-export

📘 Notion easy export converts your notion documents & databases into an ebook.
https://www.npmjs.com/package/notion-easy-export
Apache License 2.0
62 stars 4 forks source link

how to export the notion database's current view pdf? #7

Open shimu527 opened 1 year ago

shimu527 commented 1 year ago

Hello there,

I hope this message finds you well. First and foremost, I would like to express my gratitude for providing such an amazing project that has been immensely helpful to me. However, I have encountered a small issue that I would like to address.

The problem arises when dealing with numerous pages in the Notion database. In order to efficiently manage the database, I require the ability to filter and export PDFs using the current view. Unfortunately, it seems that this particular functionality is not supported by the current project, unlike the native support available in Notion itself.

I was wondering if there might be any possible solutions or workarounds to achieve this functionality within the project. Your guidance and assistance regarding this matter would be highly appreciated.

Thank you once again for your valuable contribution and support.

Best regards, shimu

subhamX commented 1 year ago

Hi @shimu527. Thank you for the kind words. ✨

I did some digging, and think it's possible to extend the current project to allow users to export a particular view. The users need to provide the viewId to this library (which is different from viewName). My only concern is if the users can find the viewId easily (specially, if it's an inline database).

Also, pondering on the right interface. Should we ask the users input from stdin, or allow them to provide the viewId (which is different from viewName) as an argument, or both. Thinking...