<p>Can someone tell me how to get path geometry from a WPF FlowDocument object? Please note that I do <strong>not</strong> want to use <code>FormattedText</code>. Thanks.</p>

[{'answer_id': 87342, 'author': 'Cory R. King', 'author_id': 16742, 'author_profile': 'https://Stackoverflow.com/users/16742', 'pm_score': 0, 'selected': False, 'text': '<p>Can you use </p>\n\n<blockquote>\n  <p>ChildVisual = VisualTreeHelper.GetChild(Visual yourVisual)</p>\n</blockquote>\n\n<p>Dunno if you can take a Visual and turn it into a path geometry..  </p>\n'}, {'answer_id': 87716, 'author': 'Tim Erickson', 'author_id': 8787, 'author_profile': 'https://Stackoverflow.com/users/8787', 'pm_score': 1, 'selected': False, 'text': '<p>Get the <strong>Text</strong> property of a <strong>TextRange</strong> object <i>initialized over the entire <strong>FlowDocument</strong></i>:</p>\n\n<pre><code>FlowDocument myFlowDocument = new FlowDocument();  //get your FlowDocument\n\n//put in some (or it already has) text\nstring inText = "Hello, WPF World!";\nTextRange tr = new TextRange(FlowDocument.ContentStart, FlowDocument.ContentEnd);\ntr.Text = inText;\n\n//get the current text out of the FlowDocument\nTextRange trPrime = new TextRange(FlowDocument.ContentStart, FlowDocument.ContentEnd);\nstring outText = trPrime.Text;\n\n//now outText == "Hello, WPF World!";\n\n//to get formatting, looks like you would use myFlowDocument.TextEffects\n</code></pre>\n'}, {'answer_id': 640230, 'author': 'Robert Macnee', 'author_id': 19273, 'author_profile': 'https://Stackoverflow.com/users/19273', 'pm_score': 2, 'selected': True, 'text': "<p>A <code>FlowDocument</code> can be viewed in any number of ways, but a <code>Path</code> is a fixed shape.  I think maybe you really want some simplified, visual-only form of a <code>FlowDocument</code>'s contents.</p>\n\n<p>In that case you might try converting the <code>FlowDocument</code> to an XPS <code>FixedDocument</code> - the <code>FixedPage</code>s have <code>Canvas</code>es containing a bunch of <code>Path</code>s and <code>Glyph</code>s.</p>\n"}]
['https://Stackoverflow.com/questions/65687', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9476/']