PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Commits on main
M11: Optimizer Clean Up removes invalid links and bookmark destinations and unreferenced named destinations
ba4a7a6 Brandon Thomas committed 1 month ago
M11: PDF Optimizer ▸ Audit space usage: bytes and share of the file per kind of content; doc_audit_space
763cd70 Brandon Thomas committed 1 month ago
M3: Advanced Search panel (⇧⌘F): every match with its context, by page; click to go; shares the find bar's search
55275cd Brandon Thomas committed 1 month ago
M12: Add alternate text: figures one by one with a preview, alternate text or Decorative (content becomes an artifact); accessibility_figures / accessibility_set_alt
e9322b5 Brandon Thomas committed 1 month ago
M12: Heading-nesting findings read naturally ("H3 follows an H1")
095a176 Brandon Thomas committed 1 month ago
M5: Custom stamps: create from a PDF page or an image under a category and name, kept in the stamp library, placed at natural size; stamp_custom tool
e8bc0db Brandon Thomas committed 1 month ago
M6: Image fields: Prepare a form ▸ Image field places an icon-only button that asks for a picture when clicked (buttonImportIcon recognised natively); form_set_image
d5c6598 Brandon Thomas committed 1 month ago
M4: Combine files lists the files first: reorder, remove, add more, and choose each file's pages (doc_combine pages)
8486a35 Brandon Thomas committed 1 month ago
M12: Accessibility Checker: new a11y crate with Acrobat's 32 rules in 7 categories, HTML report, fixes (language, title, tab order); options dialog and results panel (Fix, Skip Rule, Explain, Check Again, Show Report); accessibility_check / _report / _fix tools
0b628d5 Brandon Thomas committed 1 month ago
M10: Export a PDF ▸ Export all images: JPEGs unchanged, other images as PNG with alpha; skipped images reported; doc_export_all_images
1e69a92 Brandon Thomas committed 1 month ago
M10: MCP resources for open documents: information, text, page text and page images (resources/list, templates, read)
f181745 Brandon Thomas committed 1 month ago
M1: List document revisions and open an earlier one (Document Properties ▸ Advanced; doc_revisions, doc_open_revision); PDF version reads 1.7, not 17
19b5b1d Brandon Thomas committed 1 month ago
M3: Tabs and the window title show the document title when Initial View asks for it (DisplayDocTitle); parity for setting the document language
6a9dd32 Brandon Thomas committed 1 month ago
M3: View ▸ Zoom ▸ Fit visible (⌘3): zoom so the current page's visible content spans the window
d26821f Brandon Thomas committed 1 month ago
M6: Prepare a form ▸ Preview (fill the form as a reader would; Edit fields goes back) and Field Properties ▸ Locked (annotation Locked flag; properties greyed out until unlocked, values still fillable); form_set_props takes locked
c0f9c73 Brandon Thomas committed 1 month ago
M6: Several fields at once in Prepare a form: Shift/⌘-click to select, then right-click to Align (left, right, top, bottom, centres), Distribute evenly, or Set Fields to Same Size, anchored on the right-clicked field; one undo step each. Test fix: the area-highlight test waits for the text layer before dragging over text
4df7a73 Brandon Thomas committed 1 month ago
M6: Duplicate a field across pages (right-click ▸ Duplicate…, all pages or a range): widgets of the same field share one value; a field that is its own widget is split into a field and a widget kid. Prepare mode gets a field context menu (Properties, Duplicate, Delete)
aac0db4 Brandon Thomas committed 1 month ago
M6: Date picker: date fields show a month calendar while focused; the picked day is written in the field's own format
cce71c7 Brandon Thomas committed 1 month ago
M5: Eraser for drawings (Draw flyout): rubs out the parts of ink strokes it passes over, splitting strokes and deleting emptied drawings, in one undo step
e0d954f Brandon Thomas committed 1 month ago
M5: Attach a file as a comment (push pin, paperclip, graph or tag icon in PrintCraft's own drawings; the file is embedded and listed under Attachments); comment_add type attachment
968d26a Brandon Thomas committed 1 month ago
M5: Area highlight (drag the highlighter off text) and Replace Text (strikeout plus a grouped caret holding the replacement; Highlight flyout, comment_add type replace)
bf58d1f Brandon Thomas committed 1 month ago
M3: Marquee zoom (drag to fill the window with an area, click to zoom in) and Take a Snapshot (copies an area at the current zoom to the clipboard as an image)
e61f75d Brandon Thomas committed 1 month ago
M4: Cut, copy and paste pages in Organize Pages (⌘C/⌘X/⌘V and a thumbnail context menu; paste after the selection, across documents; the last page can't be cut)
7515170 Brandon Thomas committed 1 month ago
M5/M6: Make Current Properties Default for comments (colour, opacity, width become the tool's default); required fields get a red border when fields are highlighted
4991a59 Brandon Thomas committed 1 month ago
M7: Backgrounds and watermarks from a file: an image or a page of a PDF (imported as a form XObject that draws upright, inherited resources included), scaled relative to the page, with rotation, opacity and placement; Source ▸ File in the dialogs; doc_watermark / doc_background take file, file_page and scale
05195a2 Brandon Thomas committed 1 month ago
M6: Order tabs manually: the Fields panel lists fields in tab order and, while preparing a form, moves a field earlier or later on its page (widgets reordered in /Annots, other annotations keep their places, page switches to annotation order); form_tab_order takes field + move
d977113 Brandon Thomas committed 1 month ago