# Fillable maintenance job card

Create a fillable PDF maintenance record with named fields for planned work, completed work, outcome and handover. Adapt the runnable C# example.

PDF · C# walkthrough

Collect the result of authorised work in a PDF viewer with form support.

[Build this report](#example-code)[Download PDF](/downloads/showcase/workflows/pdf-maintenance-job-card/example.pdf) [Try this file in your browser](/browser/inspect-pdf/)

Opens the generated download in a local browser tool. The C# example below creates the document.

**Start with**

Work order and completion record

**Generate**

PDF

[!\[Generated PDF example: Fillable maintenance job card\](/downloads/showcase/workflows/pdf-maintenance-job-card/preview.webp)](/downloads/showcase/workflows/pdf-maintenance-job-card/preview.png)

Page 1 · Generated by the example below

## How it works

1. ### Identify the work
  
  Keep the reference, asset and technician together.
2. ### Capture the outcome
  
  Use named form fields and an initial Awaiting work state.
3. ### Close the handover
  
  Record acknowledgement and follow-up ownership.

## The C# source

The example below shows the document API and layout used for this report. Follow the PDF guide for package setup in your own project.

```csharp
using OfficeIMO.Pdf;

namespace OfficeIMO.Examples.Showcase.Workflows {
    /// <summary>Creates a fillable maintenance job card with named work, outcome and handover fields.</summary>
    internal static class MaintenanceJobCard {
        internal static void Create(string folder) {
            OfficeColor muted = OfficeTheme.Default.Palette.TextMuted;
            PdfDocument.Create(pdf => pdf.Content(content => {
                content.Title("Maintenance job card")
                    .AddParagraph(p => p.AddText("Northwind · Workplace operations · Demonstration form").SetFontSize(OfficeLength.Points(9)), color: muted)
                    .AddPanelParagraph(p => { p.AddText("Scope").SetBold(); p.AddText("\nRecord authorised work and its result. This example does not define a safety procedure or authorise equipment operation."); })
                    .H2("Work order");
                EquipmentInspection.Field(content, "Reference and asset", c => c.TextField("job-reference", width: OfficeLength.Points(300), fontSize: OfficeLength.Points(11), value: "WO-018 / ROOM-04", style: EquipmentInspection.Named("Reference and asset")));
                EquipmentInspection.Field(content, "Assigned technician", c => c.TextField("technician", width: OfficeLength.Points(300), fontSize: OfficeLength.Points(11), style: EquipmentInspection.Named("Assigned technician")));
                EquipmentInspection.Field(content, "Planned work", c => c.TextField("planned-work", width: OfficeLength.Points(450), height: OfficeLength.Points(48), fontSize: OfficeLength.Points(11),
                    value: "Inspect the meeting-room display and record the connection test.", style: EquipmentInspection.Named("Planned work", multiline: true)));
                content.H2("Record the result");
                EquipmentInspection.Field(content, "Work completed", c => c.TextField("completed-work", width: OfficeLength.Points(450), height: OfficeLength.Points(48), fontSize: OfficeLength.Points(11), style: EquipmentInspection.Named("Work completed", multiline: true)));
                EquipmentInspection.Field(content, "Outcome", c => c.ChoiceField("outcome", new[] { "Awaiting work", "Completed", "Follow-up needed" }, value: "Awaiting work", width: OfficeLength.Points(260), fontSize: OfficeLength.Points(11), style: EquipmentInspection.Named("Outcome")));
                EquipmentInspection.Check(content, "handover-acknowledged", "Handover acknowledged");
                EquipmentInspection.Field(content, "Follow-up owner and date", c => c.TextField("follow-up", width: OfficeLength.Points(450), fontSize: OfficeLength.Points(11), style: EquipmentInspection.Named("Follow-up owner and date")));
            }), new PdfCreateOptions { PageSetup = { Footer = { Show = true } } })
                .Meta(title: "Maintenance job card", author: "OfficeIMO").Save(Path.Combine(folder, "example.pdf"));
        }
    }
}
```

[Open the C# source file](/downloads/showcase/workflows/pdf-maintenance-job-card/MaintenanceJobCard.cs.txt)

## API used in this example

- [`OfficeLength`](/api/core/officeimo-officelength/)
- [`OfficeColor`](/api/core/officeimo-officecolor/)
- [`OfficeTheme`](/api/core/officeimo-officetheme/)
- [`PdfCreateOptions`](/api/pdf/officeimo-pdf-pdfcreateoptions/)
- [`PdfDocument`](/api/pdf/officeimo-pdf-pdfdocument/)

## Use this in your project

Replace the fields with your approved process; this example does not authorise work or define safety procedures.

The [PDF guide](/docs/pdf/authoring/) explains package setup and related document APIs.

## Documents and scope

### What the preview shows

The C# source generates the downloadable file. The runner checks PDF text and pages; Poppler renders the page previews.

### What to keep in mind

Replace the fields with your approved process; this example does not authorise work or define safety procedures.

[PDF API reference](/api/pdf/) · [Artifact hashes and provenance](/downloads/showcase/manifest.json)

## Continue with another example

- [PDF**A two-page workshop pack**](/showcase/pdf-workshop-pack/)
- [PDF**A branded invoice with embedded CII**](/showcase/pdf-branded-invoice/)

<!-- PowerForge markdown artifact sha256:7D003131B041DC78485E8BA199CEB20266D8A0926E7F0682F3ED056B520D799D -->
