We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Program.cs
1 parent 54290cd commit 28bdcf0Copy full SHA for 28bdcf0
1 file changed
Examples/Workflow/Program.cs
@@ -21,7 +21,8 @@ static async Task Main(string[] args)
21
var convertApi = new ConvertApi("api_token");
22
23
Console.WriteLine("Converting PDF to JPG and compressing result files with ZIP");
24
- var fileName = Path.Combine(Path.GetTempPath(), "test.pdf");
+ var examplesDir = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..", "..", "..", ".."));
25
+ var fileName = Path.Combine(examplesDir, "TestFiles", "test.pdf");
26
27
var firstTask = await convertApi.ConvertAsync("pdf", "jpg", new ConvertApiFileParam(fileName));
28
Console.WriteLine($"Conversions done. Cost: {firstTask.ConversionCost}. Total files created: {firstTask.FileCount()}");
0 commit comments