PDF form
Fill and save the PDF
Complete fields in the W-9 form, then flatten those values into a new PDF download.
Flattening workflowComplete and export
Enter values in the W-9 fields, then embed them into a portable PDF.
PDF
1Fill the form
Use the form controls directly in the viewer.
2Flatten values
Create the completed PDF from the current state.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Save a completed PDF form
Fill the original PDF form, flatten its values into a new Adobe PDF, and download the generated result entirely through the viewer API.
API used
TXDocumentViewer.saveDocument
Key members
Saving with AdobePDF creates a portable PDF whose completed form values are embedded in the document.
TXDocumentViewer.saveDocument(
TXDocumentViewer.StreamType.AdobePDF,
true,
data => downloadBase64(data, "completed-form.pdf", "application/pdf")
);
How it works
The Razor helper prepares the browser viewer and its document. Demo-specific JavaScript uses the public TXDocumentViewer API and remains encapsulated with this demo.
NuGet packages
Displays supported document and PDF formats in the browser.
dotnet add package TXTextControl.Web.DocumentViewer --version 34.2.0
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Pdf/SavingFormFields.