Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66664

Re: PDFSharp compatibility?

$
0
0

Hi,

 

I am unsure of what you are trying to achieve...

If you want to print drawing to pdf you need to use a installed PDF-printer such as Adobe PDF or CutePDF and then print.
Here is an example:
PrintManager pm = _doc.GetPrintManager();
pm.SelectNewPrinter("Adobe PDF");

 

//Find your printsettings by looking here

 

var printSettingsList = _doc.GetPrintSettingIds().Select(x=>_doc.GetElement(x));

 

//Set appropriate printsetting

 

pm.CurrentPrintSetting = [the printsetting you want]

 

pm.Apply();

 

//find all your views and then iterate over them and submit print for each

 

pm.SubmitPrint([view])

 

 


Viewing all articles
Browse latest Browse all 66664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>