[]
Provides extension methods for converting GcWordDocument to other formats.
public static class GcWordDocumentExt
Saves the current GcWordDocument as PDF to a specified stream.
[Obsolete("Create GcWordLayout and use its methods instead.")]
public static void SaveAsPdf(this GcWordDocument source, Stream stream, WordLayoutSettings layoutSettings = null, PdfOutputSettings pdfSettings = null)
source
GcWordDocumentThe GcWordDocument instance to convert to PDF.
stream
System.IO.StreamThe destination stream.
layoutSettings
WordLayoutSettingsSettings used for layout of a GcWordDocument.
pdfSettings
PdfOutputSettingsThe set of parameters for the output PDF.
The new GcWordLayout class is more efficient and offers more abilities than this extension method. Use code like the following instead:
using (var wl = new GcWordLayout(gcWordDocument, layoutSettings))
{
wl.SaveAsPdf(stream, null, pdfSettings);
}
Saves the current GcWordDocument as PDF to a specified file.
[Obsolete("Create GcWordLayout and use its methods instead.")]
public static void SaveAsPdf(this GcWordDocument source, string filePath, WordLayoutSettings layoutSettings = null, PdfOutputSettings pdfSettings = null)
source
GcWordDocumentThe GcWordDocument instance to convert to PDF.
filePath
stringFull path to the output file.
layoutSettings
WordLayoutSettingsSettings used for layout of a GcWordDocument.
pdfSettings
PdfOutputSettingsThe set of parameters for the output PDF.
The new GcWordLayout class is more efficient and offers more abilities than this extension method. Use code like the following instead:
using (var wl = new GcWordLayout(gcWordDocument, layoutSettings))
{
wl.SaveAsPdf(filePath, null, pdfSettings);
}