Example #1
0
        public string[] Split(string url, string splittedFilesDirectoryName, string prefixOfFileName)
        {
            var bytes = LibPDFTools.GetBytes(url);

            switch (LibPDFTools.GetImageFileType(bytes))
            {
            case ImageFileType.PDF:
                return(SplitPdf(url, splittedFilesDirectoryName, prefixOfFileName));

            case ImageFileType.TIFF:
                return(SplitTiff(bytes, splittedFilesDirectoryName, prefixOfFileName));

            default:
                throw new ArgumentException();
            }
        }
Example #2
0
 public static byte[] GetBytes(string url)
 {
     return(LibPDFTools.GetBytes(LibPDFTools.ToUri(url)));
 }
Example #3
0
 public void Append(string url)
 {
     Append(LibPDFTools.GetBytes(url));
 }
        public PdfReader CreatePdfReader(string url, PdfConcatenatorOption option)
        {
            var bytes = LibPDFTools.GetBytes(LibPDFTools.ToUri(url));

            return(CreatePdfReader(bytes, option));
        }