rendering with pdf.js working

This commit is contained in:
Kilian Schuettler 2025-02-20 14:03:10 +01:00
parent 0e1e7c359b
commit 692bba7c8f
2 changed files with 0 additions and 3 deletions

View File

@ -11,7 +11,6 @@ export default class Document {
} }
public async render_page(num: number, canvas: HTMLCanvasElement) { public async render_page(num: number, canvas: HTMLCanvasElement) {
console.log("render");
let doc = await this.doc; let doc = await this.doc;
let page = await doc.getPage(num); let page = await doc.getPage(num);
const outputScale = window.devicePixelRatio || 1; const outputScale = window.devicePixelRatio || 1;

View File

@ -27,7 +27,6 @@ export class PageViewState {
public async load(page_num: number) { public async load(page_num: number) {
console.log("load", page_num)
this.render(); this.render();
invoke<ContentModel>("get_contents", {id: this.file_id, path: "Page" + page_num}) invoke<ContentModel>("get_contents", {id: this.file_id, path: "Page" + page_num})
@ -38,7 +37,6 @@ export class PageViewState {
} }
public async loadImage(display: HTMLCanvasElement) { public async loadImage(display: HTMLCanvasElement) {
console.log("load", display)
this.display_lock.acquire().then(release => { this.display_lock.acquire().then(release => {
try { try {
let page_num = this.fState.getCurrentPageNumber(); let page_num = this.fState.getCurrentPageNumber();