I would like to generate a small Preview Image of the fist page of a FlowDocument (imagine a Thumbnail View of a collection of FlowDocuments). Can anyone recommend a good approach for doing this?
You should be able to do this by making your FlowDocument display the first page as you want it to appear in the thumbnail, then pointing a RenderTargetBitmap to the FlowDocument and saving the bitmap to disk. There is some code to do this in this article:
http://www.west-wind.com/weblog/posts/150676.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With