Skip to content

SaveToBase64

Saves the document as Base64.

1
myWriter.SaveToBase64(type: ( ( `"pdf"` | `"docx"` | `"html"` | `"rtf"` | `"xml"` | `"txt"` | `".pdf"` | `".docx"` | `".html"` | `".rtf"` | `".xml"` | `".txt"` ) | SaveOptions )):string

Parameters

( ( "pdf" | "docx" | "html" | "rtf" | "xml" | "txt" | ".pdf" | ".docx" | ".html" | ".rtf" | ".xml" | ".txt" ) | SaveOptions ) type

Remarks

Supported formats are PDF, HTML, DOCX, TXT, RTF, and XML, with or without a leading dot. An unsupported type throws. Passing an options object applies its writable options to the selected GemBox save format.

Export a writer document as Base64 PDF

1
2
var writer = new Writer();
writer.SaveToBase64('.pdf');