* desktop: position menus and dialogs against the actual Windows display
(cherry picked from commit 76f52b00dd)
* test: click File and print to PDF on an offset portrait display
(cherry picked from commit 9e79bae8d0)
* test: hit adjacent toolbar controls after moving to portrait
(cherry picked from commit b486ba01e4)
* Allow a third Metal drawable in native macOS fullscreen
(cherry picked from commit 7db123a913f49177ce3d53e54bb9f2b5044861ee)
(cherry picked from commit 7d4c3cfa11)
* Skip the Metal surface lookup between fullscreen transitions
(cherry picked from commit d7e6ac8a3f96afca091a9d64ce4e43d2cc489647)
(cherry picked from commit ede39fcaba)
* Deliver XFA field typing through the native input path
(cherry picked from commit fae3ec8053)
* Wait for the PDF to open before running redaction commands
(cherry picked from commit 9a76183b1f)
* Wait for the unlocked document and the active signing page in UI tests
(cherry picked from commit 6721d2dd3f)
* Isolate successful nightly socket preparation from stable-profile tests
(cherry picked from commit 6ff99bde51)
* Type fractional UI test inputs using the active formatting region
(cherry picked from commit f5f02ea845)
---------
Co-authored-by: Codex <[email protected]>
Co-authored-by: FredApps <[email protected]>
* Return keyboard to reader on blank page view click
(cherry picked from commit b12d744c3a)
* Check field draft survives background focus handoff
(cherry picked from commit 82abf52b1a)
* Preserve the OCR text drag anchor over a scanned page
(cherry picked from commit a28bdd3db1fd5723736b038a16bf7ac13795baf6)
(cherry picked from commit bbb0c61a1c)
* Restore saves to the embedding web page
(cherry picked from commit 24702af7e6)
* Keep host copy saves from marking the open document saved
(cherry picked from commit 2624b9b9d2)
* Use pinned APIs in Space Audit and host save checks
Port of the host save test half only; the Space Audit half is covered by another open PR.
(cherry picked from commit bbde94e743)
* Read the browser clock when painting comment and file timestamps
(cherry picked from commit cbda2fd3ff)
(cherry picked from commit c5984569d1)
* Web: give the document session a browser wall clock (#8957)
(cherry picked from commit b90c6de6e0)
* Test organize thumbnails after moving a page
(cherry picked from commit 0230ac0fc7)
* Test organize deletion of selected and tile pages
(cherry picked from commit 9a12b9b1fb)
* feat(view): rulers along the page area (view.rulers)
View ▸ Show/Hide ▸ Rulers (Ctrl+R / ⌘R) reserves a strip along the top
and left of the document area and draws rulers in the measurement units
preference, from the top-left of the page under the pointer (or the
current page) in its displayed orientation. Major ticks use the 1/2/5
interval that keeps labels apart at the current zoom, the tick count is
capped, and a marker follows the pointer. The choice persists, and the
control channel takes `rulers=on|off` and reports `rulers`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit c8a854134f)
(cherry picked from commit dcb941b3f9)
---------
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Terra854 <[email protected]>
Co-authored-by: yusufmntm <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
winit 0.30 gives an undecorated window WS_CAPTION | WS_BORDER. On some Windows
systems the compositor still reserves that frame, so the content is drawn below
a black bar while the pointer keeps the client coordinates, and a click lands
above the control. PhotoCraft, VectorCraft, FigCraft and DesignCraft fixed the
same symptom by stripping WS_CAPTION/WS_BORDER and having Windows recalculate
the frame; winit puts them back on every flag change, so the guard runs once per
frame and only reads the style once they are gone. WS_THICKFRAME stays, so edge
resizing and snap keep working. Only the integrated (undecorated) title bar is
guarded; the system title bar is untouched.
Ports storytold/photocraft#2401. Not yet verified on affected hardware.
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Release has built against craft-libs 9888a585 since 0.23.2; main stayed on 6afe03f5b, so
main could not take the release-only UI fixes that use the newer craft-libs APIs (centred
TextField, tab wheel browsing, bounded document preview width, wheel messages for fitted
page spreads). This moves main to the same rev; Cargo.lock only changes the craft-libs source.
The 12 craft-libs commits behind this rev are being put on craft-libs main in
https://github.com/storytold/craft-libs/pull/5306.
Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
* Save per-file batch log with step status and failure reasons
Users need an honest per-file record after a batch run instead of only opaque JSON, so a failing file and its reason are not lost.
Add a plain-text per-file log to the batch result and an optional CLI log path that writes one section per file with step status, output name and failure reason plus final counts, annotating step errors with the step name.
Test: batch_log_names_failed_file_step_and_reason failed before the change and passes after.
* Address review for pull request 6519
* Batch log: escape backslashes, wire the CLI log option
* Compare the escaped output path in the batch log test
* Address review for pull request 6519
* Repair review branch integration
* Format the files this pull request changes
* Repair review branch integration
* Repair review branch integration
* Keep dry-run output names clear of files that already exist
* Give the dry-run log test its own output folder
* Address review for pull request 6519
* Format the files this pull request changes
* Repair review branch integration
* Tighten the change after a final review
* Tighten the change after a final review
* Repair review branch integration
* Address review for pull request 6519
* Format the files this pull request changes
* Address review for pull request 6519
* Repair review branch integration
* Address review for pull request 6519
* Format the files this pull request changes
* Repair review branch integration
* Address review for pull request 6519
* Format the files this pull request changes
* Address remaining review requests
* Tighten the change after a final review
---------
Co-authored-by: eliets2 <[email protected]>
cargo test runs the pdfcraft binary's unit tests in one process. The single-instance socket
tests called launch_profile::prepare, which installs the nightly profile in craft_nightly's
process-wide OnceLock, so tests that ran after them saw a nightly launch: the window icon test
compared the nightly icon with the stable one, and stable_defaults_and_nightly_version_line
found is_nightly() true. The FreeBSD workflow runs plain cargo test and failed this way.
The socket tests now parse and validate the launch the same way, without installing it.
Main's UI port (#8160) rewrote the home screen, the title bar and the control options. The embedded flag now hides the community card in the start screen and the Discord button in the title bar, and set_option takes the egui context.
wgpu's OpenGL adapter has no device id and guesses its kind from its
strings: every Intel GPU is "integrated". With no display known (Remote
Desktop), an Intel discrete GPU's OpenGL adapter therefore outranked its own
Direct3D 12 adapter, was declined, and the app fell back to glow although
Direct3D 12 worked (CodeRabbit). An OpenGL adapter now comes after any
other adapter of the same vendor, matched by vendor since OpenGL has no
device id, before kinds are compared. An OpenGL-only GPU still beats the
software adapter, whose vendor is Microsoft.
The test now models wgpu's OpenGL adapters as wgpu reports them: the
vendor's id, device 0 and the guessed kind.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
pick_adapter ranked adapters without their backend, so a GPU that wgpu
offers through both Direct3D 12 and OpenGL got its Direct3D 12 adapter
only because wgpu lists it first. The backend is now the last part of the
ranking. An OpenGL-only GPU still beats the software adapter by kind, and
the selector then declines it so that glow starts on that GPU.
The test covers Direct3D 12, Vulkan, OpenGL and software adapters, in
both orders and with no display known (FredApps' review).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The selector, which now declines wgpu's OpenGL backend, was only
installed when a display's GPU was found by its PCI ids. A display that
has none, such as Remote Desktop's, left wgpu's own choice in charge,
and that could still pick an OpenGL-only GPU. It now runs on Windows
always; with no display known, pick_adapter ranks adapters by kind, most
frugal first, as wgpu's low-power choice does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
An Intel HD 2500 or 4000 (Ivy Bridge) has no Direct3D 12 driver, so wgpu
picks its OpenGL backend. That backend fails in Surface::configure a few
seconds after the window opens ("Failed to wait for GPU to come idle"),
after the start-up retry with OpenGL can help, so the app closed with a
white window (#519, #4134, #5553). eframe's own OpenGL renderer works on
the same GPUs, which is the PDFCRAFT_RENDERER=gl workaround.
The adapter selector now declines an adapter on wgpu's OpenGL backend on
Windows, unless WGPU_BACKEND asked for it, so the existing start-up retry
draws with eframe's OpenGL renderer instead.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases
* chore: update Cargo.lock for rfd dependency in pdfcraft app
* chore: retrigger CI checks
* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy
* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1
* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
On the revision integrated with main's shared atomic writer
(craft::atomic), ordinary extract, split and render write the requested
pages, parts and image size, leave the source byte-for-byte unchanged,
and leave nothing else in the folder. The missing-value regression also
checks that a refused command writes nothing and keeps the source.
`flag(args, "--name")` matched any token, so a value-taking option's
operand was taken for an option. With a password of `--out`,
`extract --password --out in.pdf --pages 1 --out out.pdf` read `in.pdf`
as the output and wrote over the source file.
Add `value_of_flag`, which walks the arguments by the command's option
spec as `validate_options` and `positional` do, and move `info`, `text`,
`combine`, `extract`, `split` and `render` to it. An option left without
an operand at the end of the line is now reported instead of being read
as absent, and a repeated option's last value is the one used.
Fixes#7516
The port (#8160) dropped the result of AppleEvents::connect, the function that drains the Apple-event inbox into the file intake, so 'odoc' and quit events were never delivered. PdfCraftApp keeps it again as os_events, as in v0.22.0, and each frame's logic calls it before it opens the intake. Found by MarcGoudy (#8443).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
After the craft framework port (#8160):
- Test modules gated by cfg(all(test, not(wasm32))) weren't recognised as tests by
clippy, so their expect/panic calls counted as production code; gate them with
cfg(test) and cfg(not(wasm32)) separately.
- Remove dead test helpers, restore the Windows manifest tests the port dropped,
and fix the remaining lints (redundant clones and casts, unused imports).
- Page Setup on Windows called a main_window_handle() that doesn't exist; parent the
driver dialog to the active window again, as before the port.