Skip to content

SaveToBase64

Saves the document as Base64.

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

Gets or sets the file type. )):string

Parameters

( ( "pdf" | "docx" | "html" | "rtf" | "xml" | "txt" ) | type : ( "pdf" | "docx" | "html" | "rtf" | "xml" | "txt" )
Gets or sets the file type. ) type

Remarks

Export a writer document as Base64 PDF

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