File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
MigraDocCore.Rendering/MigraDoc.Rendering Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,19 @@ public PageInfo GetPageInfo(int page)
423
423
return this . pageInfos [ page ] ;
424
424
}
425
425
426
+
427
+ /// <summary>
428
+ /// Returns the absolute Y position of the last item on the last page in points.
429
+ /// Must be called after rendering the document.
430
+ /// </summary>
431
+ /// <returns>The current Y position at the end of the last page.</returns>
432
+ public double GetCurrentMigraDocPosition ( )
433
+ {
434
+ RenderInfo [ ] RenderInfos = GetRenderInfos ( PageCount ) ;
435
+ RenderInfo r = RenderInfos [ RenderInfos . Length - 1 ] ;
436
+ return r . LayoutInfo . ContentArea . Y + r . LayoutInfo . ContentArea . Height ;
437
+ }
438
+
426
439
#region IAreaProvider Members
427
440
428
441
Area IAreaProvider . GetNextArea ( )
You can’t perform that action at this time.
0 commit comments