Metadata-Version: 2.4
Name: peerfold-review
Version: 0.1.9
Summary: Local PDF review with browser UI and Acrobat-compatible highlights
Author: Vincenzo Malagola
License: MIT License
        
        Copyright (c) 2026 Vincenzo Malagola
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://vincenzoml.github.io/PeerFold/
Project-URL: Repository, https://github.com/vincenzoml/PeerFold
Project-URL: Issues, https://github.com/vincenzoml/PeerFold/issues
Keywords: pdf,review,annotation,highlights,academic
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Editors :: Documentation
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pymupdf>=1.24.0
Requires-Dist: pywebview>=5.3
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: playwright>=1.44; extra == "dev"
Requires-Dist: pyinstaller>=6.6; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Dynamic: license-file

# PeerFold

Review PDFs in a native window (or your browser with `--browser`). Highlights are written as standard PDF `/Highlight` annotations — open the saved copy in Acrobat, Preview, or any PDF reader.

```bash
pipx install peerfold-review
peerfold manuscript.pdf --reviewer VC
```

Saved reviews: `manuscript_VC-2026-06-09.pdf` next to the original.

## Install

| Platform | Method |
|----------|--------|
| Any (Python 3.10+) | `pipx install peerfold-review` |
| Any (venv) | `pip install peerfold-review` |
| macOS | [peerfold-macos.dmg](https://github.com/vincenzoml/PeerFold/releases/latest) or self-extracting `peerfold-macos` |
| Linux | self-extracting [peerfold-linux](https://github.com/vincenzoml/PeerFold/releases/latest) |
| Windows | self-extracting [peerfold-win.exe](https://github.com/vincenzoml/PeerFold/releases/latest) |

`chmod +x peerfold-macos peerfold-linux` then run with your PDF path.

## Usage

```bash
peerfold paper.pdf                  # open browser UI
peerfold paper.pdf -r VC            # reviewer short name (filename + metadata)
peerfold paper.pdf --port 8765      # fixed port
peerfold paper.pdf --browser          # system browser instead of native window
peerfold paper.pdf --no-browser       # server only
```

Environment: `PEERFOLD_REVIEWER` sets the default reviewer name.

## Features

- Span-accurate text highlights with comment threads
- Citation links open DOIs/URLs directly
- Multi-tab sync, autosave, reviewer switching
- Adobe-compatible annotation format

## Development

```bash
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
peerfold sample.pdf
pytest
```

## License

MIT — see [LICENSE](LICENSE). Uses [PyMuPDF](https://pymupdf.readthedocs.io/) (AGPL).
