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; })); }
public static byte[] ToPdf <T>(this IEnumerable <T> items, Action <ArrayToPdfScheme <T> > schemeBuilder) { return(ArrayToPdf.CreatePdf(items, schemeBuilder)); }