Table of Contents
StartPosition Property

Gets or sets the starting Y offset in inches on the first page.

Syntax
 public Single StartPosition { get; set; }
Remarks

The initial value for this property is 0, which means a new conversion always starts at the top of the page. Setting this value to a positive value instructs the converter to start from the middle of the page instead of from the top. For example, setting StartPosition to 1 would start output at 1 inch below the top boundary of OutputArea (if the page has a top margin of 1 inch, then the start position is 2 inches from the top edge of the paper).

You can use this property together with HtmlToPdfResult.LastPageIndex and HtmlToPdfResult.LastPosition to render multiple HTML page/snippets continuously. For example, the following code would render "paragraph2" immediately after "paragrah1" on the same page as if they were rendered with a single call.

//Render some text.
EO.Pdf.HtmlToPdfResult result = 
    EO.Pdf.HtmlToPdf.ConverHtml("<p>paragraph1</p>", doc);

//Follow the previous output immediately
EO.Pdf.HtmlToPdf.Options.StartPageIndex = result.LastPageIndex;
EO.Pdf.HtmlToPdf.Options.StartPosition = result.LastPosition;
//You can also replace the above code with 
//EO.Pdf.HtmlToPdf.Options.Follow(result);

//render some additional text. This block will follow
//the previous block immediately on the same page
EO.Pdf.HtmlToPdf.ConverHtml("<p>paragraph2</p>", doc);

This property is automatically reset to 0 after each conversion.

See Also