示例#1
0
 public static byte[] ToPdf <T>(this IEnumerable <T> items, string title = null,
                                ArrayToPdfFormats format           = ArrayToPdfFormats.A4,
                                ArrayToPdfOrientations orientation = ArrayToPdfOrientations.Landscape)
 {
     return(ArrayToPdf.CreatePdf(items, scheme =>
     {
         scheme.Title = title;
         scheme.PageFormat = format;
         scheme.PageOrientation = orientation;
     }));
 }
示例#2
0
 public static byte[] ToPdf <T>(this IEnumerable <T> items, Action <ArrayToPdfScheme <T> > schemeBuilder)
 {
     return(ArrayToPdf.CreatePdf(items, schemeBuilder));
 }