Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Examples/CreatePdfThumbnail/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class Program
{
/// <summary>
/// Create PDF Thumbnail
/// Example of extracting first page from PDF and then converting it to JPG using chaining.
/// https://www.convertapi.com/pdf-to-extract
/// Example of converting the first page of a PDF to a JPG thumbnail.
/// https://www.convertapi.com/pdf-to-jpg
/// </summary>
static async Task Main(string[] args)
Expand All @@ -25,10 +24,9 @@ static async Task Main(string[] args)
{
var thumbnail = await convertApi.ConvertAsync("pdf", "jpg",
new ConvertApiFileParam(pdfFile),
new ConvertApiParam("ScaleImage", "true"),
new ConvertApiParam("ScaleProportions", "true"),
new ConvertApiParam("ImageHeight", "300"),
new ConvertApiParam("ImageWidth", "300"),
new ConvertApiParam("FitToSize", "true"),
new ConvertApiParam("PageRange", "1")
);

Expand Down
Loading