fix(core): Improve PDF XML extraction, embedding, and format detection; update loadPdf/exportPdf error handling; add new validator implementations and enhance IPdf metadata.
This commit is contained in:
@ -72,14 +72,19 @@ export interface IPdf {
|
||||
id: string;
|
||||
metadata: {
|
||||
textExtraction: string;
|
||||
format?: string;
|
||||
embeddedXml?: {
|
||||
filename: string;
|
||||
description: string;
|
||||
};
|
||||
};
|
||||
buffer: Uint8Array;
|
||||
}
|
||||
|
||||
// Re-export types from tsclass for convenience
|
||||
export type { TInvoice } from '@tsclass/tsclass/dist_ts/finance';
|
||||
export type { TCreditNote } from '@tsclass/tsclass/dist_ts/finance';
|
||||
export type { TDebitNote } from '@tsclass/tsclass/dist_ts/finance';
|
||||
export type { TContact } from '@tsclass/tsclass/dist_ts/business';
|
||||
export type { TLetterEnvelope } from '@tsclass/tsclass/dist_ts/business';
|
||||
export type { TDocumentEnvelope } from '@tsclass/tsclass/dist_ts/business';
|
||||
export type { TInvoice } from '@tsclass/tsclass/dist_ts/finance/index.js';
|
||||
export type { TCreditNote } from '@tsclass/tsclass/dist_ts/finance/index.js';
|
||||
export type { TDebitNote } from '@tsclass/tsclass/dist_ts/finance/index.js';
|
||||
export type { TContact } from '@tsclass/tsclass/dist_ts/business/index.js';
|
||||
export type { TLetterEnvelope } from '@tsclass/tsclass/dist_ts/business/index.js';
|
||||
export type { TDocumentEnvelope } from '@tsclass/tsclass/dist_ts/business/index.js';
|
Reference in New Issue
Block a user