Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
- .NET API Reference
- EO.Base
- EO.Base.UI
- EO.Extensions
- EO.Pdf
- EO.Pdf
- Classes
- ClientCertificate Class
- HtmlDocument Class
- HtmlElement Class
- HtmlNode Class
- HtmlTextNode Class
- HtmlToPdf Class
- HtmlToPdfException Class
- HtmlToPdfOptions Class
- HtmlToPdfOptions Class
- HtmlToPdfOptions Members
- HtmlToPdfOptions Constructor
- Properties
- Properties
- AdditionalHeaders Property
- AfterRenderPage Property
- AllowLocalAccess Property
- AutoAdjustForDPI Property
- AutoBookmark Property
- AutoFitX Property
- AutoFitY Property
- BaseUrl Property
- BeforeRenderPage Property
- CertificateError Property
- ClientCertificate Property
- ColumnCount Property
- ColumnGapWidth Property
- Cookies Property
- FirstHeaderFooterPageIndex Property
- FirstPageNumber Property
- FooterHtmlFormat Property
- FooterHtmlPosition Property
- FooterHtmls Property
- GeneratePageImages Property
- GenerateTags Property
- HeaderHtmlFormat Property
- HeaderHtmlPosition Property
- HeaderHtmls Property
- InvisibleElementIds Property
- JpegQualityLevel Property
- JSInitCode Property
- MaxLoadWaitTime Property
- MinLoadWaitTime Property
- Mode Property
- NoCache Property
- NoLink Property
- NoScript Property
- Orientation Property
- OutputArea Property
- PageSize Property
- Password Property
- PostData Property
- ProxyInfo Property
- RepeatTableHeaderAndFooter Property
- RetrieveNodeText Property
- SSLVerificationMode Property
- StartColumnIndex Property
- StartPageIndex Property
- StartPosition Property
- ThrowOnHttpError Property
- TriggerMode Property
- UsePrintMedia Property
- UserName Property
- UserStyleSheet Property
- VisibleElementIds Property
- ZoomLevel Property
- Methods
- HtmlToPdfResult Class
- HtmlToPdfSession Class
- PageInfo Class
- PageInfoCollection Class
- PageStyle Class
- Paginator Class
- PdfAction Class
- PdfAttachment Class
- PdfAttachmentCollection Class
- PdfBookmark Class
- PdfBookmarkCollection Class
- PdfCheckBoxField Class
- PdfComboBoxField Class
- PdfDestination Class
- PdfDocInfo Class
- PdfDocument Class
- PdfDocumentEventArgs Class
- PdfDocumentSecurity Class
- PdfField Class
- PdfFieldCollection Class
- PdfGenericField Class
- PdfGoToAction Class
- PdfJavaScriptAction Class
- PdfLaunchAction Class
- PdfLink Class
- PdfListBoxField Class
- PdfListField Class
- PdfListItem Class
- PdfListItemCollection Class
- PdfObject Class
- PdfOnOffField Class
- PdfPage Class
- PdfPageCollection Class
- PdfPageEventArgs Class
- PdfPageLocation Class
- PdfPageRectangle Class
- PdfPageSizes Class
- PdfPortfolio Class
- PdfPushButtonField Class
- PdfRadioButtonField Class
- PdfRadioButtonGroup Class
- PdfRender Class
- PdfSigner Class
- PdfTextField Class
- PdfUriAction Class
- PdfViewerException Class
- PdfViewerPreference Class
- Runtime Class
- YRange Class
- Interfaces
- Enumerations
- Delegates
- EO.Pdf.Acm
- EO.Pdf.Contents
- EO.Pdf.Drawing
- EO.Pdf.Mvc
- EO.Web
- EO.WebBrowser
- EO.WebBrowser.DOM
- EO.WebEngine
- EO.WinForm
- EO.Wpf
- EO.Wpf.Gauge
- EO.Wpf.Gauge.Shapes
- EO.Wpf.Primitives
- EO.Wpf.Themes.Aero
- EO.Wpf.Themes.Classic
- EO.Wpf.Themes.Luna
- EO.Wpf.Themes.Metro
- EO.Wpf.Themes.Royale
- JavaScript API Reference
- .NET API Reference
StartPosition Property |
Gets or sets the starting Y offset in inches on the first page.
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.