Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Process timing #36

Description

@sstelmar

How do I get this to wait for the HTML internal Java scripts to process before converting to PDF?
I am using an external tool to create formal math expressions. See attached examples.

Base HTML document:
Calculation (2).zip

As converted by your tools:
testcalcs.pdf

As converted by https://html2pdf.com/:
Calculation.pdf

My current code:
@page "/Calcs"

@code
{
protected override async Task OnInitializedAsync()
{
PdfConvert.ConvertHtmlToPdf(new PdfDocument
{
Url = "https://localhost:44392/Calculation.html",
HeaderLeft = "[title]",
HeaderRight = "[date] [time]",
FooterCenter = "Page [page] of [topage]"

    }, new PdfOutput
    {
        OutputFilePath = "testcalcs.pdf"
    });
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions