From 3114fd3b09b5e51069d257eb3765078ed8a2632c Mon Sep 17 00:00:00 2001 From: Krithika Date: Tue, 19 Sep 2023 13:32:45 +0530 Subject: [PATCH 1/2] UG Content for PdfToImageConverter --- .../Converting-PDF-pages-into-Images-in-ASP-NET-Core.md | 4 +++- .../Converting-PDF-pages-into-Images-in-Blazor.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md index d7cf78b90..fe9b26fdb 100644 --- a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md +++ b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v ## Exporting with a custom image resolution -You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. +You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to improve the quality of the image, and you can set it to positive floating-point values. The recommended values are 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. {% tabs %} {% highlight C# %} @@ -93,6 +93,8 @@ int tileY = 0; //Initialize PDF to Image converter. PdfToImageConverter imageConverter = new PdfToImageConverter(); +//ScaleFactor value is set to 1, while the default value is 1.5f. +imageConverter.ScaleFactor = 1; //Load the PDF document as a stream FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite); imageConverter.Load(inputStream); diff --git a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md index a9086f86b..d0bcaff69 100644 --- a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md +++ b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v ## Exporting with a custom image resolution -You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. +You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to improve the quality of the image, and you can set it to positive floating-point values. The recommended values are 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. {% tabs %} {% highlight C# %} @@ -93,6 +93,8 @@ int tileY = 0; //Initialize PDF to Image converter. PdfToImageConverter imageConverter = new PdfToImageConverter(); +//ScaleFactor value is set to 1, while the default value is 1.5f. +imageConverter.ScaleFactor = 1; //Load the PDF document as a stream FileStream inputStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.ReadWrite); imageConverter.Load(inputStream); From 7c7e33fe41d562e406e56d69e73f02ee47743d54 Mon Sep 17 00:00:00 2001 From: Krithika Date: Tue, 19 Sep 2023 15:46:42 +0530 Subject: [PATCH 2/2] UG Content for PdfToImageConverter --- .../Converting-PDF-pages-into-Images-in-ASP-NET-Core.md | 2 +- .../PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md index fe9b26fdb..3e3f1d1bc 100644 --- a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md +++ b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-ASP-NET-Core.md @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v ## Exporting with a custom image resolution -You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to improve the quality of the image, and you can set it to positive floating-point values. The recommended values are 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. +You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to enhance image quality, and it can be set to positive floating-point values, with recommended values of 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. {% tabs %} {% highlight C# %} diff --git a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md index d0bcaff69..d08216044 100644 --- a/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md +++ b/File-Formats/PDF-to-image/Converting-PDF-pages-into-Images-in-Blazor.md @@ -80,7 +80,7 @@ N> To maintain the aspect ratio of output images, you are required to pass the v ## Exporting with a custom image resolution -You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to improve the quality of the image, and you can set it to positive floating-point values. The recommended values are 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. +You can export PDF pages as images with specific attributes, such as zoom factor, tile dimensions (x and y), and tile matrix co-ordinates (x and y), by passing the corresponding values as parameters to the Convert method. zoomFactor is used to specify the zoom level. The number of columns and rows will be calculated based on tileXCount and tileYCount (tile dimensions), while tile x and y co-ordinates determine which tile to use based on tileX and tileY. The ScaleFactor property scales the page to enhance image quality, and it can be set to positive floating-point values, with recommended values of 1 or 1.5f. Refer to the following code for exporting PDF pages into PNG images with the desired resolution. {% tabs %} {% highlight C# %}