PDFElement
PDFElement
extends ScriptableObject
and represents a PDF viewer or document element embedded within the environment. It allows specifying a PDF resource to be displayed or interacted with and can optionally be network-synchronized.
Example:
const pdfElement = new PDFElement();
pdfElement.src = 'documents/manual.pdf';
scene.add(pdfElement);
src: string
The source URL or file path of the PDF document to display.
Example:
pdfElement.src = 'documents/manual.pdf';
networkable: boolean
Indicates whether the PDF element should be network-synchronized. When true, interactions or changes to the PDF view can be replicated across clients.
Example:
pdfElement.networkable = true;