Skip to content

PdfOptions configuration parameters do not take effect #2842

@xiazhao001

Description

@xiazhao001

PuppeteerSharp:17.0.0

Print configuration parameters:

PdfOptions pdfOptions = new PdfOptions();
pdfOptions.PrintBackground = true;
pdfOptions.Format = PaperFormat.A4;
pdfOptions.PreferCSSPageSize = true;
pdfOptions.DisplayHeaderFooter = true;
pdfOptions.FooterTemplate = "Footer Text";
pdfOptions.Format = new PuppeteerSharp.Media.PaperFormat(8.27m, 11.69m);
pdfOptions.HeaderTemplate = "";
pdfOptions.Landscape = false;
pdfOptions.MarginOptions = new PuppeteerSharp.Media.MarginOptions() { Bottom = "0px", Left = "0px", Right = "0px", Top = "0px" };
pdfOptions.Scale = 1m;

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