[]
Represents a paginated document to be converted to printable formats, such as PDF.
public class GcWordLayout : IDisposable
Creates a new instance of GcWordLayout from an instance of GcWordDocument.
public GcWordLayout(GcWordDocument wordDocument, WordLayoutSettings layoutSettings = null)
wordDocument
GcWordDocumentThe source instance of GcWordDocument.
layoutSettings
WordLayoutSettingsSettings used for layout of GcWordDocument.
Gets or sets the name of the person that created the document (for export to PDF).
public string Author { get; set; }
Gets or sets date of the document creation in UTC (for export to PDF).
public DateTime? CreatedTime { get; set; }
Gets or sets keywords (separated by comma) associated with the document (for export to PDF).
public string Keywords { get; set; }
Gets or sets the time of the last save in UTC (for export to PDF).
public DateTime? LastSavedTime { get; set; }
Gets the list of pages.
public List<Page> Pages { get; }
Gets or sets the subject of the document (for export to PDF).
public string Subject { get; set; }
Gets or sets the title of the document (for export to PDF).
public string Title { get; set; }
Gets the source GcWordDocument.
public GcWordDocument WordDocument { get; }
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Performs cleanup operations on unmanaged resources.
protected ~GcWordLayout()
Saves the document into a stream in PDF format.
public void SaveAsPdf(Stream stream, OutputRange pageRange = null, PdfOutputSettings pdfSettings = null)
stream
System.IO.StreamThe output stream.
pageRange
GrapeCity.Documents.Common.OutputRangeThe range of pages that should be saved.
pdfSettings
PdfOutputSettingsThe set of parameters for the output PDF.
Saves the document into a file in PDF format.
public void SaveAsPdf(string filePath, OutputRange pageRange = null, PdfOutputSettings pdfSettings = null)
filePath
stringFull path to the output file.
pageRange
GrapeCity.Documents.Common.OutputRangeThe range of pages that should be saved.
pdfSettings
PdfOutputSettingsThe set of parameters for the output PDF.
Saves the document pages as images to a stream in TIFF format, one page per frame.
public void SaveAsTiff(Stream stream, OutputRange pageRange = null, ImageOutputSettings options = null, TiffFrameSettings frameSettings = null)
stream
System.IO.StreamThe output stream.
pageRange
GrapeCity.Documents.Common.OutputRangeThe range of pages that should be saved.
options
ImageOutputSettingsOptions that allow customizing the output images.
frameSettings
GrapeCity.Documents.Imaging.TiffFrameSettingsFrame settings that are used for encoding the TIFF frames.
Saves the document pages as images to a stream in TIFF format, one page per frame.
public void SaveAsTiff(string fileName, OutputRange pageRange = null, ImageOutputSettings options = null, TiffFrameSettings frameSettings = null)
fileName
stringThe output file path.
pageRange
GrapeCity.Documents.Common.OutputRangeThe range of pages that should be saved.
options
ImageOutputSettingsOptions that allow customizing the output images.
frameSettings
GrapeCity.Documents.Imaging.TiffFrameSettingsFrame settings that are used for encoding the TIFF frames.