@syncfusion/ej2-pdf-data-extract 30.1.42 → 30.2.4

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.
Files changed (54) hide show
  1. package/dist/ej2-pdf-data-extract.umd.min.js +1 -2
  2. package/dist/global/ej2-pdf-data-extract.min.js +1 -2
  3. package/dist/global/index.d.ts +1 -2
  4. package/package.json +14 -46
  5. package/dist/ts/index.d.ts +0 -20
  6. package/dist/ts/index.ts +0 -20
  7. package/dist/ts/pdf-data-extract/core/content-parser-helper.d.ts +0 -62
  8. package/dist/ts/pdf-data-extract/core/content-parser-helper.ts +0 -640
  9. package/dist/ts/pdf-data-extract/core/enum.d.ts +0 -6
  10. package/dist/ts/pdf-data-extract/core/enum.ts +0 -6
  11. package/dist/ts/pdf-data-extract/core/graphic-state.d.ts +0 -33
  12. package/dist/ts/pdf-data-extract/core/graphic-state.ts +0 -106
  13. package/dist/ts/pdf-data-extract/core/pdf-data-extractor.d.ts +0 -210
  14. package/dist/ts/pdf-data-extract/core/pdf-data-extractor.ts +0 -977
  15. package/dist/ts/pdf-data-extract/core/pdf-text-parser.d.ts +0 -67
  16. package/dist/ts/pdf-data-extract/core/pdf-text-parser.ts +0 -495
  17. package/dist/ts/pdf-data-extract/core/redaction/index.d.ts +0 -4
  18. package/dist/ts/pdf-data-extract/core/redaction/index.ts +0 -4
  19. package/dist/ts/pdf-data-extract/core/redaction/pdf-redaction-processor.d.ts +0 -55
  20. package/dist/ts/pdf-data-extract/core/redaction/pdf-redaction-processor.ts +0 -592
  21. package/dist/ts/pdf-data-extract/core/redaction/pdf-redaction-region.d.ts +0 -281
  22. package/dist/ts/pdf-data-extract/core/redaction/pdf-redaction-region.ts +0 -342
  23. package/dist/ts/pdf-data-extract/core/redaction/pdf-redactor.d.ts +0 -129
  24. package/dist/ts/pdf-data-extract/core/redaction/pdf-redactor.ts +0 -322
  25. package/dist/ts/pdf-data-extract/core/redaction/text-glyph-mapper.d.ts +0 -12
  26. package/dist/ts/pdf-data-extract/core/redaction/text-glyph-mapper.ts +0 -153
  27. package/dist/ts/pdf-data-extract/core/text-extraction/binary-cmap-reader.d.ts +0 -24
  28. package/dist/ts/pdf-data-extract/core/text-extraction/binary-cmap-reader.ts +0 -281
  29. package/dist/ts/pdf-data-extract/core/text-extraction/cmap.d.ts +0 -50
  30. package/dist/ts/pdf-data-extract/core/text-extraction/cmap.ts +0 -565
  31. package/dist/ts/pdf-data-extract/core/text-extraction/compact-font-parser.d.ts +0 -191
  32. package/dist/ts/pdf-data-extract/core/text-extraction/compact-font-parser.ts +0 -1928
  33. package/dist/ts/pdf-data-extract/core/text-extraction/encoding-utils.d.ts +0 -102
  34. package/dist/ts/pdf-data-extract/core/text-extraction/encoding-utils.ts +0 -5780
  35. package/dist/ts/pdf-data-extract/core/text-extraction/font-structure.d.ts +0 -167
  36. package/dist/ts/pdf-data-extract/core/text-extraction/font-structure.ts +0 -1842
  37. package/dist/ts/pdf-data-extract/core/text-extraction/font-tables.d.ts +0 -5
  38. package/dist/ts/pdf-data-extract/core/text-extraction/font-tables.ts +0 -16
  39. package/dist/ts/pdf-data-extract/core/text-extraction/font-utils.d.ts +0 -18
  40. package/dist/ts/pdf-data-extract/core/text-extraction/font-utils.ts +0 -630
  41. package/dist/ts/pdf-data-extract/core/text-extraction/glyph.d.ts +0 -93
  42. package/dist/ts/pdf-data-extract/core/text-extraction/glyph.ts +0 -622
  43. package/dist/ts/pdf-data-extract/core/text-extraction/index.d.ts +0 -10
  44. package/dist/ts/pdf-data-extract/core/text-extraction/index.ts +0 -10
  45. package/dist/ts/pdf-data-extract/core/text-extraction/matrix-helper.d.ts +0 -38
  46. package/dist/ts/pdf-data-extract/core/text-extraction/matrix-helper.ts +0 -150
  47. package/dist/ts/pdf-data-extract/core/text-extraction/metrics.d.ts +0 -16
  48. package/dist/ts/pdf-data-extract/core/text-extraction/metrics.ts +0 -2938
  49. package/dist/ts/pdf-data-extract/core/text-structure.d.ts +0 -628
  50. package/dist/ts/pdf-data-extract/core/text-structure.ts +0 -668
  51. package/dist/ts/pdf-data-extract/core/utils.d.ts +0 -99
  52. package/dist/ts/pdf-data-extract/core/utils.ts +0 -626
  53. package/dist/ts/pdf-data-extract/index.d.ts +0 -20
  54. package/dist/ts/pdf-data-extract/index.ts +0 -20
@@ -1,99 +0,0 @@
1
- import { _PdfContentStream, _PdfCrossReference, _PdfDictionary, PdfPage } from '@syncfusion/ej2-pdf';
2
- import { _FontStructure } from './text-extraction/font-structure';
3
- import { _GraphicState } from './graphic-state';
4
- import { _TextProcessingMode } from './enum';
5
- import { _PdfContentParserHelper } from './content-parser-helper';
6
- import { PdfDataExtractor } from './pdf-data-extractor';
7
- /**
8
- * Removes escape sequences from a text string and returns the cleaned text.
9
- *
10
- * @param {string} text - The string to process.
11
- * @returns {string} The processed string without escape sequences.
12
- */
13
- export declare function _ignoreEscapeSequence(text: string): string;
14
- /**
15
- * Adds font resources from a PDF dictionary into a collection.
16
- *
17
- * @param {_PdfDictionary} dictionary - PDF Dictionary containing font resources.
18
- * @param {_PdfCrossReference} crossReference - The cross-reference of the PDF document.
19
- * @returns {Map<string, _FontStructure>} A map of font structure objects.
20
- */
21
- export declare function _addFontResources(dictionary: _PdfDictionary, crossReference: _PdfCrossReference): Map<string, _FontStructure>;
22
- /**
23
- * Retrieves XObject resources from a PDF dictionary and their associated cross-references.
24
- *
25
- * @param {_PdfDictionary} resources - The resources dictionary from a PDF page.
26
- * @param {_PdfCrossReference} crossReference - The cross-reference of the PDF document.
27
- * @returns {Map<string, any>} A map of XObject resources.
28
- */
29
- export declare function _getXObjectResources(resources: _PdfDictionary, crossReference: _PdfCrossReference): Map<string, any>;
30
- /**
31
- * Converts a hexadecimal string to its equivalent character representation.
32
- *
33
- * @param {string} hex - The hexadecimal string to convert.
34
- * @returns {string} The resulting string of characters.
35
- */
36
- export declare function _hexToChar(hex: string): string;
37
- /**
38
- * Skips recognized escape sequences in a text string.
39
- *
40
- * @param {string} text - The string containing escape sequences.
41
- * @returns {string} A new string with escape sequences removed or handled appropriately.
42
- */
43
- export declare function _skipEscapeSequence(text: string): string;
44
- /**
45
- * Converts escape sequences in a string to their corresponding literal characters.
46
- *
47
- * @param {string} text The input string containing escape sequences.
48
- *
49
- * @returns {string} The parsed string with escape sequences replaced by literal characters.
50
- */
51
- export declare function _parseEscapedText(text: string): string;
52
- /**
53
- * Retrieves a literal string, decoding escape sequences and null characters.
54
- *
55
- * @param {string} encodedText - The encoded string to decode.
56
- * @param {string} [encoding] - The encoding used in the text.
57
- * @returns {string} The decoded literal string.
58
- */
59
- export declare function _getLiteralString(encodedText: string, encoding?: string): string;
60
- /**
61
- * Decodes encoded text using the specified font structure, adjusting for encoding differences.
62
- *
63
- * @param {string} encodedText - The encoded string to decode.
64
- * @param {_FontStructure} font - The font structure for decoding glyphs.
65
- * @param {string[]} inputText - An array of strings representing parts of the text.
66
- * @returns {string} The decoded text.
67
- */
68
- export declare function _decodeEncodedText(encodedText: string, font: _FontStructure, inputText: string[]): string;
69
- /**
70
- * Retrieves a content stream object for a specified XObject, processing it according to the provided mode.
71
- *
72
- * @param {string[]} xObjectElement - The XObject elements to process.
73
- * @param {PdfPage} page - The PDF page to which the content stream belongs.
74
- * @param {Map<string, any>} xObjectCollection - A collection of XObject elements.
75
- * @param {_PdfContentParserHelper | PdfDataExtractor} data - The data extractor or content parser helper.
76
- * @param {_TextProcessingMode} [mode] - The mode of text processing.
77
- * @param {_GraphicState} [graphicState] - The current graphic state.
78
- * @returns {_PdfContentStream | void} The processed PDF content stream or void.
79
- */
80
- export declare function _getXObject(xObjectElement: string[], page: PdfPage, xObjectCollection: Map<string, any>, data?: _PdfContentParserHelper | PdfDataExtractor, mode?: _TextProcessingMode, graphicState?: _GraphicState): _PdfContentStream | void;
81
- /**
82
- * Parses encoded text and returns both the decoded string list and width table.
83
- *
84
- * @param {string} encodedText - The encoded text string to be parsed.
85
- * @param {_FontStructure} font - The font structure used to map encoded characters to glyphs.
86
- * @returns {object} An object containing `decodedStrings`, a list of decoded strings, and `charWidths`, a list of character widths.
87
- */
88
- export declare function _parseEncodedText(encodedText: string, font: _FontStructure): [string[], number[][]];
89
- /**
90
- * Compare two arrays of numbers to determine if they are equal.
91
- *
92
- * This function checks if two arrays have the same length and
93
- * identical elements in the same order.
94
- *
95
- * @param {number[]} arr1 - The first array to compare.
96
- * @param {number[]} arr2 - The second array to compare.
97
- * @returns {boolean} 'true' if the arrays are equal, otherwise 'false'.
98
- */
99
- export declare function _isArrayEqual(arr1: number[], arr2: number[]): boolean;