=== Inquiros PDF Remediation ===
Contributors: inquiros
Tags: pdf, accessibility, ada, wcag, remediation, media library
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPL-2.0-or-later

Scan and fix PDF accessibility straight from the WordPress Media Library using your Inquiros account.

== Description ==

Adds an **Accessibility** panel to every PDF in the Media Library (list view column, attachment details, and the edit screen) with:

* **Scan** — uploads the PDF to your Inquiros account and shows the number of accessibility issues found, with a link to the full report.
* **Fix** — runs the automated remediation and replaces the file in place (same URL, so every existing link now serves the accessible version) or, if you prefer, saves the fixed PDF as a new Media item.
* **Translate to Spanish** — (accounts with translation enabled) saves a Spanish version as a new Media item.

Everyone who can upload media on your site can use the buttons — there are no per-person logins to manage. The whole site shares one API key from your Inquiros account; remove an editor from WordPress and their access is gone.

The plugin is a pure client of the versioned Inquiros integration API (`/api/v1/documents`, `/api/v1/account`). It also keeps the `pdf-remediation/v1/swap` REST endpoint from PDF Remediation Helper 1.x, which lets the Inquiros web app's own "Publish to WordPress" flow replace a PDF at its original URL. Activating this plugin deactivates PDF Remediation Helper if it is installed.

== Installation ==

1. In the Inquiros app, open **Profile → API access & WordPress plugin** and create an API key (copy it — it is shown once).
2. In WordPress, go to **Plugins → Add New → Upload Plugin**, upload the zip, and activate.
3. Go to **Settings → Inquiros PDF**, paste the key, and click **Test connection**.
4. Open **Media → Library** (list view) — PDFs now show Scan / Fix buttons.

== Frequently Asked Questions ==

= Who is charged for fixes? =
Fixes spend remediation credits from the connected Inquiros account (one credit per page). Scans are free.

= The fixed file replaced the original — where is the original? =
Your Inquiros account keeps every uploaded original; open the report link on the panel to download it. If you'd rather keep the original in WordPress, switch the setting to "Save the fixed PDF as a new Media Library item".

= I replaced a file but visitors still get the old one =
Your host or CDN is caching the PDF. Purge that URL after replacing in place.

= Can I use it from a staging site, or with offloaded media? =
Yes. Files are uploaded to the service directly (fetched from their public URL when they are not on the web server), so the site does not need to be public.

== Changelog ==

= 2.0.0 =
* New: Scan / Fix / Translate buttons in the Media Library, driven by an account API key and the Inquiros `/api/v1` integration API.
* New: Settings → Inquiros PDF (service URL, API key, replace-in-place vs new item, Test connection).
* Renamed from "PDF Remediation Helper" (slug pdf-remediation-helper); the old plugin is deactivated on activation.
* Kept: `pdf-remediation/v1/ping` and `/swap` REST endpoints from 1.x.

= 1.3.1 =
* In-place replacement REST endpoint.
