PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Merge PR #3828: Add thumbnail size controls to the Pages inspector
aionggb1986fe954a9
diff --cc ROADMAP.mdindex 96f6ede4b,3d3994971..28122d653--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -172,9 -174,7 +174,10 @@@ Ranked; detail and the full milestone t## Progress log+ - **2026-10-21 (M3, #3808):** Page thumbnails in the Inspector can be resized independently from the document and Organize, with a slider, buttons and `thumbnail-zoom` control option. Selection, page following and reload are covered by regressions. Estimates unchanged.+- **2026-10-20 (M6, calculation order page):** Prepare a form ▸ Calculation order, a page of its own, lists the calculated fields in the order they calculate with their formulas and values, moved with Up/Down arrows (as Acrobat's Set Field Calculation Order), Alt+↑/↓ or by dragging. A card says what is wrong with the order and holds Fix order; a loop has a card of its own that opens one of its formulas. On the page, each calculated field shows its step, and arrows show what the field in focus reads and what reads it. Estimates unchanged.+- **2026-10-20 (M6, calculation order):** The order a form's fields calculate in (`/CO`) is read, checked, fixed and set headlessly with `form_calculation_order`: it says which fields read one calculated later (they show stale values), which read each other in a loop, and which the PDF's order leaves out; Fix order moves only what must move, in one undo step, and the form recalculates. Editing a formula no longer moves its field to the end of the order, and a field the order lists twice calculates once. Estimates unchanged.+- **2026-10-19 (M6, renames keep formulas):** Renaming a field renames it in every calculation that reads it, in the same undo step: `AFSimple_Calculate` field lists, simplified field notation (the comment and the JavaScript after it) and `getField` calls naming it in one string literal; the rest of each script is kept as written. A sum used to drop the renamed field, notation read it as 0 and a script kept a stale value. Field Properties says how many formulas changed and `form_set_props` lists them as `formulas_updated`. Names built at run time and other events' scripts are not rewritten. Estimates unchanged.- **2026-10-19 (M14, #3373):** The main menu and its long submenus scroll in short windows, keeping their commands reachable. Estimates unchanged.diff --cc crates/ui-egui/src/i18n/ar.tsvindex f6b3d093d,60408f4ff..66852656b--- a/crates/ui-egui/src/i18n/ar.tsv+++ b/crates/ui-egui/src/i18n/ar.tsv@@@ -2749,11 -2711,6 +2749,14 @@@ certificate Version الإصدا�Make properties default جعل الخصائص افتراضيةPages selected الصفحات المحددةPage properties خصائص الصفحة+ Bulleted list قائمة نقطية+ Numbered list قائمة مرقمة+ Alignment المحاذاة+ Superscript نص مرتفع+ Subscript نص منخفض+ Paragraph spacing تباعد الفقرات+ Less أقل+ Other options خيارات أخرى+ Thumbnail size حجم الصور المصغرة+ Smaller thumbnails تصغير الصور المصغرة+ Larger thumbnails تكبير الصور المصغرةdiff --cc crates/ui-egui/src/i18n/bg.tsvindex 90e152c27,f19946fc8..6e3536015--- a/crates/ui-egui/src/i18n/bg.tsv+++ b/crates/ui-egui/src/i18n/bg.tsv@@@ -2435,12 -2397,6 +2435,15 @@@ animation effects Off Изключен�Make properties default Задаване като свойства по подразбиранеPages selected Избрани странициPage properties Свойства на страницата+ Font Шрифт+ Bulleted list Списък с водещи символи+ Numbered list Номериран списък+ Alignment Подравняване+ Superscript Горен индекс+ Subscript Долен индекс+ Paragraph spacing Разстояние между абзаците+ Less По-малко+ Other options Други опции+ Thumbnail size Размер на миниатюрите+ Smaller thumbnails По-малки миниатюри+ Larger thumbnails По-големи миниатюриdiff --cc crates/ui-egui/src/i18n/cs.tsvindex 1366cb254,c55a29b05..ac20dcd70--- a/crates/ui-egui/src/i18n/cs.tsv+++ b/crates/ui-egui/src/i18n/cs.tsv@@@ -2546,12 -2508,6 +2546,15 @@@ animation effects Off VypnutMake properties default Nastavit vlastnosti jako výchozíPages selected Vybrané stránkyPage properties Vlastnosti stránky+ Font Písmo+ Bulleted list Odrážkový seznam+ Numbered list Číslovaný seznam+ Alignment Zarovnání+ Superscript Horní index+ Subscript Dolní index+ Paragraph spacing Mezera mezi odstavci+ Less Méně+ Other options Další možnosti+ Thumbnail size Velikost miniatur+ Smaller thumbnails Menší miniatury+ Larger thumbnails Větší miniaturydiff --cc crates/ui-egui/src/i18n/de.tsvindex ac136cd91,ae4d44ec8..d6f38a030--- a/crates/ui-egui/src/i18n/de.tsv+++ b/crates/ui-egui/src/i18n/de.tsv@@@ -2473,12 -2435,6 +2473,15 @@@ animation effects Off AuMake properties default Eigenschaften als Standard festlegenPages selected Ausgewählte SeitenPage properties Seiteneigenschaften+ Font Schrift+ Bulleted list Aufzählung+ Numbered list Nummerierte Liste+ Alignment Ausrichtung+ Superscript Hochgestellt+ Subscript Tiefgestellt+ Paragraph spacing Absatzabstand+ Less Weniger+ Other options Weitere Optionen+ Thumbnail size Miniaturgröße+ Smaller thumbnails Kleinere Miniaturen+ Larger thumbnails Größere Miniaturendiff --cc crates/ui-egui/src/i18n/el.tsvindex 133e8ca8e,996cb4ce4..18c84d609--- a/crates/ui-egui/src/i18n/el.tsv+++ b/crates/ui-egui/src/i18n/el.tsv@@@ -2478,12 -2440,6 +2478,15 @@@ animation effects Off Ανενεργ�Make properties default Ορισμός ιδιοτήτων ως προεπιλογήPages selected Επιλεγμένες σελίδεςPage properties Ιδιότητες σελίδας+ Font Γραμματοσειρά+ Bulleted list Λίστα με κουκκίδες+ Numbered list Αριθμημένη λίστα+ Alignment Στοίχιση+ Superscript Εκθέτης+ Subscript Δείκτης+ Paragraph spacing Απόσταση παραγράφων+ Less Λιγότερα+ Other options Άλλες επιλογές+ Thumbnail size Μέγεθος μικρογραφιών+ Smaller thumbnails Μικρότερες μικρογραφίες+ Larger thumbnails Μεγαλύτερες μικρογραφίεςdiff --cc crates/ui-egui/src/i18n/fr.tsvindex aa83f8197,42967e6df..00046dc1a--- a/crates/ui-egui/src/i18n/fr.tsv+++ b/crates/ui-egui/src/i18n/fr.tsv@@@ -2472,12 -2434,6 +2472,15 @@@ animation effects Off DésactivéMake properties default Définir comme propriétés par défautPages selected Pages sélectionnéesPage properties Propriétés de la page+ Font Police+ Bulleted list Liste à puces+ Numbered list Liste numérotée+ Alignment Alignement+ Superscript Exposant+ Subscript Indice+ Paragraph spacing Espacement des paragraphes+ Less Moins+ Other options Autres options+ Thumbnail size Taille des vignettes+ Smaller thumbnails Réduire les vignettes+ Larger thumbnails Agrandir les vignettesdiff --cc crates/ui-egui/src/i18n/hu.tsvindex 123be343f,026cb6700..09242cd0d--- a/crates/ui-egui/src/i18n/hu.tsv+++ b/crates/ui-egui/src/i18n/hu.tsv@@@ -2471,12 -2433,6 +2471,15 @@@ animation effects Off KMake properties default Tulajdonságok beállítása alapértelmezettkéntPages selected Kijelölt oldalakPage properties Oldaltulajdonságok+ Font Betűtípus+ Bulleted list Felsorolás+ Numbered list Számozott lista+ Alignment Igazítás+ Superscript Felső index+ Subscript Alsó index+ Paragraph spacing Bekezdéstávolság+ Less Kevesebb+ Other options Egyéb beállítások+ Thumbnail size Bélyegképek mérete+ Smaller thumbnails Kisebb bélyegképek+ Larger thumbnails Nagyobb bélyegképekdiff --cc crates/ui-egui/src/i18n/it.tsvindex 71715dc5d,a15a8b675..5abc16b6c--- a/crates/ui-egui/src/i18n/it.tsv+++ b/crates/ui-egui/src/i18n/it.tsv@@@ -2684,12 -2646,6 +2684,15 @@@ certificate Key usage Utilizzo chiavcertificate Self-signed Autofirmatocertificate SHA-1 digest Impronta SHA-1certificate SHA-256 digest Impronta SHA-256+ Font Carattere+ Bulleted list Elenco puntato+ Numbered list Elenco numerato+ Alignment Allineamento+ Superscript Apice+ Subscript Pedice+ Paragraph spacing Spaziatura paragrafi+ Less Meno+ Other options Altre opzioni+ Thumbnail size Dimensione miniature+ Smaller thumbnails Miniature più piccole+ Larger thumbnails Miniature più grandidiff --cc crates/ui-egui/src/i18n/ja.tsvindex f73e753de,66fa5fb3e..47a566882--- a/crates/ui-egui/src/i18n/ja.tsv+++ b/crates/ui-egui/src/i18n/ja.tsv@@@ -2472,12 -2434,6 +2472,15 @@@ animation effects Off オ�Make properties default プロパティをデフォルトに設定Pages selected 選択したページPage properties ページのプロパティ+ Font フォント+ Bulleted list 箇条書き+ Numbered list 番号付きリスト+ Alignment 配置+ Superscript 上付き+ Subscript 下付き+ Paragraph spacing 段落間隔+ Less 折りたたむ+ Other options その他のオプション+ Thumbnail size サムネイルのサイズ+ Smaller thumbnails サムネイルを小さく+ Larger thumbnails サムネイルを大きくdiff --cc crates/ui-egui/src/i18n/kk.tsvindex 7f113d4bf,640575472..861890857--- a/crates/ui-egui/src/i18n/kk.tsv+++ b/crates/ui-egui/src/i18n/kk.tsv@@@ -2470,12 -2432,6 +2470,15 @@@ animation effects Off Өшірул�Make properties default Қасиеттерді әдепкі етуPages selected Таңдалған беттерPage properties Бет қасиеттері+ Font Қаріп+ Bulleted list Таңбалауыш тізім+ Numbered list Нөмірленген тізім+ Alignment Туралау+ Superscript Жоғарғы индекс+ Subscript Төменгі индекс+ Paragraph spacing Абзац аралығы+ Less Азырақ+ Other options Басқа параметрлер+ Thumbnail size Нобай өлшемі+ Smaller thumbnails Кішірек нобайлар+ Larger thumbnails Үлкенірек нобайларdiff --cc crates/ui-egui/src/i18n/lt.tsvindex 6448c6949,2bb77db9a..f31541bc3--- a/crates/ui-egui/src/i18n/lt.tsv+++ b/crates/ui-egui/src/i18n/lt.tsv@@@ -2723,11 -2685,6 +2723,14 @@@ key Space TarpaThe password must have at least 6 characters. Slaptažodį turi sudaryti bent 6 simboliai.This file changed on disk. Reload it to see the new version; your unsaved changes will be lost. Šis failas diske pasikeitė. Įkelkite jį iš naujo, kad pamatytumėte naują versiją; neįrašyti pakeitimai bus prarasti.theme Appearance Išvaizda+ Bulleted list Sąrašas su ženkleliais+ Numbered list Numeruotas sąrašas+ Alignment Lygiuotė+ Superscript Viršutinis indeksas+ Subscript Apatinis indeksas+ Paragraph spacing Tarpas tarp pastraipų+ Less Mažiau+ Other options Kitos parinktys+ Thumbnail size Miniatiūrų dydis+ Smaller thumbnails Mažesnės miniatiūros+ Larger thumbnails Didesnės miniatiūrosdiff --cc crates/ui-egui/src/i18n/pl.tsvindex 578b512bb,99bdd9486..833719e83--- a/crates/ui-egui/src/i18n/pl.tsv+++ b/crates/ui-egui/src/i18n/pl.tsv@@@ -2448,12 -2410,6 +2448,15 @@@ animation effects Off WyłączonMake properties default Ustaw właściwości jako domyślnePages selected Zaznaczone stronyPage properties Właściwości strony+ Font Czcionka+ Bulleted list Lista punktowana+ Numbered list Lista numerowana+ Alignment Wyrównanie+ Superscript Indeks górny+ Subscript Indeks dolny+ Paragraph spacing Odstęp między akapitami+ Less Mniej+ Other options Inne opcje+ Thumbnail size Rozmiar miniatur+ Smaller thumbnails Mniejsze miniatury+ Larger thumbnails Większe miniaturydiff --cc crates/ui-egui/src/i18n/pt-br.tsvindex ee12fe7ab,b1f46c5a0..134ce0677--- a/crates/ui-egui/src/i18n/pt-br.tsv+++ b/crates/ui-egui/src/i18n/pt-br.tsv@@@ -2486,12 -2448,6 +2486,15 @@@ animation effects Off DesativadoMake properties default Tornar propriedades padrãoPages selected Páginas selecionadasPage properties Propriedades da página+ Font Fonte+ Bulleted list Lista com marcadores+ Numbered list Lista numerada+ Alignment Alinhamento+ Superscript Sobrescrito+ Subscript Subscrito+ Paragraph spacing Espaçamento entre parágrafos+ Less Menos+ Other options Outras opções+ Thumbnail size Tamanho das miniaturas+ Smaller thumbnails Miniaturas menores+ Larger thumbnails Miniaturas maioresdiff --cc crates/ui-egui/src/i18n/ru.tsvindex 3baec4560,363fd5bf0..49eae5fee--- a/crates/ui-egui/src/i18n/ru.tsv+++ b/crates/ui-egui/src/i18n/ru.tsv@@@ -2385,12 -2347,6 +2385,15 @@@ animation effects Off Вык�Make properties default Сделать свойства стандартнымиPages selected Выделенные страницыPage properties Свойства страницы+ Font Шрифт+ Bulleted list Маркированный список+ Numbered list Нумерованный список+ Alignment Выравнивание+ Superscript Надстрочный+ Subscript Подстрочный+ Paragraph spacing Интервал между абзацами+ Less Меньше+ Other options Другие параметры+ Thumbnail size Размер миниатюр+ Smaller thumbnails Уменьшить миниатюры+ Larger thumbnails Увеличить миниатюрыdiff --cc crates/ui-egui/src/i18n/sl.tsvindex 5ba9dc90c,d696b491c..10c7aa269--- a/crates/ui-egui/src/i18n/sl.tsv+++ b/crates/ui-egui/src/i18n/sl.tsv@@@ -2477,12 -2439,6 +2477,15 @@@ animation effects Off IzklopljenMake properties default Nastavi lastnosti kot privzetePages selected Izbrane straniPage properties Lastnosti strani+ Font Pisava+ Bulleted list Označen seznam+ Numbered list Oštevilčen seznam+ Alignment Poravnava+ Superscript Nadpisano+ Subscript Podpisano+ Paragraph spacing Razmik med odstavki+ Less Manj+ Other options Druge možnosti+ Thumbnail size Velikost sličic+ Smaller thumbnails Manjše sličice+ Larger thumbnails Večje sličicediff --cc crates/ui-egui/src/i18n/te.tsvindex e0d6a2b34,8de3a3f3a..445be8319--- a/crates/ui-egui/src/i18n/te.tsv+++ b/crates/ui-egui/src/i18n/te.tsv@@@ -2381,12 -2343,6 +2381,15 @@@ animation effects Off ఆఫ�Make properties default లక్షణాలను డిఫాల్ట్గా చేయిPages selected ఎంచుకున్న పేజీలుPage properties పేజీ లక్షణాలు+ Font ఫాంట్+ Bulleted list బుల్లెట్ జాబితా+ Numbered list సంఖ్యల జాబితా+ Alignment అమరిక+ Superscript సూపర్స్క్రిప్ట్+ Subscript సబ్స్క్రిప్ట్+ Paragraph spacing పేరా అంతరం+ Less తక్కువ+ Other options ఇతర ఎంపికలు+ Thumbnail size థంబ్నెయిల్ పరిమాణం+ Smaller thumbnails చిన్న థంబ్నెయిల్లు+ Larger thumbnails పెద్ద థంబ్నెయిల్లుdiff --cc crates/ui-egui/src/i18n/tr.tsvindex 48d34a30d,51defd4ef..4d9b88f77--- a/crates/ui-egui/src/i18n/tr.tsv+++ b/crates/ui-egui/src/i18n/tr.tsv@@@ -2468,12 -2430,6 +2468,15 @@@ animation effects Off Kapal�Make properties default Özellikleri varsayılan yapPages selected Seçilen sayfalarPage properties Sayfa özellikleri+ Font Yazı tipi+ Bulleted list Madde işaretli liste+ Numbered list Numaralı liste+ Alignment Hizalama+ Superscript Üst simge+ Subscript Alt simge+ Paragraph spacing Paragraf aralığı+ Less Daha az+ Other options Diğer seçenekler+ Thumbnail size Küçük resim boyutu+ Smaller thumbnails Küçük resimleri küçült+ Larger thumbnails Küçük resimleri büyütdiff --cc crates/ui-egui/src/i18n/uk.tsvindex 246a4a2c5,25e5c12a3..1137db7f6--- a/crates/ui-egui/src/i18n/uk.tsv+++ b/crates/ui-egui/src/i18n/uk.tsv@@@ -2494,12 -2456,6 +2494,15 @@@ animation effects Off Вимкнен�Make properties default Зробити властивості типовимиPages selected Вибрані сторінкиPage properties Властивості сторінки+ Font Шрифт+ Bulleted list Маркований список+ Numbered list Нумерований список+ Alignment Вирівнювання+ Superscript Надрядковий+ Subscript Підрядковий+ Paragraph spacing Інтервал між абзацами+ Less Менше+ Other options Інші параметри+ Thumbnail size Розмір мініатюр+ Smaller thumbnails Зменшити мініатюри+ Larger thumbnails Збільшити мініатюриdiff --cc crates/ui-egui/src/i18n/zh-hans.tsvindex 645c0ab30,5e771d883..2ef3d54e9--- a/crates/ui-egui/src/i18n/zh-hans.tsv+++ b/crates/ui-egui/src/i18n/zh-hans.tsv@@@ -2436,12 -2398,6 +2436,15 @@@ animation effects Off �Make properties default 将属性设为默认Pages selected 选定的页面Page properties 页面属性+ Font 字体+ Bulleted list 项目符号列表+ Numbered list 编号列表+ Alignment 对齐+ Superscript 上标+ Subscript 下标+ Paragraph spacing 段落间距+ Less 收起+ Other options 其他选项+ Thumbnail size 缩略图大小+ Smaller thumbnails 缩小缩略图+ Larger thumbnails 放大缩略图diff --cc crates/ui-egui/src/i18n/zh-hant.tsvindex 712f0666a,86a81fa20..fcaeea161--- a/crates/ui-egui/src/i18n/zh-hant.tsv+++ b/crates/ui-egui/src/i18n/zh-hant.tsv@@@ -2422,12 -2384,6 +2422,15 @@@ animation effects Off �Make properties default 將內容設為預設Pages selected 選取的頁面Page properties 頁面屬性+ Font 字型+ Bulleted list 項目符號清單+ Numbered list 編號清單+ Alignment 對齊+ Superscript 上標+ Subscript 下標+ Paragraph spacing 段落間距+ Less 收起+ Other options 其他選項+ Thumbnail size 縮圖大小+ Smaller thumbnails 縮小縮圖+ Larger thumbnails 放大縮圖diff --cc docs/roadmap.mdindex 201cc1d6c,ab213d7bb..7f7ce1595--- a/docs/roadmap.md+++ b/docs/roadmap.md@@@ -202,9 -202,7 +204,10 @@@ M2 (renderer), M7 (content editing), M1| Date | Change | Summary ||---|---|---|+ | 2026-10-21 | minor | M3, #3808: the Pages inspector has an independent 50–150% thumbnail size slider and buttons; selection and current-page following are retained, with headless ui.set coverage. Estimates unchanged. |+| 2026-10-20 | minor | M6: Prepare a form ▸ Calculation order: formulas and values, what is wrong and Fix order, Up/Down, Alt+↑/↓ and drag, links on the page. Estimates unchanged. |+| 2026-10-20 | minor | M6: `form_calculation_order` reads, checks, fixes and sets the calculation order; an edited formula keeps its place in `/CO`. Estimates unchanged. |+| 2026-10-19 | minor | M6: renaming a field renames it in the calculations that read it; `form_set_props` returns `formulas_updated` and Field Properties says how many changed. Estimates unchanged. || 2026-10-18 | minor | M5, PR #1971: nested source `/Page` and `/Pages` dictionaries export as null without traversing page content or the page tree. Synthetic saved/reopened three-page regression retains unrelated metadata and aliases. FDF import semantics, copied-graph limits and estimates unchanged. || 2026-10-15 | minor | M5: budget retained FDF entries before cloning; discovery keeps lazy array owners and annotation positions, with alias/cache-eviction stress fixtures. Limits cover the copied graph; source parsing/page discovery retain existing COS/parser limits, with no total source-memory bound. FDF import semantics and estimates unchanged. || 2026-10-15 | minor | M7: Edit text caret height follows its row, with a kittest regression; estimates unchanged |diff --cc parity/acrobat-features.tomlindex ad00b0115,70e53370a..f56bd6bec--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@@ -2884,8 -2884,8 +2884,8 @@@ milestone = "M4status = "shipped"commands = ["page.organize"]tools = []-evidence = ["crates/ui-egui/tests/editing.rs::page_grid_zooms_with_its_buttons_keys_and_pinch", "crates/ui-egui/tests/editing.rs::a_zoomed_page_grid_still_inserts_and_moves_at_the_right_gap", "crates/ui-egui/tests/editing.rs::zoomed_pages_in_view_are_rendered_at_the_size_drawn"]-notes = "Organize page grid: 50–300% with toolbar buttons (and a percentage that resets to 100%), trackpad pinch or Ctrl/⌘ + wheel about the page under the pointer, and ⌘+ / ⌘− / ⌘0; pages drawn larger than their thumbnails are rendered at the size drawn while they are in view (the thumbnail stands in until then, and after an edit), so text stays sharp however long the document is. Missing in Organize: a slider as in Acrobat; the size is per document view and not remembered between sessions. The Pages inspector has its own 50–150% slider and buttons (#3808)."+evidence = ["crates/ui-egui/tests/editing.rs::page_grid_zooms_with_its_buttons_keys_and_pinch", "crates/ui-egui/tests/editing.rs::a_zoomed_page_grid_still_inserts_and_moves_at_the_right_gap", "crates/ui-egui/tests/editing.rs::zoomed_pages_in_view_are_rendered_at_the_size_drawn", "crates/ui-egui/tests/editing.rs::page_grid_size_is_remembered_for_every_document_and_restart"]- notes = "Organize page grid: 50–300% with toolbar buttons (and a percentage that resets to 100%), trackpad pinch or Ctrl/⌘ + wheel about the page under the pointer, and ⌘+ / ⌘− / ⌘0; pages drawn larger than their thumbnails are rendered at the size drawn while they are in view (the thumbnail stands in until then, and after an edit), so text stays sharp however long the document is. As in Acrobat, the size last chosen is one for every document and kept in the settings across restarts (also set by --grid-zoom). Missing: a slider as in Acrobat; the Pages side panel has no size control."++notes = "Organize page grid: 50–300% with toolbar buttons (and a percentage that resets to 100%), trackpad pinch or Ctrl/⌘ + wheel about the page under the pointer, and ⌘+ / ⌘− / ⌘0; pages drawn larger than their thumbnails are rendered at the size drawn while they are in view (the thumbnail stands in until then, and after an edit), so text stays sharp however long the document is. As in Acrobat, the size last chosen is one for every document and kept in the settings across restarts (also set by --grid-zoom). Missing in Organize: a slider as in Acrobat. The Pages inspector has its own 50–150% slider and buttons (#3808)."[[feature]]id = "organize.split-every-n"