The PDF regeneration app is an internal admin facility for the three record types that produce PDFs: Document Traces (Templates), Submission Requests (Sign) and Redline Requests (Redline). It lets you:
The app runs in two places:
| Surface | How to reach it | Mode |
|---|---|---|
| Record page panel | Add the PDF Regeneration component to the Lightning record page of Document Trace, Redline Request or Submission Request | Record mode |
| App tab | Add the PDF Regeneration tab (a Visualforce tab hosting the PdfRegen page) to any app |
Bulk mode |
Opening the PdfRegen page directly with ?id=<recordId> also opens record mode for that record.
The panel loads the record and shows:
DocumentPdf.html artifact is uploaded. Records completed before the native engine, or completed while the org used the external service, will not have one. Records that already have a generated PDF will not have one either - artifacts are removed automatically after successful generation to reclaim file storage, and the panel labels this state accordingly. Regenerating such a record simply rebuilds the artifact first.One action button is offered depending on the artifact state:
If the record already has a PDF Content Version Id, the panel shows a warning that a PDF was already generated. You can still regenerate. From version 10.11.0, regeneration retains the existing PDF Content Document Id across engine changes when it identifies a linked file and, for external generation, title alignment succeeds without a conflicting file. The new PDF is a version of that file and the audit fields are stamped again. See File name and versioning before switching engines on records with older or duplicate PDFs.
Every action asks for confirmation and reports the result, including any conversion warnings and whether generation completed synchronously or was queued.
Bulk mode processes a backlog of completed records that never received their PDF:
A record is a candidate only when it is completed AND its PDF Content Version Id field is blank:
| Record type | Completion condition |
|---|---|
| Document Trace | Document Signed is checked |
| Submission Request | Signed Submitters is greater than 0 |
| Redline Request | Status is Complete |
Records whose PDF was already generated (audit field populated) never appear in a scan, so re-running a window is safe: previously processed records are skipped automatically.
Records completed before the native engine have no DocumentPdf.html artifact, so the native engine cannot render them. The app converts them from the legacy stored formats:
Document.html file is parsed, the document body and its custom styles are extracted and rebuilt into the artifact. When the stored file contains only the document body (some collaboration flows store it this way), the custom styles are re-sourced from the record's template style. Page settings and margins come from the template's stored definition; when the template or its definition file is missing, sensible defaults are used and a warning is reported.The converted artifact is saved against the record (DocumentPdf.html plus its DocumentPdf.json manifest), exactly as if the document had been completed with the native engine enabled. Conversion never modifies the original stored files.
Conversion notes:
The app uses the Template or Document PDF Engine override, falling back to General Settings when that field is blank. New Templates and Documents default to Native in version 10.0.0. The resolved setting controls generation:
Heroku, the panel shows a note: generation requests are still sent to the external rendering service, and any artifact you upload through conversion is used when the resolved setting switches to a native engine. Converting ahead of an engine switch is a valid migration strategy.Document.html (Templates/Redline) or no PDFConfig.3bt on its Document (Sign). Such records cannot be converted; regenerate through the external service instead (see Manual PDF regeneration).Conversion preserves merged headers and footers found in the completed Template document. It does not add newly configured headers to an older snapshot that never contained them.
Regeneration without a pending unhashed signature audit does not replace existing Signature Audit hashes. A regenerated PDF with different bytes will not match those hashes. Regeneration alone also does not repair older completed requests whose earlier signers retain intermediate hashes. Keep the delivered PDF and see E-signature attestation and document validation.