public static byte[] Split(this LibFixture fixture, Input type, string filePath, string pageRange) { if (type == Input.FromFile) { return(fixture.Lib.Split(filePath, pageRange)); } var bytes = File.ReadAllBytes(filePath); return(fixture.Lib.Split(bytes, pageRange)); }
public static IDocReader GetDocReader(this LibFixture fixture, Input type, string filePath, string password, int dimOne, int dimTwo) { if (type == Input.FromFile) { return(fixture.Lib.GetDocReader(filePath, password, new PageDimensions(dimOne, dimTwo))); } var bytes = File.ReadAllBytes(filePath); return(fixture.Lib.GetDocReader(bytes, password, new PageDimensions(dimOne, dimTwo))); }
public static byte[] Split(this LibFixture fixture, Input type, string filePath, int fromIndex, int toIndex) { if (type == Input.FromFile) { return(fixture.Lib.Split(filePath, fromIndex, toIndex)); } var bytes = File.ReadAllBytes(filePath); return(fixture.Lib.Split(bytes, fromIndex, toIndex)); }