UNPKG

n8n-nodes-parse-pdf

Version:

Extract text, tables, and structured data from PDF files using PDF API Hub

21 lines (20 loc) 1.17 kB
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow'; export declare function checkApiResponse(context: IExecuteFunctions, statusCode: number, responseBody: unknown, itemIndex: number): void; export declare function normalizeUrl(value: string): string; export declare function prepareBinaryResponse(this: IExecuteFunctions, itemIndex: number, responseData: { body: ArrayBuffer; headers?: Record<string, unknown>; }, fallbackFileName: string, fallbackMimeType: string): Promise<INodeExecutionData>; export declare function createSingleFileMultipart(this: IExecuteFunctions, itemIndex: number, binaryPropertyName: string, fields: Record<string, string | number | boolean>): Promise<{ body: Buffer<ArrayBuffer>; headers: { 'Content-Type': string; }; }>; export declare function createTwoFileMultipart(this: IExecuteFunctions, itemIndex: number, file1BinaryProperty: string, file2BinaryProperty: string, method: string): Promise<{ body: Buffer<ArrayBuffer>; headers: { 'Content-Type': string; }; }>; export declare function parseJsonResponseBody(body: unknown, itemIndex: number): INodeExecutionData;