简体   繁体   中英

PDFs in a FlowDocument

I have a FlowDocument which is created dynamically (containing several tables). I need to embed PDF documents in this document. Eg: I might have a table, then a couple of PDF documents, then another table.

What's the best way to go about this. At worst I could print all of the PDFs, then all of the tables but I really need to keep each set of documents/PDFs together.

You can create common container width list of printable elements. Printable element is flow document width table or pdf document. And after that you can make method like that

void Print() {
    foreach(IPrintableElement el in _printableElements){ 
       el.Print();
      // where Print() is realization for flow document printing or pdf document printing
    }
}

But on this way you tables and PDFs will be printed on different pages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM