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(); } }
public static byte[] GetBytes(string url) { return(LibPDFTools.GetBytes(LibPDFTools.ToUri(url))); }
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)); }