Overloads
SaveAsPdf(string filePath)
Saves the document as a PDF file.
SaveAsPdf(Stream output)
Saves the document as PDF to a stream. The stream is left open.
SaveAsPdf(string filePath)
SaveAsPdf(string filePath)Saves the document as a PDF file.
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.
SaveAsPdf(Stream output)
SaveAsPdf(Stream output)Saves the document as PDF to a stream. The stream is left open.
Parameters
- output
- A writable stream.
Examples
csharp
1var doc = new VDocs("report.docx");
2doc.SaveAsPdf("report.pdf");
3