Back to VDocs
SaveAsPdfMethod
Definition
- Namespace
- DOM
- Assembly
- VDocs.dll
Saves the document as a PDF file.
SaveAsPdf(string filePath)Parameters
- filePath
- The destination path for the generated PDF file.
Remarks
This method generates a PDF document that closely matches the original document's appearance, including text formatting, images, tables, and shapes. License validation is performed before saving. If the license is invalid, a warning is written to the console but the operation still proceeds.
Examples
csharp
1var doc = new VDocs("report.docx");
2doc.SaveAsPdf("report.pdf");
3