PdfSharpCore
PdfSharpCore copied to clipboard
Make RenderInfo public
Hello @ststeiger , please could you make the RenderInfo class public again. In the original sources I could do this to get the height of the document but now I can't access that class
The method C# public RenderInfo[] GetRenderInfoFromPage(int page) has also been removed: link
DocumentRenderer renderer = new DocumentRenderer(document);
renderer.PrepareDocument();
MigraDocCore.Rendering.RenderInfo[] info = renderer.GetRenderInfoFromPage(1);
int index = info.Length - 1;
double stop = info[index].LayoutInfo.ContentArea.Y.Millimeter + info[index].LayoutInfo.ContentArea.Height.Millimeter
+ 2 * Tamanios.TopBottomPageMargin; // Add more if you have bottom page margin, borders on the last table etc.
currentSection.PageSetup.PageHeight = Unit.FromMillimeter(stop);
ERROR: Cannot access internal class "RenderInfo"
thanks in advance :)
I have the same issue, did you solve this?
This could be closed, the RenderInfo is now public