GdPicture.NET.14
GdPicture14 Namespace / GdPictureDocumentConverter Class / SaveAsPPTX Method / SaveAsPPTX(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
SaveAsPPTX(String) Method
In This Topic
This method converts the currently loaded document to PPTX and saves it to the specified file path.
Syntax
'Declaration
 
Public Overloads Function SaveAsPPTX( _
   ByVal FilePath As String _
) As GdPictureStatus
public GdPictureStatus SaveAsPPTX( 
   string FilePath
)
public function SaveAsPPTX( 
    FilePath: String
): GdPictureStatus; 
public function SaveAsPPTX( 
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus SaveAsPPTX( 
   string* FilePath
) 
public:
GdPictureStatus SaveAsPPTX( 
   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 PPTX 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.SaveAsPPTX("output.pptx");
if (status != GdPictureStatus.OK)
{
    throw new Exception(status.ToString());
}
            
Console.WriteLine("The input document has been converted to a pptx file");
See Also