Ophthalmic & Eyeglass Prescription (OD/OS) PDF Template — Multi-Engine Code Generator
An FTC Eyeglass Rule-compliant optometry refractive prescription presenting side-by-side OD (Right Eye) and OS (Left Eye) diopter cards, pupillary distance KPI tiles, optical lens coating checkboxes, and optometrist signature.
Customize Visually in Studio | Export Full Source Code (22 Libraries) | Open Sample PDF
Generate Ophthalmic & Eyeglass Prescription (OD/OS) Programmatically (Code & JSON Schema)
Bind dynamic JSON data and compile this layout into standalone production code for @react-pdf/renderer, pdf-lib, Python ReportLab, PHP Dompdf, C# QuestPDF, and 17 more engines.
React / TypeScript (@react-pdf/renderer) Excerpt
import React from 'react';
import { Document, Page, View, Text, Image, FieldSet, Checkbox, Svg, Rect, Path, StyleSheet, Font } from '@react-pdf/renderer';
// This code is generated using codepdf.dev
Font.registerHyphenationCallback((word) => [word]);
// Document-wide defaults configured in the editor.
export const DOCUMENT_DEFAULTS = {
"fontFamily": "Helvetica",
"fontSize": 12,
"textColor": "#000000",
"locale": "en-US",
"currency": "USD",
"currencyDisplay": "symbol",
"timeZone": "GMT",
"dateFormat": "DD/MM/YYYY",
"timeFormat": "HH:mm",
"showPageNumbers": false,
"pageNumberFormat": "{{page}} / {{total}}",
"pageNumberPosition": "center",
"compress": true
};
// … (1401 more lines in full generated file)
Python (ReportLab) Excerpt
from reportlab.lib.colors import HexColor
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
# This code is generated using codepdf.dev
class _NumberedCanvas(canvas.Canvas):
_DOC_KEYS = frozenset({
"_page_states", "_page_stamps", "_active_page", "_num_pages",
"AcroForm", "_doc", "_filename", "_destinations", "_outlines",
"_annotationCount", "_extgstate", "_namedCB", "_onPage",
})
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._page_states = {}
self._page_stamps = {}
self._active_page = 1
self._num_pages = 1
def _save_active_state(self):
self._page_states[self._active_page] = {
# … (724 more lines in full generated file)
Sample Dynamic JSON Payload (sample.json)
{
"opticalClinic": "NEWBURY STREET OPTOMETRY & OPHTHALMIC INSTITUTE",
"clinicDetails": "190 Newbury Street, Boston, MA 02116 · Tel: (617) 555-0164 · FTC Eyeglass Rule Compliant",
"examDate": "2026-09-12",
"expirationDate": "12 September 2028 (24-Month Validity)",
"rxSerial": "OPT-RX-2026-718",
"patientName": "Alex Morgan (DOB: 1992-05-19)",
"odSphere": "-2.25 DS",
"odCylAxis": "-0.75 DC × 175°",
"odAddVa": "ADD: +1.00 | DVA: 20/20",
"osSphere": "-2.00 DS",
"osCylAxis": "-0.50 DC × 010°",
"osAddVa": "ADD: +1.00 | DVA: 20/20",
"binocularPd": "63.0 mm (31.5 / 31.5)",
"nearPd": "60.0 mm",
"prismSpec": "None (0.00 Diopter)",
"optometristNote": "FTC EYEGLASS RULE DISCLOSURE: Patient has been provided a copy of this prescription immediately upon completion of the refractive eye exam at no additional charge. High-index 1.67 digital anti-fatigue lenses recommended for prolonged VDT/monitor work.",
"optometristName": "Dr. Hannah Lindqvist, OD, FAAO"
}
Template Specifications
- Category
- Healthcare
- Page Size
- A4 (portrait)
- Default Engine
- react-pdf-renderer
- License
- Free / MIT Commercial Code Ownership
Key Features
- Ophthalmic letterhead with exam date, 24-month expiration notice, and Code-128 Rx barcode
- Dedicated side-by-side OD (Oculus Dexter) and OS (Oculus Sinister) sphere, cylinder, axis, and ADD cards
- Pupillary distance (distance PD, near PD) and prism diopter measurement tiles
- Interactive lens material and anti-reflective coating checkboxes plus optometrist signature
Ophthalmic & Eyeglass Prescription (OD/OS) Template FAQs
Where can I use the Ophthalmic & Eyeglass Prescription (OD/OS) template?
Use it in optometry and ophthalmology clinics to hand patients a compliant corrective lens prescription they can fulfill at any retail or online optical dispensary.
What optical measurements are included?
It presents side-by-side OD (right eye) and OS (left eye) Sphere, Cylinder, Axis, and ADD values, distance and near Pupillary Distance (PD), prism specs, lens-coating checkboxes, and optometrist signature.
Why does it separate OD and OS with dedicated PD tiles?
Clearly isolating right-eye (OD) and left-eye (OS) diopter readings alongside binocular PD helps optical labs grind lenses accurately without transcription errors.
Related Healthcare PDF Templates
- Standard Medical Prescription (Rx Pad) — Authentic e-prescribing Rx pad with DEA/NPI letterhead, Code-128 barcode, allergy pills, repeating SIG cards, and DAW controls.
- Clinical Diagnostic Laboratory Report — CLIA/CAP accredited diagnostic blood chemistry & lipid panel report with specimen barcode, reference intervals, and flags.
- Hospital Discharge Summary & Care Plan — Inpatient transition-of-care summary featuring hospital course, repeating home medication regimen cards, and red-flag warnings.
- Patient Medical History & Intake Record — Interactive new-patient clinical intake form using fillable text field inputs, allergy pills, review-of-systems checkboxes, and HIPAA consent.
- Medical Fitness & Sick Leave Certificate — Official physician medical excuse and fitness-for-duty attestation with work-restriction checkboxes and QR clinic verification.
- Diagnostic Radiology & Imaging Report — Structured ACR-style MRI/CT radiology report built with organ-system finding cards and bold diagnostic impression callout.