Commit 3a2df17
committed
Add PdfPageObject.objectNumber
Add objectNumber:number to PdfPageObject and populate it from PDFium's EPDFDoc_GetPageObjectNumberByIndex. Update the PDFium engine bindings (functions, cjs/js glue and wasm), bump the pdfium submodule, and use the new call in openDocumentBuffer and importPages so page entries include their indirect-object number. Includes changesets for @embedpdf/engines and @embedpdf/models. The field will be 0 when PDFium cannot resolve the page dictionary (e.g. XFA pages).1 parent 0d85365 commit 3a2df17
9 files changed
Lines changed: 31 additions & 3 deletions
File tree
- .changeset
- packages
- engines/src/lib/pdfium
- models/src
- pdfium
- src/vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
2738 | 2740 | | |
2739 | 2741 | | |
2740 | 2742 | | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
2741 | 2747 | | |
2742 | 2748 | | |
2743 | 2749 | | |
| |||
2746 | 2752 | | |
2747 | 2753 | | |
2748 | 2754 | | |
| 2755 | + | |
2749 | 2756 | | |
2750 | 2757 | | |
2751 | 2758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
Submodule pdfium-src updated 7 files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Binary file not shown.
0 commit comments