PDF Form Manager
Upload PDFs, convert them to HTML forms, and let users fill them out
{{ if eq .Status "uploaded" }}
PDF uploaded successfully! Click "Convert to HTML" to generate a web form.
{{ else if eq .Status "converted" }}
Form converted to HTML successfully! View it at the public link.
{{ else if eq .Status "deleted" }}
Form deleted successfully.
{{ end }}
Upload New PDF Form
Form Name
PDF File (must contain form fields)
Environment:
{{ if .OpenAIKey }}
✓ OPENAI_API_KEY is set
{{ else }}
✗ OPENAI_API_KEY not set (needed for conversion)
{{ end }} {{ if .OpenAIModel }} | Model: {{ .OpenAIModel }}{{ end }} {{ if .PDFTK }}
✓ pdftk installed
{{ else }}
✗ pdftk not found (needed for form operations)
{{ end }} {{ if .PDFToPPM }}
✓ pdftoppm installed
{{ else }}
✗ pdftoppm not found (needed for PDF→HTML conversion)
{{ end }}
Upload PDF
{{ if .Forms }} {{ range .Forms }}
{{ .Name }}
{{ if .HTMLContent }}Converted{{ else }}Pending{{ end }}
ID: {{ .ID }} | Uploaded: {{ .CreatedAt.Format "Jan 2, 2006 3:04 PM" }}
Open Form
{{ if .HTMLContent }}
Debug
{{ else }}
Convert to HTML
{{ end }}
Delete
{{ .FieldMeta }}
{{ end }} {{ else }}
No forms uploaded yet. Upload a PDF to get started.
{{ end }}