PDF regeneration app

What it does

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.

Record panel

The panel loads the record and shows:

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 tab

Bulk mode processes a backlog of completed records that never received their PDF:

  1. Pick the Record type: Templates (Document Traces), Sign (Submission Requests) or Redline (Redline Requests).
  2. Optionally set a Created from / Created to window.
  3. Click Scan. The app lists up to 200 candidate records with their name, created date and status.
  4. Click Run. Records are processed one at a time: converted to the artifact format when needed, then generated. A progress bar tracks the run and each row shows its outcome. Cancel stops after the record currently in flight; already processed records keep their PDFs.

Which records are candidates

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.

Converting old documents

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:

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:

Relationship to the PDF Engine setting

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:

Troubleshooting

Headers, footers and signature evidence

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.