Created
May 24, 2022 14:24
-
-
Save bjoerntx/accd44c903bd2755c37f07226b256748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (TXTextControl.ServerTextControl tx = new TXTextControl.ServerTextControl()) { | |
tx.Create(); | |
var sHtml = "<strong>This is a <span style=\"color: red;\">sample</span> <u>document</u>!</strong>"; | |
tx.Load(sHtml, TXTextControl.StringStreamType.HTMLFormat); | |
// save the document | |
tx.Save("results.pdf", TXTextControl.StreamType.AdobePDF); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment