Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Document document = new Document();
- document.LoadFromFile(path);
- StringBuilder sb = new StringBuilder();
- foreach (Spire.Doc.Section section in document.Sections)
- {
- foreach (Spire.Doc.Documents.Paragraph paragraph in section.Paragraphs)
- {
- if (paragraph.Text.Contains("Figure"))
- {
- sb.AppendLine(paragraph.Text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement