Fixed compile errors from last commit
This commit is contained in:
@@ -4,12 +4,12 @@ import { splitPagesByIndex } from "./common/splitPagesByIndex.js";
|
||||
import { detectEmptyPages } from "./common/detectEmptyPages.js";
|
||||
import { detectQRCodePages } from "./common/detectQRCodePages.js";
|
||||
|
||||
export type SplitOnParamsType = {
|
||||
export type SplitPageByPresetParamsType = {
|
||||
file: PdfFile;
|
||||
type: "BAR_CODE"|"QR_CODE"|"BLANK_PAGE";
|
||||
whiteThreashold?: number;
|
||||
}
|
||||
export async function splitPagesByPreset(params: SplitOnParamsType): Promise<PdfFile[]> {
|
||||
export async function splitPagesByPreset(params: SplitPageByPresetParamsType): Promise<PdfFile[]> {
|
||||
const { file, type, whiteThreashold } = params;
|
||||
|
||||
console.log("File: ", file);
|
||||
|
||||
@@ -3,11 +3,11 @@ import { PdfFile } from '../wrappers/PdfFile.js';
|
||||
import { parsePageIndexSpecification } from './common/pageIndexesUtils'
|
||||
import { splitPagesByIndex } from './common/splitPagesByIndex.js';
|
||||
|
||||
export type SplitPagesParamsType = {
|
||||
export type SplitPdfByIndexParamsType = {
|
||||
file: PdfFile;
|
||||
pageIndexes: string | number[];
|
||||
}
|
||||
export async function splitPdfByIndex(params: SplitPagesParamsType): Promise<PdfFile[]> {
|
||||
export async function splitPdfByIndex(params: SplitPdfByIndexParamsType): Promise<PdfFile[]> {
|
||||
const { file, pageIndexes } = params;
|
||||
const pdfLibDocument = await file.pdfLibDocument;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user