GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureDocumentConverter Class / SaveAsMarkDown Method / SaveAsMarkDown(String) Method
The file path where the converted file will be saved. If the specified file already exists, it will be overwritten.
Example





In This Topic
SaveAsMarkDown(String) Method
In This Topic
This method converts the currently loaded document to Markdown and saves it to the specified file path.
Syntax
'Declaration
 
Public Overloads Function SaveAsMarkDown( _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsMarkDown( 
   string FilePath
)
public function SaveAsMarkDown( 
    FilePath: String
): GdPictureStatus; 
public function SaveAsMarkDown( 
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsMarkDown( 
   string* FilePath
) 
public:
GdPictureStatus SaveAsMarkDown( 
   String^ FilePath
) 

Parameters

FilePath
The file path where the converted file will be saved. If the specified file already exists, it will be overwritten.

Return Value

A member of the GdPictureStatus enumeration. If processing is successful, then the return value is GdPictureStatus.OK.
Remarks
You have to specify a full file path, including the file extension (.pptx).
Example
Converting and saving a PDF document to a Markdown file using a stream.
using GdPicture14;
            
using GdPictureDocumentConverter converter = new();
            
var status = converter.LoadFromFile("input.pdf");
if (status != GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}
            
status = converter.SaveAsMarkDown("output.markdown");
if (status != GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}
            
Console.WriteLine("The input document has been converted to a markdown file");
See Also