Last active
August 29, 2015 14:24
-
-
Save Cospel/7fd2ae1c47bd2091647a to your computer and use it in GitHub Desktop.
convert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Groupdocs.Web.UI.Conversion; | |
using Groupdocs.Common; | |
namespace TestGroup | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
GroupdocsConversion.SetRootStoragePath(Path.Combine(Environment.CurrentDirectory,"")); | |
GroupdocsConversion.Init(); | |
var conversion = GroupdocsConversion.Instance(); | |
var dir = Path.Combine(Environment.CurrentDirectory, @"ToConvert"); | |
var conversionFileSources = conversion.ScanFolder(dir, "", SearchOption.AllDirectories, FileType.Pdf); | |
var convertResult = conversion.Convert(conversionFileSources, @"converted"); | |
Console.WriteLine("Conversion finished, state is " + convertResult.State + ", press any key to exit "); | |
Console.ReadKey(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment