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

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 }}

{{ 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 }}
{{ end }}
{{ end }} {{ else }}
No forms uploaded yet. Upload a PDF to get started.
{{ end }}