Skip to content

Conversation

@bendersej
Copy link
Collaborator

@bendersej bendersej commented Jan 16, 2026

Background

Adds new programmatic actions to the React embed component for advanced integrations.

Closes:

Changes

  • Add goTo({ page }) action to navigate to a specific page
  • Add createField({ type, page, x, y, width, height, value? }) action to programmatically create annotation fields
  • Add clearFields({ fieldIds?, page? }) action to remove fields by ID or page
  • Add getDocumentContent({ extractionMode? }) action to extract document content (supports OCR)
  • Introduce ActionResult<TData> discriminated union for typed action responses
  • Increase request timeout from 5s to 30s to support OCR extraction
  • Add test coverage
  • Update documentation

@cloudflare-workers-and-pages
Copy link

Deploying web-embed with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a84d95
Status: ✅  Deploy successful!
Preview URL: https://e616c6e8.simplepdf-embed.pages.dev
Branch Preview URL: https://new-embed-actions.simplepdf-embed.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
simplepdf-webhooks 1a84d95 Commit Preview URL

Branch Preview URL
Jan 16 2026, 08:36 PM

@bendersej bendersej marked this pull request as ready for review January 17, 2026 17:24
@bendersej bendersej merged commit cae5ce6 into main Jan 17, 2026
2 checks passed
@bendersej bendersej deleted the new-embed-actions branch January 17, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants