DocSaveAs Method (String)

Save the Word document as a different format.

 

Namespace:  WebSupergoo.WordGlue4
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public void SaveAs(
        string path
)

Parameters

path
Type: SystemString
Where to save the converted output.
Remarks

Formats are specified using a file name extension. So if you are saving to stream you simply specify a dummy file name with the correct extension.

Formats like PDF are multipage which means you do not need to say which page you want to render. However formats like PNG are single page which means you must specify the page you are interested in. If you do not do this an exception will be thrown.

WorldGlue supports the multipage vector formats ".pdf", '.xps', '.docx' and '.dotx'.

WorldGlue supports '.svg', '.png', 'jpg', '.tif', '.gif', '.bmp' and '.wmp' as single page formats.

If you save as PDF from WordGlue you are working via the internal WordGlue PDF rendering engine. This uses a simple PDF format and features designed to get you going quickly. However if you have both WordGlue and ABCpdf (Version 11.3.0.6 or later) installed you can take advantage of the more sophisticated ABCpdf PDF rendering engine.

To do this all you need to do is to open and save your Word document from within ABCpdf rather than WordGlue. ABCpdf will detect the presence of WordGlue and use it in preference to other conversion options. With ABCpdf WordGlue can provide a more sophisticated representation for faster processing and also a smaller and higher quality output file. ABCpdf enhancements include faster and better image processing, linearization, enhanced font subsetting and PDF 2.0 compatibility.

PNG is a good raster format for output as the compression method used fits well with the type of input typically provided.

XPS is a good vector format providing small, resolution independent output, which is easily manipulable using standard Microsoft APIs.

SVG is a good vector format for comparing output using simple text diff tools.

The DOCX or DOTX output can be useful for converting standard DOC or DOT files into the more accessible XML based DOCX or DOTX format. However please note that this is for conversion purposes only - changes made to the document structure will not be persisted.

See Also