HTML input
Convert HTML to PDF
Edit the document visually. The server imports the generated semantic HTML into the TX Text Control document model and returns a real PDF for preview.
Quarterly update
This PDF was generated from HTML using TX Text Control.
Semantic content is imported, paginated, and converted on the server.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Turn web content into a paginated PDF
TX Text Control imports HTML into its document model before exporting it. That means the result is paginated by the document engine rather than captured as a browser screenshot.
The compact editor uses the browser's native editing and selection APIs. Its headings, paragraphs, and inline formatting remain semantic HTML that TX Text Control can translate into printable document content.
API used
ServerTextControl.Load
How it works
The WYSIWYG surface creates a small, sanitized HTML fragment. The controller validates that fragment, loads it with StringStreamType.HTMLFormat, and saves the resulting document as BinaryStreamType.AdobePDF.
Source files
See the implementation
The complete demo is encapsulated in Demos/Pdf/CreatingPdfs/FromHtml.