Skip to main content

SciTeX Rich PDF

SciTeX

Embeddable PDF regions, comments, and a synchronized feed.

Full Documentation · pip install scitex-rich-pdf

pypi python docs

tests cov

Rich PDF is an embeddable PDF viewer with region overlays, comments, and a synchronized feed for SciTeX applications. The host supplies document access, feed content, and action handlers. The SciTeX SDK supplies PDF rendering and coordinate transforms.

Quick Start

Mount a viewer with the embedding example. It uses an unanchored reading note so you can start with any PDF.

Installation

Install the Python distribution and locate its browser assets.

pip install scitex-rich-pdf
python -c 'import scitex_rich_pdf; print(scitex_rich_pdf.get_frontend_package_dir())'

Use the printed directory as an npm file dependency alongside a provider-capable @scitex/sdk installation (0.3.25 or later). Both frontend packages can be resolved from their Python distributions in the host's build. No npm registry publication is required.

import { createPdfViewer } from "@scitex/sdk/ui/pdf-viewer";
import { createRichPdfViewer } from "@scitex/rich-pdf";
import "@scitex/rich-pdf/pdf-provider.css";

const viewer = createRichPdfViewer({
  container: pdfElement,
  feedContainer: feedElement,
  createPdfViewer,
  ports: {
    documents: { resolve: resolveDocument },
    overlays: { list: listRegions },
    feed: { list: listEntries, renderEntry: renderEntryDetails },
    events: { emit: handleEvent },
  },
});
await viewer.load(documentKey);

The host places the PDF and feed containers in its layout. The feed is optional. Use a document key that describes the current revision, and call load again when the revision changes. Return a document with id, src, and optional revision and readonly fields.

Regions have an id, a one-based page, and a bounding box [x0, y0, x1, y1] in bottom-left PDF coordinates. Feed entries have an id, label, and optional overlayId and data. An unanchored entry remains selectable. Clicking a PDF rectangle selects the matching feed entry. Clicking a feed entry selects and scrolls to its rendered rectangle when available. The optional renderEntry callback returns DOM content for details and host actions. The host can handle overlay-preview events from hover or keyboard focus, as well as overlay-select and feed-select events.

The component also accepts comment, pen-input, and mutation-policy ports. See the bundled TypeScript declarations for the complete interface. Perform authorization and persistence in the host. Call destroy to remove component UI and dispose of the renderer.

Architecture

flowchart TD
  Host["Host application"] -->|Document, region and feed ports| RichPDF["SciTeX Rich PDF"]
  RichPDF -->|PDF rendering and geometry| SDK["SciTeX SDK"]

Live Paper uses the component for scientific claim details and actions. The scientific paper architecture describes the complete workflow.

Three Interfaces

Interface Entry point
Browser module @scitex/rich-pdf exports createRichPdfViewer
Python API scitex_rich_pdf.get_frontend_package_dir()
Skills scitex-dev dev skills list --package scitex-rich-pdf --json

Build the documentation

The package provides the scitex-rich-pdf skill through SciTeX Dev. With both packages installed, find it with scitex-dev dev skills list --package scitex-rich-pdf --json.

Build the Sphinx documentation with pip install -e '.[docs]' and sphinx-build -W --keep-going docs/sphinx docs/sphinx/_build/html.

Part of SciTeX

scitex-rich-pdf is part of SciTeX. The provider originated in SciTeX Live Paper.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

License: AGPL-3.0-only.

SciTeX

Metadata

Release files for scitex-rich-pdf 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scitex-rich-pdf 0.1.1
File Size Uploaded Provenance Actions
scitex_rich_pdf-0.1.1.tar.gz 7.7 MB With provenance Details for scitex_rich_pdf-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scitex-rich-pdf 0.1.1
File Interpreter ABI Platform Actions
scitex_rich_pdf-0.1.1-py3-none-any.whl Python 3 none any Details for scitex_rich_pdf-0.1.1-py3-none-any.whl

Total release size: 15.3 MB

Release files / scitex_rich_pdf-0.1.1.tar.gz

Download URL scitex_rich_pdf-0.1.1.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
cc14e543dcb67fffe934796a3c849e15532eb2d81619d7ec694e63c6a6e025ef
BLAKE2b-256 checksum
How to use checksums
be7c4e028cdf3437c54b30eb01e2df9598cec360e6d4504821391993b69e37fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / scitex_rich_pdf-0.1.1-py3-none-any.whl

Download URL scitex_rich_pdf-0.1.1-py3-none-any.whl
Size 7.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dee77528a50f0b807242c64bdab24ca24570755ff466c44c7874172421482170
BLAKE2b-256 checksum
How to use checksums
7d020125d4142671a0d18d18e7f2fa9c30bf2f37c0969ac8396e856715490b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for scitex-rich-pdf 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scitex_rich_pdf-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page