GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureDocumentConverter Class / SaveDocumentFontsInfo Method / SaveDocumentFontsInfo(String,Boolean) Method
The file path of the xml output.
the font informations will be saved only if there is at least 1 missing font
Example





In This Topic
SaveDocumentFontsInfo(String,Boolean) Method
In This Topic
This method saves the font informations within the document to a xml file stream you have specified.
Syntax
'Declaration
 
Public Overloads Function SaveDocumentFontsInfo( _
   ByVal filePath As String, _
   ByVal onlyIfFontsAreMissing As Boolean _
) As GdPictureStatus
 

Parameters

filePath
The file path of the xml output.
onlyIfFontsAreMissing
the font informations will be saved only if there is at least 1 missing font

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
Example
Outputting .
Using gdpictureDocumentConverter As GdPictureDocumentConverter = New GdPictureDocumentConverter()
    ' Loading the source document.
    gdpictureDocumentConverter.LoadFromFile("input.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX)
    Using outputStream  as Stream = File.Open("fontsOutput.xml", FileMode.Create)
    {
        converter.SaveDocumentFontsInfo(outputStream);
    }
End Using
See Also