-
-
Save bjoerntx/1e4983fd546312a8a3502b94226a231e 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(); | |
TXTextControl.LoadSettings loadSettings = new TXTextControl.LoadSettings(); | |
tx.Load("mypdf.pdf", TXTextControl.StreamType.AdobePDF, loadSettings); | |
foreach (TXTextControl.EmbeddedFile embeddedFile in loadSettings.EmbeddedFiles) { | |
System.IO.File.WriteAllText( | |
embeddedFile.FileName, | |
Encoding.ASCII.GetString((byte[])embeddedFile.Data)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment