Fix: file extenstions in imports
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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[]> {
|
||||
|
||||
Reference in New Issue
Block a user