JetsonPDF.Forms
1.0.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package JetsonPDF.Forms --version 1.0.0
NuGet\Install-Package JetsonPDF.Forms -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JetsonPDF.Forms" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JetsonPDF.Forms" Version="1.0.0" />
<PackageReference Include="JetsonPDF.Forms" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JetsonPDF.Forms --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JetsonPDF.Forms, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JetsonPDF.Forms@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JetsonPDF.Forms&version=1.0.0
#tool nuget:?package=JetsonPDF.Forms&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
JetsonPDF.Forms
Open an existing PDF, discover its AcroForm fields, modify them, and save back
via a single-layer incremental update. Built on top of JetsonPDF.Reader and
JetsonPDF.Writer.
using JetsonPDF;
using JetsonPDF.Forms;
using var form = Form.Open("input.pdf");
foreach (var field in form.Fields)
Console.WriteLine($"{field.Name}: {field.Type} = {field.Value}");
form.Fields["Name"].SetText("Jordan");
form.Fields["IsActive"].SetChecked(true);
form.Fields["State"].SetChoice("CA");
var states = form.Fields["State"].Options; // (Export, Display) pairs
// Stamp an image into a text widget. ReadOnly is set by default so Adobe
// Acrobat renders the appearance immediately (it otherwise treats an
// empty-/V text widget's /AP /N as a stale cache).
form.Fields["Photo"].SetImage(Image.FromFile("signature.jpg"));
// Stamp into an unsigned /FT /Sig widget. ReadOnly is never applied to
// signature fields — the user must remain able to click Sign.
if (!form.Fields["SignHere"].IsSigned)
form.Fields["SignHere"].SetImage(Image.FromFile("signature.png"));
// Keep a stamped text field editable (image only visible after focus
// in Acrobat; other viewers render it immediately).
form.Fields["EditablePhoto"].SetImage(img, markReadOnly: false);
form.Fields["OldValue"].Clear(); // per-field reset
// form.Clear(); // reset everything
form.Save("output.pdf");
Features
- Discovers every
/Tx,/Btn,/Ch,/Sigwidget across all pages and groups multi-widget fields (radio groups) under one entry. - Type-safe mutations:
SetText,SetImage,SetChecked,Toggle,SelectRadio,SetChoice,SetChoices,Clear. SetImagebakes a PDF Form XObject/AP /N. Aspect-preserved and centered by default (six alignments +Stretchavailable). Valid on text fields, push buttons, and unsigned signature widgets.markReadOnlyopt-out onSetImagefor the rare case where a text field should stay editable after stamping.FormField.IsSignedflag for inspecting signature widgets without poking at internals.- Combo / list-box
Optionsexposed as(Export, Display)pairs. - Encrypted PDFs supported: incremental update encrypts new objects under the source file's existing key, no re-keying required.
- Single-layer save: repeated
Save()calls within oneForminstance produce byte-identical output — mutations are re-applied against the original source bytes, never stacked on a previous save's output.
SetImage matrix
| Field type | Allowed? | markReadOnly default |
Effect |
|---|---|---|---|
| Text | ✓ | true |
/Ff ReadOnly bit set; Acrobat draws /AP /N statically. |
Text + markReadOnly: false |
✓ | false |
Field stays editable; Acrobat only renders the image after focus. |
| PushButton | ✓ | true (no-op) |
Flag flip is moot — push buttons don't have an "edit" mode. |
| Signature (unsigned) | ✓ | always ignored | ReadOnly is never set so the user can still click Sign. |
| Signature (signed) | ✗ throws | — | Cryptographic byte range covers /AP; any change breaks the seal. |
| CheckBox / Radio / Combo / ListBox | ✗ throws | — | Type-gated; use SetChecked / SelectRadio / SetChoice. |
Limitations
- Read-only on signed signature fields (mutation throws).
- Field creation / deletion is out of scope; only existing fields can be edited.
- Rich-text (
/RV) entries are not produced —SetTextwrites plain/V.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- JetsonPDF.Common (>= 1.0.0)
- JetsonPDF.Reader (>= 1.0.0)
- JetsonPDF.Writer (>= 1.0.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- JetsonPDF.Common (>= 1.0.0)
- JetsonPDF.Reader (>= 1.0.0)
- JetsonPDF.Writer (>= 1.0.0)
- Microsoft.Bcl.HashCode (>= 6.0.0)
-
net8.0
- JetsonPDF.Common (>= 1.0.0)
- JetsonPDF.Reader (>= 1.0.0)
- JetsonPDF.Writer (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 91 | 5/23/2026 |
| 0.2.0-preview | 90 | 5/23/2026 |
| 0.1.0-preview | 94 | 5/17/2026 |