@heripo/pdf-parser 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -33,6 +33,12 @@ type PDFConvertOptions = Omit<ConversionOptions, 'to_formats' | 'image_export_mo
33
33
  aggregator?: LLMTokenUsageAggregator;
34
34
  /** Callback fired after each batch of VLM pages completes, with cumulative token usage */
35
35
  onTokenUsage?: (report: TokenUsageReport) => void;
36
+ /** Enable chunked conversion for large PDFs (local files only) */
37
+ chunkedConversion?: boolean;
38
+ /** Pages per chunk (default: CHUNKED_CONVERSION.DEFAULT_CHUNK_SIZE) */
39
+ chunkSize?: number;
40
+ /** Max retry attempts per failed chunk (default: CHUNKED_CONVERSION.DEFAULT_MAX_RETRIES) */
41
+ chunkMaxRetries?: number;
36
42
  };
37
43
  /** Result of strategy-based conversion */
38
44
  interface ConvertWithStrategyResult {
package/dist/index.d.ts CHANGED
@@ -33,6 +33,12 @@ type PDFConvertOptions = Omit<ConversionOptions, 'to_formats' | 'image_export_mo
33
33
  aggregator?: LLMTokenUsageAggregator;
34
34
  /** Callback fired after each batch of VLM pages completes, with cumulative token usage */
35
35
  onTokenUsage?: (report: TokenUsageReport) => void;
36
+ /** Enable chunked conversion for large PDFs (local files only) */
37
+ chunkedConversion?: boolean;
38
+ /** Pages per chunk (default: CHUNKED_CONVERSION.DEFAULT_CHUNK_SIZE) */
39
+ chunkSize?: number;
40
+ /** Max retry attempts per failed chunk (default: CHUNKED_CONVERSION.DEFAULT_MAX_RETRIES) */
41
+ chunkMaxRetries?: number;
36
42
  };
37
43
  /** Result of strategy-based conversion */
38
44
  interface ConvertWithStrategyResult {