Skip to content

Commit e01dceb

Browse files
Merge pull request #17 from telerik/vld/nuget-update
chore: updated old packages in sdk examples
2 parents 25187fd + 3d7d4d0 commit e01dceb

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

PdfProcessing/CreateDocumentWithImages/CreateDocumentWithImages_NetStandard.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
<ItemGroup>
4747
<Folder Include="Properties\" />
4848
</ItemGroup>
49-
<ItemGroup>
50-
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
51-
</ItemGroup>
52-
<ItemGroup>
53-
</ItemGroup>
5449
<ItemGroup Label="Telerik NuGet Packages References">
5550
<PackageReference Include="Telerik.Documents.Core" Version="*" />
5651
<PackageReference Include="Telerik.Documents.Fixed" Version="*" />

PdfProcessing/CustomJpegImageConverter/CustomJpegImageConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public override bool TryConvertToJpegImageData(byte[] imageData, ImageQuality im
1414
using (MagickImage magickImage = new MagickImage(imageData))
1515
{
1616
magickImage.Alpha(AlphaOption.Remove);
17-
magickImage.Quality = (int)imageQuality;
17+
magickImage.Quality = (uint)imageQuality;
1818

1919
jpegImageData = magickImage.ToByteArray(MagickFormat.Jpeg);
2020
}

PdfProcessing/CustomJpegImageConverter/CustomJpegImageConverter_NetStandard.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net6.0</TargetFramework>
@@ -19,8 +19,7 @@
1919
</Content>
2020
</ItemGroup>
2121
<ItemGroup>
22-
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="13.6.0" />
23-
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
22+
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="14.4.0" />
2423
</ItemGroup>
2524
<ItemGroup>
2625
</ItemGroup>

PdfProcessing/CustomJpegImageConverter/DocumentGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ private void AddPageWithImage()
4040
editor.GraphicProperties.IsStroked = false;
4141
editor.GraphicProperties.FillColor = new RgbColor(200, 200, 200);
4242
editor.DrawRectangle(new Rect(0, 0, PageSize.Width, PageSize.Height));
43-
Margins margins = new Margins();
44-
editor.Position.Translate(margins.Left, margins.Top);
43+
Thickness thickness = new Thickness(100);
44+
editor.Position.Translate(thickness.Left, thickness.Top);
4545

4646
Block block = new Block();
4747
block.HorizontalAlignment = HorizontalAlignment.Center;
@@ -52,7 +52,7 @@ private void AddPageWithImage()
5252
Size blockSize = block.Measure(RemainingPageSize);
5353
editor.DrawBlock(block, RemainingPageSize);
5454

55-
editor.Position.Translate(margins.Left, blockSize.Height + margins.Top + 20);
55+
editor.Position.Translate(thickness.Left, blockSize.Height + thickness.Top + 20);
5656

5757
Block imageBlock = new Block();
5858
imageBlock.HorizontalAlignment = HorizontalAlignment.Center;

SpreadProcessing/CreateModifyExport/CreateModifyExport_NetStandard.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<ApplicationIcon />
44
<OutputType>Exe</OutputType>
@@ -39,7 +39,7 @@
3939
<Folder Include="Properties\" />
4040
</ItemGroup>
4141
<ItemGroup>
42-
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
42+
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
4343
</ItemGroup>
4444
<ItemGroup>
4545
</ItemGroup>

0 commit comments

Comments
 (0)