PdfOptions configuration parameters do not take effect #2843
Unanswered
xiazhao001
asked this question in
Q&A
Replies: 2 comments
-
What's not taking effect? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@kblok Setting margins in PDF printing properties is not effective |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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;
Beta Was this translation helpful? Give feedback.
All reactions