Fix: file extenstions in imports

This commit is contained in:
Felix Kaspar
2024-02-23 23:55:29 +01:00
parent 644e0ceae9
commit 20f027bb5a
13 changed files with 25 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
import { PdfFile } from "../../wrappers/PdfFile";
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api.js";
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api";
import { Image, ImageKind } from "image-js";
import { getImagesOnPage, PDFJSImage } from "./getImagesOnPage.js";

View File

@@ -1,8 +1,8 @@
import jsQR from "jsqr";
import { PdfFile } from "../../wrappers/PdfFile.js";
import { getImagesOnPage, PDFJSImage } from "./getImagesOnPage.js";
import { PdfFile } from "../../wrappers/PdfFile";
import { getImagesOnPage, PDFJSImage } from "./getImagesOnPage";
export async function detectQRCodePages(file: PdfFile) {
console.log("FileInQRPrev: ", file);

View File

@@ -1,5 +1,5 @@
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api.js";
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api";
import * as PDFJS from "pdfjs-dist";

View File

@@ -1,5 +1,5 @@
import { PdfFile, RepresentationType } from "../../wrappers/PdfFile.js";
import { PdfFile, RepresentationType } from "../../wrappers/PdfFile";
import { PDFDocument } from "pdf-lib";
export async function getPages(file: PdfFile, pageIndexes: number[]): Promise<PdfFile> {

View File

@@ -1,5 +1,5 @@
import { PdfFile } from "../../wrappers/PdfFile.js";
import { PdfFile } from "../../wrappers/PdfFile";
import { getPages } from "./getPagesByIndex";
export async function splitPagesByIndex(file: PdfFile, splitAfterPageIndexes: number[]): Promise<PdfFile[]> {