Skip to content

Commit a25b6c8

Browse files
2 parents 4c0e77a + fa71fb2 commit a25b6c8

File tree

437 files changed

+5916
-13445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

437 files changed

+5916
-13445
lines changed

Annotations/AddAnnotation/AddAnnotation.csproj

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>WinExe</OutputType>
99
<RootNamespace>WpfPDFViewer</RootNamespace>
1010
<AssemblyName>WpfPDFViewer</AssemblyName>
11-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1414
<WarningLevel>4</WarningLevel>
@@ -21,7 +21,7 @@
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
2323
<OutputPath>bin\Debug\</OutputPath>
24-
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<DefineConstants>DEBUG;TRACE;NETFRAMEWORK</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
2727
<Prefer32Bit>false</Prefer32Bit>
@@ -31,26 +31,12 @@
3131
<DebugType>pdbonly</DebugType>
3232
<Optimize>true</Optimize>
3333
<OutputPath>bin\Release\</OutputPath>
34-
<DefineConstants>TRACE</DefineConstants>
34+
<DefineConstants>TRACE;NETFRAMEWORK</DefineConstants>
3535
<ErrorReport>prompt</ErrorReport>
3636
<WarningLevel>4</WarningLevel>
3737
</PropertyGroup>
3838
<ItemGroup>
39-
<Reference Include="Syncfusion.Compression.Base, Version=20.3460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
40-
<HintPath>packages\Syncfusion.Compression.Base.20.3.0.47\lib\net46\Syncfusion.Compression.Base.dll</HintPath>
41-
</Reference>
42-
<Reference Include="Syncfusion.Licensing, Version=20.3460.0.47, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
43-
<HintPath>packages\Syncfusion.Licensing.20.3.0.47\lib\net46\Syncfusion.Licensing.dll</HintPath>
44-
</Reference>
45-
<Reference Include="Syncfusion.Pdf.Base, Version=20.3460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
46-
<HintPath>packages\Syncfusion.Pdf.Wpf.20.3.0.47\lib\net46\Syncfusion.Pdf.Base.dll</HintPath>
47-
</Reference>
48-
<Reference Include="Syncfusion.PdfViewer.WPF, Version=20.3460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
49-
<HintPath>packages\Syncfusion.PdfViewer.WPF.20.3.0.47\lib\net46\Syncfusion.PdfViewer.WPF.dll</HintPath>
50-
</Reference>
51-
<Reference Include="Syncfusion.Shared.WPF, Version=20.3460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
52-
<HintPath>packages\Syncfusion.Shared.WPF.20.3.0.47\lib\net46\Syncfusion.Shared.WPF.dll</HintPath>
53-
</Reference>
39+
<packageReference Include="Syncfusion.PdfViewer.WPF" version="*"/>
5440
<Reference Include="System" />
5541
<Reference Include="System.Data" />
5642
<Reference Include="System.Drawing" />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net8.0-windows</TargetFramework>
6+
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<UseWPF>true</UseWPF>
9+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
10+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
11+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="Syncfusion.PdfViewer.WPF" Version="*" />
16+
</ItemGroup>
17+
18+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.8.226.21692
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddAnnotation_NET", "AddAnnotation_NET.csproj", "{E79D712B-0966-4E56-989F-B6A78BE3A022}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {66FBE309-FC8F-4FE0-A34F-85576BA23799}
24+
EndGlobalSection
25+
EndGlobal

Annotations/AddAnnotation/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
55
</startup>
66
<runtime>
77

Annotations/AddAnnotation/MainWindow.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ public MainWindow()
1717
{
1818
InitializeComponent();
1919
//Loads the document in PDF Viewer
20-
pdfViewer.Load("../../F Sharp Succinctly.pdf");
20+
#if NETFRAMEWORK
21+
pdfViewer.Load("../../Data/F#.pdf");
22+
#else
23+
pdfViewer.Load("../../../Data/F#.pdf");
24+
#endif
2125
}
2226

2327
private void Add_Ink_Click(object sender, RoutedEventArgs e)

Annotations/AddAnnotation/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// General Information about an assembly is controlled through the following
88
// set of attributes. Change these attribute values to modify the information
99
// associated with an assembly.
10-
[assembly: AssemblyTitle("WpfPDFViewer")]
10+
1111
[assembly: AssemblyDescription("")]
1212
[assembly: AssemblyConfiguration("")]
1313
[assembly: AssemblyCompany("")]
@@ -51,5 +51,4 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]
54+
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Syncfusion.Compression.Base" version="20.3.0.47" targetFramework="net472" />
4-
<package id="Syncfusion.Licensing" version="20.3.0.47" targetFramework="net472" />
5-
<package id="Syncfusion.Pdf.Wpf" version="20.3.0.47" targetFramework="net472" />
6-
<package id="Syncfusion.PdfViewer.WPF" version="20.3.0.47" targetFramework="net472" />
7-
<package id="Syncfusion.Shared.WPF" version="20.3.0.47" targetFramework="net472" />
3+
4+
<package id="Syncfusion.PdfViewer.WPF" version="*" targetFramework="net48" />
85
</packages>

Annotations/AddCustomStampInCustomizedButton/AddCustomStampInCustomizedButton.csproj

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@
88
<OutputType>WinExe</OutputType>
99
<RootNamespace>AddCustomStampInCustomizedButton</RootNamespace>
1010
<AssemblyName>AddCustomStampInCustomizedButton</AssemblyName>
11-
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1414
<WarningLevel>4</WarningLevel>
1515
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1616
<Deterministic>true</Deterministic>
1717
<NuGetPackageImportStamp>
1818
</NuGetPackageImportStamp>
19+
<TargetFrameworkProfile />
1920
</PropertyGroup>
2021
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2122
<PlatformTarget>AnyCPU</PlatformTarget>
2223
<DebugSymbols>true</DebugSymbols>
2324
<DebugType>full</DebugType>
2425
<Optimize>false</Optimize>
2526
<OutputPath>bin\Debug\</OutputPath>
26-
<DefineConstants>DEBUG;TRACE</DefineConstants>
27+
<DefineConstants>DEBUG;TRACE;NETFRAMEWORK</DefineConstants>
2728
<ErrorReport>prompt</ErrorReport>
2829
<WarningLevel>4</WarningLevel>
2930
</PropertyGroup>
@@ -32,29 +33,12 @@
3233
<DebugType>pdbonly</DebugType>
3334
<Optimize>true</Optimize>
3435
<OutputPath>bin\Release\</OutputPath>
35-
<DefineConstants>TRACE</DefineConstants>
36+
<DefineConstants>TRACE;NETFRAMEWORK</DefineConstants>
3637
<ErrorReport>prompt</ErrorReport>
3738
<WarningLevel>4</WarningLevel>
3839
</PropertyGroup>
3940
<ItemGroup>
40-
<Reference Include="Syncfusion.Compression.Base, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
41-
<HintPath>packages\Syncfusion.Compression.Base.25.1.35\lib\net462\Syncfusion.Compression.Base.dll</HintPath>
42-
</Reference>
43-
<Reference Include="Syncfusion.Licensing, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
44-
<HintPath>packages\Syncfusion.Licensing.25.1.35\lib\net462\Syncfusion.Licensing.dll</HintPath>
45-
</Reference>
46-
<Reference Include="Syncfusion.Pdf.Base, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
47-
<HintPath>packages\Syncfusion.Pdf.Wpf.25.1.35\lib\net462\Syncfusion.Pdf.Base.dll</HintPath>
48-
</Reference>
49-
<Reference Include="Syncfusion.PdfToImageConverter.Base, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
50-
<HintPath>packages\Syncfusion.PdfToImageConverter.WPF.25.1.35\lib\net462\Syncfusion.PdfToImageConverter.Base.dll</HintPath>
51-
</Reference>
52-
<Reference Include="Syncfusion.PdfViewer.WPF, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
53-
<HintPath>packages\Syncfusion.PdfViewer.WPF.25.1.35\lib\net462\Syncfusion.PdfViewer.WPF.dll</HintPath>
54-
</Reference>
55-
<Reference Include="Syncfusion.Shared.WPF, Version=25.1462.35.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
56-
<HintPath>packages\Syncfusion.Shared.WPF.25.1.35\lib\net462\Syncfusion.Shared.WPF.dll</HintPath>
57-
</Reference>
41+
<packageReference Include="Syncfusion.PdfViewer.WPF" version="*" />
5842
<Reference Include="System" />
5943
<Reference Include="System.Data" />
6044
<Reference Include="System.Drawing" />
@@ -65,7 +49,7 @@
6549
<Reference Include="System.Data.DataSetExtensions" />
6650
<Reference Include="System.Net.Http" />
6751
<Reference Include="System.Xaml">
68-
<RequiredTargetFramework>4.0</RequiredTargetFramework>
52+
<RequiredTargetFramework>4.8</RequiredTargetFramework>
6953
</Reference>
7054
<Reference Include="WindowsBase" />
7155
<Reference Include="PresentationCore" />
@@ -121,11 +105,8 @@
121105
<Resource Include="Data\ThankYou.png" />
122106
</ItemGroup>
123107
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
124-
<Import Project="packages\Syncfusion.PdfToImageConverter.WPF.25.1.35\build\net462\Syncfusion.PdfToImageConverter.WPF.targets" Condition="Exists('packages\Syncfusion.PdfToImageConverter.WPF.25.1.35\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" />
125108
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
126109
<PropertyGroup>
127-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
128110
</PropertyGroup>
129-
<Error Condition="!Exists('packages\Syncfusion.PdfToImageConverter.WPF.25.1.35\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Syncfusion.PdfToImageConverter.WPF.25.1.35\build\net462\Syncfusion.PdfToImageConverter.WPF.targets'))" />
130111
</Target>
131112
</Project>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net8.0-windows</TargetFramework>
6+
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<UseWPF>true</UseWPF>
9+
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
10+
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
11+
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
12+
<GenerateAssemblyFileversionAttibute>false</GenerateAssemblyFileversionAttibute>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Syncfusion.PdfViewer.WPF" Version="*" />
17+
</ItemGroup>
18+
19+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.8.226.21692
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddCustomStampInCustomizedButton_NET", "AddCustomStampInCustomizedButton_NET.csproj", "{E79D712B-0966-4E56-989F-B6A78BE3A022}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E79D712B-0966-4E56-989F-B6A78BE3A022}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {66FBE309-FC8F-4FE0-A34F-85576BA23799}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
55
</startup>
6-
</configuration>
6+
</configuration>

Annotations/AddCustomStampInCustomizedButton/MainWindow.xaml.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ public partial class MainWindow : Window
2626
public MainWindow()
2727
{
2828
InitializeComponent();
29+
#if NETFRAMEWORK
2930
pdfViewer.Load("../../Data/F#.pdf");
31+
#else
32+
pdfViewer.Load("../../../Data/F#.pdf");
33+
#endif
3034
pdfViewer.PageClicked += PdfViewer_PageClicked;
3135
}
3236

@@ -49,7 +53,12 @@ private void PdfViewer_PageClicked(object sender, Syncfusion.Windows.PdfViewer.P
4953

5054
Point position = new Point(x, y);
5155
pdfViewer.AnnotationMode = PdfDocumentView.PdfViewerAnnotationMode.None;
52-
var bitmapImage = new BitmapImage(new Uri("../../Data/ThankYou.png", UriKind.RelativeOrAbsolute));
56+
var bitmapImage = new BitmapImage();
57+
#if NETFRAMEWORK
58+
bitmapImage = new BitmapImage(new Uri("../../Data/ThankYou.png", UriKind.RelativeOrAbsolute));
59+
#else
60+
bitmapImage = new BitmapImage(new Uri("../../../Data/ThankYou.png", UriKind.RelativeOrAbsolute));
61+
#endif
5362
bitmapImage.CacheOption = BitmapCacheOption.OnLoad;
5463
var image = new System.Windows.Controls.Image() { Source = bitmapImage };
5564
var pdfStamp = new PdfStampAnnotation(image);

Annotations/AddCustomStampInCustomizedButton/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,7 @@
77
// General Information about an assembly is controlled through the following
88
// set of attributes. Change these attribute values to modify the information
99
// associated with an assembly.
10-
[assembly: AssemblyTitle("AddCustomStampInCustomizedButton")]
11-
[assembly: AssemblyDescription("")]
12-
[assembly: AssemblyConfiguration("")]
13-
[assembly: AssemblyCompany("")]
14-
[assembly: AssemblyProduct("AddCustomStampInCustomizedButton")]
15-
[assembly: AssemblyCopyright("Copyright © 2024")]
16-
[assembly: AssemblyTrademark("")]
17-
[assembly: AssemblyCulture("")]
10+
1811

1912
// Setting ComVisible to false makes the types in this assembly not visible
2013
// to COM components. If you need to access a type in this assembly from
@@ -51,5 +44,4 @@
5144
// You can specify all the values or you can default the Build and Revision Numbers
5245
// by using the '*' as shown below:
5346
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]
47+

0 commit comments

Comments
 (0)