Is it possible in WPF to get content of each DocumentPage by page number?
问题 I use DocumentPaginator to divide FlowDocument's text into pages. Is it possible to get content of each pages by page number after ComputePageCount()? If not, how can I do it in other way? Code: var flowDocument = this.Document; flowDocument.MaxPageHeight = this.MaxContentHeight; DocumentPaginator paginator = ((IDocumentPaginatorSource)flowDocument).DocumentPaginator; paginator.ComputePageCount(); 回答1: Yes, it is possible. Here is an example: MainWindow.xaml <Window x:Class="WpfApplication