Last active
July 24, 2020 09:18
-
-
Save bjoerntx/4748820505a9add5861509172e07abdb 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
var sData = File.ReadAllText("data.xml"); | |
TXTextControl.EmbeddedFile file = new TXTextControl.EmbeddedFile("data.xml", sData, "") { | |
MIMEType = "text/xml", | |
RelationShip = "Alternative" | |
}; | |
TXTextControl.SaveSettings saveSettings = new TXTextControl.SaveSettings() { | |
EmbeddedFiles = new TXTextControl.EmbeddedFile[] { file } | |
}; | |
textControl1.Save("myinvoice.pdf", | |
TXTextControl.StreamType.AdobePDFA, | |
saveSettings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment