// Copyright © 2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { /// /// Print to Pdf Settings /// public sealed class PdfPrintSettings { /// /// Page title to display in the header. Only used if /// is set to true. /// public string HeaderFooterTitle { get; set; } /// /// URL to display in the footer. Only used if is set /// to true. /// public string HeaderFooterUrl { get; set; } /// /// Output page size in microns. If either of these values is less than or /// equal to zero then the default paper size (A4) will be used. /// public int PageWidth { get; set; } /// /// Output page size in microns. If either of these values is less than or /// equal to zero then the default paper size (A4) will be used. /// public int PageHeight { get; set; } /// /// Margin in points (1"/72). Only used if MarginType is set to Custom. /// public double MarginLeft { get; set; } /// /// Margin in points (1"/72). Only used if MarginType is set to Custom. /// public double MarginTop { get; set; } /// /// Margin in points (1"/72). Only used if MarginType is set to Custom. /// public double MarginRight { get; set; } /// /// Margin in points (1"/72). Only used if MarginType is set to Custom. /// public double MarginBottom { get; set; } /// /// Margin type. /// public CefPdfPrintMarginType MarginType { get; set; } /// /// Scale the PDF by the specified amount, defaults to 100%. /// public int ScaleFactor { get; set; } /// /// Set to true to print headers and footers or false to not print /// headers and footers. /// public bool HeaderFooterEnabled { get; set; } /// /// Set to true to print the selection only or false to print all. /// public bool SelectionOnly { get; set; } /// /// Set to true for landscape mode or false for portrait mode. /// public bool Landscape { get; set; } /// /// Set to true to print background graphics or false to not print /// background graphics. /// public bool BackgroundsEnabled { get; set; } } }