简体   繁体   中英

c# Word-AddIn convert activeDocument to a virtual PDF and merge them into one PDF document

I am creating multiple virtual documents and then I want to merge them into one PDF, without saving them somewhere. All I found for now are guides, in which they save the document as a PDF somewhere and then they read the PDF to merge them into one.

It should also be possible to combine multiple PDFs and not only two.

Why don't you want to save them somewhere? You could create temporary files at a place like C:\\Users\\%username%\\AppData\\Local\\Temp\\%yourProject% , work with those files, following the guide you've found and clean up afterwards. At least I don't see a problem with using temporary files and folders at the right place.

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