You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/radpdfprocessing/cross-platform/images.md
+14-27Lines changed: 14 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,26 @@ position: 2
10
10
11
11
# Images
12
12
13
-
Means for converting images, and scaling their quality are readily available in the .NET Framework version of the RadPdfProcessing library. In contrast, the .NET Standard one does not provide such functionality and requires some manual settings to achieve this. The `FixedExtensibilityManager` class is exposed specifically to address this need.
13
+
Means for converting images, and scaling their quality are readily available in the **.NET Framework** version of the RadPdfProcessing library. In contrast, the **.NET Standard** one does not provide such functionality and requires some manual settings to achieve this. The `FixedExtensibilityManager` class is exposed specifically to address this need.
14
14
More information on how to configure it can be found in the code samples later in this article.
15
15
16
16
## Exporting Images
17
17
18
18
To reduce file size, PDF supports only a number of compression filters like Jpeg and Jpeg2000 compression of color and grayscale images. So to allow the library to export images different than Jpeg and Jpeg2000, these images should be additionally processed. The **.NET Standard** specification does not define APIs for converting/processing images or scaling their quality. That is why, to export images different than Jpeg and Jpeg2000 or ImageQuality different than High, PdfProcessing comes with two extensibility points exposed by the static `FixedExtensibilityManager` class - **ImagePropertiesResolver** and **JpegImageConverter**.
19
19
20
-
> If neither **ImagePropertiesResolver** and **JpegImageConverter** are set, an InvalidOperationException is thrown during export of document.
20
+
>caution If neither **ImagePropertiesResolver** and **JpegImageConverter** are set, an InvalidOperationException is thrown during export of document.
21
+
22
+
## Requirements
23
+
24
+
To export images different than Jpeg and Jpeg2000 or ImageQuality different than High you will need to add references to the following .Net Standard assemblies:
25
+
26
+
|Assembly/ NuGet package|Description|
27
+
|----|----|
28
+
|**Telerik.Documents.ImageUtils**|This assembly is currently not available in UI for Xamarin.|
29
+
|**SkiaSharp.NativeAssets.*** (version 2.88.8)|May differ according to the used platform. For **Linux** use <b>SkiaSharp.NativeAssets.Linux.NoDependencies|
30
+
|**SkiaSharp.Views.Blazor** and **wasm-tools**|For Blazor Web Assembly.|
31
+
32
+
>important With the [R2 2023 changes](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/changes-and-backward-compatibility/backward-compatibility#whats-different-in-2023-r2) SkiaSharp replaced ImageSharp as the required dependency.
21
33
22
34
## ImagePropertiesResolver
23
35
@@ -106,28 +118,3 @@ The following example depends on the [Magick.NET](https://www.nuget.org/packages
106
118
107
119
>note A complete SDK example of a custom implementation JpegImageConverterBase is available on our [GitHub repository](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CustomJpegImageConverter).
108
120
109
-
## Requirements
110
-
111
-
<table>
112
-
<thead>
113
-
<tr>
114
-
<th>Requirements</th>
115
-
</tr>
116
-
</thead>
117
-
<tbody>
118
-
<tr>
119
-
<td><b>Telerik.Documents.ImageUtils</b> assembly
120
-
<br><sub><i>This assembly is not available in UI for Xamarin.</i></sub></td>
121
-
</tr>
122
-
<tr>
123
-
<td><b>SkiaSharp.NativeAssets.*</b> assembly
124
-
<br><sub><i>May differ according to the used platform. For <b>Linux</b> use <b>SkiaSharp.NativeAssets.Linux.NoDependencies</b></i></sub></td>
125
-
</tr>
126
-
<tr>
127
-
<td><b>SkiaSharp.Views.Blazor</b> and <b>wasm-tools</b>
128
-
<br><sub><i>For Blazor Web Assembly.</i></sub></td>
129
-
</tr>
130
-
</tbody>
131
-
</table>
132
-
133
-
>important With the [R2 2023 changes](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/changes-and-backward-compatibility/backward-compatibility#whats-different-in-2023-r2) SkiaSharp replaced ImageSharp as the required dependency.
0 commit comments