Skip to content

Commit ad4c292

Browse files
authored
Merge pull request #519 from telerik/dess_linux_skia
add requirements upper
2 parents eba53d4 + 2e9e03a commit ad4c292

File tree

1 file changed

+14
-27
lines changed
  • libraries/radpdfprocessing/cross-platform

1 file changed

+14
-27
lines changed

libraries/radpdfprocessing/cross-platform/images.md

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,26 @@ position: 2
1010

1111
# Images
1212

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.
1414
More information on how to configure it can be found in the code samples later in this article.
1515

1616
## Exporting Images
1717

1818
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**.
1919

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.
2133
2234
## ImagePropertiesResolver
2335

@@ -106,28 +118,3 @@ The following example depends on the [Magick.NET](https://www.nuget.org/packages
106118

107119
>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).
108120
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

Comments
 (0)