# XiKey PDF 0.8.0 r16 (Alpha)

published: 2026-11-20T19:39:18+03:00

Alpha update for Windows x64 (Windows 10 or later).


Windows x64 changes since 0.8.0 r14 (machine version 0.8.16; component base 0.14.0): Arabic text copy fixes, a rebuilt table preview with Excel (XLSX), CSV and Markdown export, calculated cells, an opt-in AI page reader and opt-in AI calculation suggestions, faster OCR start-up and eight security fixes ported onto the component base; macOS and Linux remain on 0.8.0 r6. Revision r15 was not published, so its changes are included here. The Windows installer and programs are Authenticode-signed.

### Arabic text extraction and copy

- Copying Arabic text from text pages no longer inserts false spaces inside words: joiner advances, extender (tatweel) chains, mark advances and run boundaries are measured the same way as gaps inside a run.
- Table rows on right-to-left statement pages are copied row by row, including aligned and ragged rows.
- The Saudi riyal sign is extracted when the font names it, and unmapped symbols are kept instead of dropped.
- OCR keeps right-to-left line order from word positions and keeps the space between overlapping right-to-left words.

### Scanned pages and OCR

- On a scanned page, the table window explains that tables can be read by local recognition (labels and layout; numbers may be wrong) or by the AI reader, with the buttons "Recognise locally" and "Read with AI…" ("Set up AI…" when no AI profile is configured).
- Without AI, the built-in OCR reads the page; amounts it cannot confirm are marked as unreadable instead of being exported silently (on the test statement page 90 of 91 amounts were marked).
- A new row-grid reader straightens scanned table images, finds row and column lines and subtotal rules, numbers blank rows and keeps wrapped labels with their row.
- Selected OCR languages are downloaded when Preferences are accepted. Text that cannot be read is recognised again, and the repaired extraction is preferred.
- OCR discovery runs at start-up off the interface thread, is cached between runs, and shows its progress on the splash screen and status bar.
- Empty detection and OCR failures now show their reason. The recognition controls stay available on scanned pages.

### AI page read (opt-in)

- "Read with AI…" sends one page image at a time to the user's own AI profile. Before anything leaves the computer, "Review before sending" shows the exact image and the "Exact prompt". Nothing is sent until "I approve sending this page image to the configured AI service" is ticked and "Send page image" is pressed. Each request has a 180-second limit.
- Replies are parsed within fixed limits. Numbers the reply leaves ambiguous are not guessed, and printed blanks stay blank.
- Read pages are merged with tables found in the page's own text. Empty pages do not stall the read. Mixed pages read only the scanned bands that have no text.
- On the balance-sheet page of a listed company's Arabic financial statement, all 80 amounts were read and covered by 18 column sums that match the printed totals.
- Cells read by AI that are not checked by a sum are flagged: "{n} AI cells need review against the printed page."

### Tables, Excel/CSV export, calculated cells, AI calculations

- "Table preview and CSV…" (File) and "Spreadsheet (.xlsx)…" open "Table preview and export" in its own window, with an editable spreadsheet in place of the earlier buttons. Rows and columns can be merged and split, the "Cell type" can be changed, and a rectangle drawn on the page can be detected again.
- Tables that continue across pages are joined, with the source pages shown. A repeated header is kept once. Each sheet gets a title from the start page, which you can rename, and pinned sheet tabs support "Merge with previous sheet", "Split here", "Exclude from export" and "Undo sheet change".
- Export to XLSX, CSV and Markdown, for the selected table or for all tables ("Export all tables to XLSX…", "Export all tables to CSV folder…", "Export selected table to Markdown…").
- "Numbers:" chooses "As printed" (the default, digits kept as printed) or "English (0-9)". The second option converts Arabic-Indic digits to 0-9 in the grid and in exports, and can be switched back.
- "Calculated cells: write formulas where the numbers prove them" (XLSX only). A total is written as an Excel formula only when the sum of its rows reproduces the printed value. The printed value is kept as the cell's cached result, with a review note. On the test statement this gave 18 formulas on the balance-sheet page, 10 on the income statement and 4 on the cash-flow page. Column sums, running net rows, horizontal totals, differences, products and rounded percentages are checked exactly. Printed mismatches are flagged.
- "Suggest calculations with AI…" (opt-in, enabled by "Allow cloud table calculations"): only the table text is sent, with no page image, after "I approve sending this table text to the configured AI service" and "Send table text". Each request has a 120-second limit. Each proposed relation is checked by arithmetic, and only relations that reproduce the printed number are offered. Malformed proposals are rejected one by one ("Rejected (malformed)"). Nothing is applied until "Apply" is pressed.
- The table window shows how many amounts are covered by subtotals that add up, and how many are not checked.
- Uncertain amounts block export until "I understand: export includes uncertain amounts" is ticked. Review markers remain in the exported file. "Mark all reviewed" asks for confirmation first.

### Word export

- Word (DOCX) export uses the same page selection as Print, shows a preview of its content before export, shares table detection with the table preview and keeps source digits.
- Running headers and footers keep repeated statement titles and the full footer, and use real PAGE fields. A two-language monogram letterhead is recognised.
- On Windows, opening the exported file retries through Explorer and reports a reason if it fails.

### Automation and CLI tools

- New or extended tools for `xipdf-cli run` and MCP: `table_preview`, `tables`, `table_grid`, `table_edit_sheets`, `table_calculations`, `doc_export_xlsx` (with explicit formula opt-in and a formula receipt), `doc_export_csv`, `doc_export_markdown`, `ai_page_read_prepare` / `ai_page_read_send` and `ai_table_formulas_prepare` / `ai_table_formulas_send`. The AI tools require the same consent as the interface.
- The acknowledgement guard for uncertain amounts applies to recognition reasons only. Restoring a preview has fixed limits.

### Security fixes

- Ported onto component base 0.14.0 from newer upstream releases:
  - a legacy encryption key length above 128 bits is refused instead of crashing the app;
  - each unused-resource decode during Optimize is bounded by the remaining shared budget;
  - Sign reads each existing DSS stream once, within a decoded-size allowance;
  - automation compares canonical root components exactly and stays inside `--root`;
  - a `doc_save` without a path checks its remembered path against the root;
  - "Export Data as CSV" keeps formula-like cells as text;
  - "Apply Redactions" replaces the recovery snapshot at once;
  - signature validation takes the certification from the catalog.

### Fixes

- The table review window keeps its first position, and resizing it no longer triggers a feedback loop. Compact controls stay pinned above the scrolling sheet, and the "Cell type", number and AI controls wrap instead of being clipped in narrow English and Arabic toolbars.
- The floating table review follows the live page and rectangle. Reviewed edits survive repeated detection, and the reviewed table outline is drawn on the page.
- Comma-grouped amounts are aligned as numbers. A statement sheet is named from its large title repeated on every page. Markdown output says "page 1" for one page and "pages 1-3" for a range.
- Table detection no longer mistakes prose for a grid. It accepts line-built and rounded-rectangle cell lattices and keeps wrapped statement rows.
- AI page crops are correct at every page rotation, and replies are accepted in the page's recognised script.

### Known issues and acceptance limits

- This release remains Alpha. The component base stays at 0.14.0. These upstream fixes are not in r16 and wait for the next base move: redaction proof checks, pattern retirement, shared JBIG2 globals, fresh file IDs after rewrite, key zeroization, damaged-stream rewrite rules, "field scripts cannot request printing" and Windows printing at printer resolution.
- A local amount reader that does not use AI is experimental and is off in r16. Without AI, scanned amounts come from the built-in OCR and must be checked against the page.
- The AI page read and AI calculation results were measured on one public Arabic financial statement. Other layouts, scans and AI providers need their own checks. The provider may retain what is sent.
- Calculated cells use numeric values, so Arabic-Indic digit glyphs cannot be kept in formula cells even with "As printed". CSV carries no cell types.


Alpha software: expect rough edges.
