[Feature]: Add a cookbook to the website #19445
arun-mani-j
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
While we probably should have more/better documentation, writing good documentation takes a lot of time/effort and the problem is that once added someone[1] then has to spend time maintaining/updating it with future changes to the library. [1] Given the number of regular contributors, this could become yet another task that the core contributors are essentially "forced" to spend a lot of time on. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is the feature relevant to the Firefox PDF Viewer?
No
Feature description
PDF.js is a very big library with a lot of features. But the examples in the website is so limited. This leads users confused on common stuff like getting ToC (#19421), tinting pages (#19420) etc. Sometimes API page helps, but it suffers from discovery problem, that is one needs to know that something is there in order to use it. Currently the only way to find things is to read source code of the viewer implementation. But this is not easy or simple.
I think having something like PyMuPDF's docs - https://pymupdf.readthedocs.io/en/latest/the-basics.html will be super helpful. The idea is to have a section called Cookbook where we explain how to do common tasks. Sure we can't list all tasks but we can explain the common ones related to PDFs like:
If the PDF.js team wishes, I'm very much happy to create a PR for the initial version of cookbook.
Please let me know your thoughts.
Other PDF viewers
NA
Beta Was this translation helpful? Give feedback.
All reactions