示例#1
0
        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));
        }
示例#2
0
        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)));
        }
示例#3
0
        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));
        }