|
|
|
@@ -8,13 +8,16 @@ namespace BlackRock.Reporting.API.Core.Models |
|
|
|
{ |
|
|
|
public Guid Id { get; set; } |
|
|
|
} |
|
|
|
public enum PaperFormatType{ |
|
|
|
A4 = 0, |
|
|
|
A3 = 1, |
|
|
|
Letter = 2 |
|
|
|
} |
|
|
|
public enum PaperFormatType |
|
|
|
{ |
|
|
|
A4 = 0, |
|
|
|
A3 = 1, |
|
|
|
Letter = 2 |
|
|
|
} |
|
|
|
public class OptionsForPdf |
|
|
|
{ |
|
|
|
public string user { get; set; } |
|
|
|
public bool IsLogged { get; set; } |
|
|
|
/// <summary> |
|
|
|
/// Scale of the webpage rendering. Defaults to <c>1</c>. Scale amount must be between 0.1 and 2. |
|
|
|
/// </summary> |
|
|
|
@@ -62,7 +65,7 @@ namespace BlackRock.Reporting.API.Core.Models |
|
|
|
/// <summary> |
|
|
|
/// Paper format. If set, takes priority over <see cref="Width"/> and <see cref="Height"/> |
|
|
|
/// </summary> |
|
|
|
public PaperFormatType PaperFormatType {get; set;} = PaperFormatType.A4; // Paper format from client side |
|
|
|
public PaperFormatType PaperFormatType { get; set; } = PaperFormatType.A4; // Paper format from client side |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Paper width, accepts values labeled with units |
|
|
|
@@ -78,10 +81,10 @@ namespace BlackRock.Reporting.API.Core.Models |
|
|
|
/// Paper margins, defaults to none |
|
|
|
/// </summary> |
|
|
|
//public MarginOptions MarginOptions { get; set; } = new MarginOptions(){Top="3.0 mm",Right = "3.0 mm",Left="3.0 mm",Bottom="12.7 mm"}; |
|
|
|
public string MarginTop {get;set;} ="6.0 mm"; |
|
|
|
public string MarginRight {get;set;} = "3.0 mm"; |
|
|
|
public string MarginLeft {get;set;} ="3.0 mm"; |
|
|
|
public string MarginBottom {get;set;} ="12.7 mm"; |
|
|
|
public string MarginTop { get; set; } = "6.0 mm"; |
|
|
|
public string MarginRight { get; set; } = "3.0 mm"; |
|
|
|
public string MarginLeft { get; set; } = "3.0 mm"; |
|
|
|
public string MarginBottom { get; set; } = "12.7 mm"; |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Give any CSS <c>@page</c> size declared in the page priority over what is declared in <c>width</c> and <c>height</c> or <c>format</c> options. |