Skip to content

SaveToBase64

Saves the document as Base64.

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

Parameters

( ( "pdf" | "docx" | "html" | "rtf" | "xml" | "txt" | ".pdf" | ".docx" | ".html" | ".rtf" | ".xml" | ".txt" ) | type : ( "pdf" | "docx" | "html" | "rtf" | "xml" | "txt" | ".pdf" | ".docx" | ".html" | ".rtf" | ".xml" | ".txt" )
Gets or sets the file type. ) 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');