Ref API
getInstance()
Returns the underlying SuperDoc instance, or null before the editor is ready.
Use optional chaining (
?.) for safe access — getInstance() returns null until onReady fires.Available instance methods
Once you have the SuperDoc instance, you can call any SuperDoc method:Common patterns
PDF setup
Usepdfjs-dist with modules.pdf for predictable PDF rendering.
Whiteboard stickers (PDF)
Register stickers when the whiteboard instance is available and pass the sticker id viaapplication/sticker.
Search and navigate
Export to HTML
Real-time collaboration
Collaboration guide
Full setup for real-time collaboration

