Export Pdf options

Export Pdf options

Hariharan_RadhakrishnanPCEKW
Participant Participant
2,346 Views
3 Replies
Message 1 of 4

Export Pdf options

Hariharan_RadhakrishnanPCEKW
Participant
Participant

I need to Export sheets into Pdf, but I need to export all sheets in single pdf Document. In Revit API 2022 and 2023 we have options to do that by using PDFExportOptions properties, but this Option is not available on lower versions of Revit API like 2018-2021. Kindly Suggest me to resolve this error.

There is one Reply for this solution like we can use AutoPDFPrint, but unfortunately I don't know how to use those files in my Code, Since I was beginner  to Revit API, Can anyone suggest me the right way to resolve this Error

0 Likes
Accepted solutions (2)
2,347 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni
Accepted solution

Welcome to the Revit API and good luck getting started using it. Unfortunately, in this case, it will not be able to help much. The Revit API only provides access to the underlying end user product functionality. It generally does not add anything beyond that. The feature you request cannot be called an "error". It is part of enhanced functionality that was added explicitly to satisfy user wishes. The easiest way to access the enhanced functionality is to upgrade your Revit release to the versions that explicitly support it. 

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 4

sayu94
Enthusiast
Enthusiast
Accepted solution
I advice you use pdfPrinter that collects sheets himself. I use pdfCreator
Message 4 of 4

TripleM-Dev.net
Advisor
Advisor

Hi @Hariharan_RadhakrishnanPCEKW,

 

The builtin PDF printer was only recently introduced into Revit (and it's API counterpart), so in the Revit API version this is also not available for the lower versions.

 

For printing to PDF in lower version you need a virtual PDF printer installed and use the PrintManager Class,  which is also available in the newer Revit's API.

 

Downside is that most PDF printers only support saving PDF's to a fixed folder, or even the name can be a issue. I use the PDF-Xchange printer which supports path and filename saving from Revit.

 

- Michel

0 Likes