|
@@ -53,13 +53,6 @@ namespace QuestPDF.Drawing
|
|
|
|
|
|
|
|
internal static void RenderDocument<TCanvas>(TCanvas canvas, IDocument document)
|
|
internal static void RenderDocument<TCanvas>(TCanvas canvas, IDocument document)
|
|
|
where TCanvas : ICanvas, IRenderingCanvas
|
|
where TCanvas : ICanvas, IRenderingCanvas
|
|
|
- {
|
|
|
|
|
- RenderDocument(canvas, new FreeCanvas(), document);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- internal static void RenderDocument<TCanvas, TFreeCanvas>(TCanvas canvas, TFreeCanvas freeCanvas, IDocument document, Action<TFreeCanvas>? afterFirstPass = null)
|
|
|
|
|
- where TCanvas : ICanvas, IRenderingCanvas
|
|
|
|
|
- where TFreeCanvas : ICanvas, IRenderingCanvas
|
|
|
|
|
{
|
|
{
|
|
|
var container = new DocumentContainer();
|
|
var container = new DocumentContainer();
|
|
|
document.Compose(container);
|
|
document.Compose(container);
|
|
@@ -74,8 +67,7 @@ namespace QuestPDF.Drawing
|
|
|
if (metadata.ApplyCaching)
|
|
if (metadata.ApplyCaching)
|
|
|
ApplyCaching(content);
|
|
ApplyCaching(content);
|
|
|
|
|
|
|
|
- RenderPass(pageContext, freeCanvas, content, metadata, debuggingState);
|
|
|
|
|
- afterFirstPass?.Invoke(freeCanvas);
|
|
|
|
|
|
|
+ RenderPass(pageContext, new FreeCanvas(), content, metadata, debuggingState);
|
|
|
RenderPass(pageContext, canvas, content, metadata, debuggingState);
|
|
RenderPass(pageContext, canvas, content, metadata, debuggingState);
|
|
|
}
|
|
}
|
|
|
|
|
|