Skip to content

html table size not fit within a letter size pdf #183

Description

@wangzh2k

I am new in HTML-Renderer. I tried many times to fix the table size in html edited in VS html editor in HTML 4.01. However, the table is scaled up and always outside of the letter size pdf. I also defined the size of the table in html codes.

Is there anyway in the HTML-Renderer to fix the table inside the letter pdf size.

Thanks,

    public PDFCombination(string html)
    {
        PdfGenerateConfig config = new PdfGenerateConfig()
        {
            MarginBottom = 25,
            MarginLeft = 20,
            MarginRight = 20,
            MarginTop = 25,
            PageSize = PdfSharp.PageSize.Letter,
            PageOrientation = PdfSharp.PageOrientation.Portrait,
        };
        PdfDocument tempPDFDoc = PdfGenerator.GeneratePdf(html, config);

        tempPDFDoc.Save("temp");
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions