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.

Choose appearance: "highlight" for a translucent text or value mark and appearance: "region" for an edge affordance on a figure. The optional ports.preview.render(container, overlay, signal) callback supplies content for the overlay's dialog. The component opens it on hover or keyboard focus. Activation pins it and moves focus into the dialog. Escape dismisses it and returns focus to the mark. Use the abort signal to cancel pending work when the dialog closes. Hosts still supply and authorize any evidence content.

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.2

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.2
File Size Uploaded Provenance Actions
scitex_rich_pdf-0.1.2.tar.gz 7.7 MB With provenance Details for scitex_rich_pdf-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 15.3 MB

Release files / scitex_rich_pdf-0.1.2.tar.gz

Download URL scitex_rich_pdf-0.1.2.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
1ace0a2d4c954c11bb31904ee345d01edf0e61a2e782577624144ddbb0270cec
BLAKE2b-256 checksum
How to use checksums
d29ad2e4f8f5eb9fc267b38e78290dd4d7264d1f894a09f3b7a335cbbfafe0f9
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 22, 2026.

Transparency log

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

Download URL scitex_rich_pdf-0.1.2-py3-none-any.whl
Size 7.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f0d1b21ed4ec810f6a8a091af53ec8edb7a03bd2635dc7efec3ca0a6ff1aa6bc
BLAKE2b-256 checksum
How to use checksums
542fee2392957d1be9010c3059f8970eddc108e5891b14c26f89cd213c1b5b30
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 22, 2026.

Transparency log

Security for scitex-rich-pdf 0.1.2

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.2.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 22, 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