Understand the PDF.js architectural layers
masterPDF.js is organized into three distinct layers. Choosing the right layer depends on your use case:
- Core Layer: Responsible for parsing and interpreting binary PDF files. This is the foundation of the project. Direct usage of the Core layer is considered advanced, as its API is subject to change.
- Display Layer: Built on top of the Core layer, this provides a stable, easier-to-use API for rendering PDFs and extracting document information. This layer's API is what the project's version numbers track.
- Viewer Layer: Built on top of the Display layer, this is the full UI used in Firefox and other browser extensions. It is a complete PDF viewer application. If you embed the viewer in your own site, it is recommended to re-skin or build upon it rather than using an unmodified version.