Interactive PDF forms
Turn document fields into a fillable PDF
Edit the partner onboarding form directly in the document, review the fields that will be exported, and choose which actions the resulting PDF permits.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
One form model, two document formats
TX Text Control preserves Word-compatible form fields as interactive AcroForm widgets during PDF creation. The document can therefore be authored in the browser and distributed as a familiar fillable PDF without rebuilding the form in a separate PDF library.
Browser serialization
TXTextControl.saveDocument
Server document
ServerTextControl.Load / Save
PDF permissions
SaveSettings.DocumentAccessPermissions
Permission password
SaveSettings.MasterPassword
How it works
TXTextControl.saveDocument serializes the current browser document as InternalUnicodeFormat. This captures the latest field values, field metadata, formatting, and page layout in one Base64-encoded payload.
The controller loads that payload into a dedicated ServerTextControl. Saving with BinaryStreamType.AdobePDF converts the document form fields into fillable PDF fields automatically.
PDF access restrictions require a MasterPassword. The form-workflow profile combines AllowAuthoringFields and AllowHighLevelPrinting, allowing recipients to complete and print the form while protecting the surrounding document content.
The response includes the PDF bytes and server-derived metadata. The browser downloads the file and reflects its byte size, preserved field count, and selected permission profile in the result card.
TXTextControl.saveDocument(
TXTextControl.StreamType.InternalUnicodeFormat,
async event => {
const response = await fetch("/pdf", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
document: event.data,
permissionProfile: "form-only"
})
});
});
var settings = new SaveSettings {
MasterPassword = "123",
DocumentAccessPermissions =
DocumentAccessPermissions.AllowAuthoringFields |
DocumentAccessPermissions.AllowHighLevelPrinting
};
textControl.Save(out var pdf, BinaryStreamType.AdobePDF, settings);
NuGet packages
TXTextControl.TextControl.Core.SDK
34.0.4
Provides the core document model and server-side document processing APIs.
dotnet add package TXTextControl.TextControl.Core.SDK --version 34.0.4
Provides the browser-based TX Text Control document editor and JavaScript API.
dotnet add package TXTextControl.Web --version 34.4.0
TXTextControl.Web.DocumentEditor.Backend
34.4.0
Hosts the WebSocket-based backend used by the browser document editor.
dotnet add package TXTextControl.Web.DocumentEditor.Backend --version 34.4.0