PdfOptions configuration parameters do not take effect #2843
Unanswered
xiazhao001
asked this question in
Q&A
Replies: 3 comments 2 replies
|
What's not taking effect? |
0 replies
|
@kblok Setting margins in PDF printing properties is not effective |
0 replies
|
For me also setting margin not working. In next pdf page, table content starts from top only and not setting any margin. Is any one have fix for it? @kblok |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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;
All reactions