Overlay onto an Official PDF (W-9)

A technique demo: overlay fields onto the real, official 6-page IRS Form W-9 PDF, compositing only onto the form page while leaving the instruction pages untouched.

Overlay onto an Official PDF (W-9)

A technique demo showing how to overlay fields directly onto an official, multi-page government PDF - base.pdf is the real, unmodified 6-page Form W-9 (Rev. March 2024) from irs.gov. process.js composites the overlay only onto page 1 (the actual form); pages 2-6 (the IRS's own instructions) render untouched.

What this demonstrates

  • Using a real multi-page PDF as base.pdf directly, with overlay(file, page) targeting a single page.
  • Conditional block rendering (condition) for the seven mutually-exclusive federal tax classification checkboxes.
  • Cross-field validation (validate.js) - the form requires exactly one of SSN or EIN.

Verify the current revision at irs.gov before use.