Click or drag to resize

GeometryHandlerOnBeginDocument Method

Constructs a new default GeometryHandler.
Called when document processing starts.

Namespace:  Atalasoft.Imaging.Codec.CadCam
Assembly:  Atalasoft.dotImage.Dwg (in Atalasoft.dotImage.Dwg.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public virtual void OnBeginDocument(
	int pageCount
)

Parameters

pageCount
Type: SystemInt32
The total number of pages expected.
Remarks
Since the GeometryHandler does nothing on its own, the default constructor does nothing.
Remarks
BeginDocument will be matched with a call to EndDocument.
Examples
Tracking Pages (C#)
public class PageTrackingHandler : GeometryHandler {
    private int _total, _current;
    public override void OnBeginDocument(int pageCount)
    {
        _total = pageCount;
        Console.WriteLine("Starting a " + _total + " page document.");
    }
    public override bool OnBeginPage(int page, SizeF pageSize)
    {
        Console.WriteLine("Processing page " + (page + 1) + " of " + _total);
    }
}
See Also