Commit Graph
75 Commits
Author SHA1 Message Date
Furqan-14andClaude Opus 4.8 660649a562 fix(reflow): kill bulge/merge + font-change on edit; add center/right, IME; harden Raw Text
Reflow (primary editor):
- Geometric backstop in reflow_paragraph: adopt any text object fully inside the paragraph
  bbox that the model's objectIndices omitted (PDFium glyph->object map can return -1), so it's
  deleted + its original font is resolved. Fixes both the leftover-glyph "bulge/merge" and the
  font-substitution-on-edit (same root cause). No-op on correctly-indexed paragraphs (gate-proven
  byte-identical: overlay diff unchanged at 1.69%/1.70%).
- Preserve data-fid on edited contentEditable nodes (extractFlatRuns climbs to nearest styled
  ancestor / inherits from adjacent run) so edits keep their real font instead of the dominant.
- Converge preview & commit through one buildReflowData (no preview-OK/commit-wrong drift).
- Center/right alignment: additive emission branch (greedy path only) + heading-align inference.
- IME composition handling (suppress render mid-composition; don't commit on composing Enter).
- Fix WASM document-handle leak (free superseded versions on documentId change/unmount).
- Quiet the backstop instrumentation (warn -> debug) now the root cause is confirmed.

Raw Text / StreamEditor (beta companion):
- Permission-gate both text_objects endpoints behind canModify; label tool "(beta)".
- P1a: preserve TJ kerning numbers for same-length edits (redistribute into original slots),
  fall back to single-string collapse otherwise (never worse than before).
- P1b: reject edits with characters unencodable in the run's font (clear 400 instead of corruption).
- P2a: commit Raw Text edits as a new document version (add_document) and adopt the id via
  pushHistory, so they join undo/redo instead of mutating in place.
- P2b: exact hit-boxes from real font metrics (re-measured once @font-face loads).

WASM preview rebuilt with the reflow changes; cache version bumped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 17:12:53 +05:30
Furqan-14 21f0bfab9a Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into furqan 2026-06-17 11:39:58 +05:30
Furqan-14 8f881dfbd5 feat: implemented reflow for bullets and single lines along with the fix for save on delay 2026-06-17 11:39:01 +05:30
saqib mir 69d7346803 Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into saqib 2026-06-17 11:26:18 +05:30
saqib mir 7cd400e62a content stream 2026-06-16 19:06:48 +05:30
Furqan-14 c449cf01b9 feat: updated the text reflow engine 2026-06-16 16:45:04 +05:30
Furqan-14 d53f059952 fix: reflow for bullets 2026-06-16 14:13:14 +05:30
Furqan-14 ec509400e7 feat: implemented real flow text editor for paragraphs 2026-06-16 10:56:08 +05:30
Furqan-14 44f64a0d99 feat: implemented caret based selection at any click position 2026-06-12 19:13:29 +05:30
Furqan-14 d47895c990 feat: implemented base editing, underline and striking 2026-06-12 15:04:09 +05:30
Furqan-14 f11bac7419 Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into furqan 2026-06-12 11:31:40 +05:30
Furqan-14 03cabc05a3 feat: implemented unicode and update base fonts, and sub fonts 2026-06-12 11:31:10 +05:30
saqib mir 74a2ba7b8d merge conflict solve 2026-06-11 19:36:38 +05:30
saqib mir 4d900c3d0c Underline + decoration renderer (DecorationBuilder) 2026-06-11 19:30:27 +05:30
Furqan-14 98c63f91fc Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into furqan 2026-06-11 19:22:07 +05:30
Furqan-14 377a9044af feat: implemented hit testing, form field, content stream and base security hardening 2026-06-11 19:19:01 +05:30
saqib mir b52890818b update the pipiline 2026-06-11 18:19:26 +05:30
azeeee05 c410f787f7 done anotations update 2026-06-11 11:46:15 +05:30
azeeee05 addc888545 done Image XObject handler (Do operator) 2026-06-11 11:24:35 +05:30
Furqan-14 fa35589f81 fix: reworked ui components 2026-06-10 21:51:43 +05:30
azeeee05 8f3ce037e3 Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into azeem 2026-06-10 19:30:24 +05:30
azeeee05 d2c429f047 done React: form field viewing (Widget annotations) with saving issues fixed 2026-06-10 19:29:11 +05:30
azeeee05 58b39b6780 React: form field viewing (Widget annotations) 2026-06-10 18:38:38 +05:30
saqib mir d68a9e9239 Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into saqib 2026-06-10 16:13:26 +05:30
Furqan-14 42993cb839 feat: updated annotations 2026-06-10 15:22:34 +05:30
saqib mir e84d522ad3 fix 2026-06-10 14:46:56 +05:30
saqib mir 345f88c516 fix 2026-06-09 10:52:54 +05:30
Furqan-14 dc30a6e845 Merge branch 'dev' into furqan, resolving OverlayLayer conflict 2026-06-09 10:45:55 +05:30
Furqan-14 83e18fff6f feat: implemented export and wasm rendering 2026-06-09 10:39:45 +05:30
saqib mir 6e987bb7e9 phase2 2026-06-09 10:35:12 +05:30
Furqan-14 5408540847 Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into furqan 2026-06-08 16:54:28 +05:30
Furqan-14 5d366132ef feat: page deletion, redaction and page rotation 2026-06-08 16:53:02 +05:30
azeeee05 405f3d6af5 merged code with dev 2026-06-08 16:38:00 +05:30
saqib mir c27a80f840 integration done and testing done 2026-06-08 16:28:10 +05:30
azeeee05 988f6b90df done the highlight 2026-06-08 16:27:53 +05:30
saqib mir 1f16517160 fix the error 2026-06-08 11:27:40 +05:30
saqib mir cc152a79b5 merger 2026-06-08 11:24:27 +05:30
saqib mir 34906a6110 fix 2026-06-08 11:23:27 +05:30
Furqan-14 ed12275976 feat: implemented page rotation and deletion 2026-06-08 11:22:41 +05:30
saqib mir bfa8d0eddf fix the issue 2026-06-06 11:21:31 +05:30
saqib mir ce5ad5bb16 fix 2026-06-05 10:27:39 +05:30
saqib mir 0862afa1ce update some minor fixes 2026-06-03 10:51:33 +05:30
Furqan-14 869b865a1d fix: invalid pdf format 2026-06-02 12:23:34 +05:30
Furqan-14 4e8fcb8aaa Merge branch 'dev' of https://gitea.maskantech.in/gitea_admin/pdf into furqan 2026-06-02 11:40:40 +05:30
Furqan-14 638ea5ba1c feat: Text overlays (draw new text above PDF layer) 2026-06-02 11:38:57 +05:30
saqib mir 581ef030f2 fix the issue 2026-06-02 11:16:49 +05:30
Furqan-14 6eb7c23cc4 feat: wasm build along with c++ facade 2026-06-01 15:28:32 +05:30
saqib mir 61f0b6fde6 fix update 2026-06-01 14:54:55 +05:30
saqib mir 0066587660 fix the issue 2026-05-27 12:27:16 +05:30
saqib mir 5883915016 fix the test 2026-05-26 19:20:02 +05:30