Skip to content

Commit 905e31d

Browse files
992844: Added Single Project Changes
1 parent 89b5791 commit 905e31d

15 files changed

+40
-436
lines changed

PDF-to-image/PdfToImageConverter_DPI/App.config

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Configuration;
1+
using System.Configuration;
42
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
73
using System.Windows;
84

95
namespace PdfToImageConverter_DPI
@@ -14,4 +10,5 @@ namespace PdfToImageConverter_DPI
1410
public partial class App : Application
1511
{
1612
}
13+
1714
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]
File renamed without changes.

PDF-to-image/PdfToImageConverter_DPI/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
mc:Ignorable="d"
88
Title="MainWindow" Height="450" Width="800">
99
<Grid>
10-
10+
1111
</Grid>
1212
</Window>

PDF-to-image/PdfToImageConverter_DPI/MainWindow.xaml.cs

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
using Syncfusion.PdfToImageConverter;
2-
using System;
3-
using System.Collections.Generic;
2+
using System.Drawing;
3+
using System.Drawing.Imaging;
44
using System.IO;
55
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
86
using System.Windows;
9-
using System.Windows.Controls;
10-
using System.Windows.Data;
11-
using System.Windows.Documents;
12-
using System.Windows.Input;
13-
using System.Windows.Media;
14-
using System.Windows.Media.Imaging;
15-
using System.Windows.Navigation;
16-
using System.Windows.Shapes;
17-
using System.Drawing;
18-
using System.Drawing.Imaging;
197

208
namespace PdfToImageConverter_DPI
219
{
@@ -29,7 +17,7 @@ public MainWindow()
2917
InitializeComponent();
3018
PdfToImageConverter imageConverter = new PdfToImageConverter();
3119

32-
FileStream inputStream = new FileStream("../../Input.pdf", FileMode.Open, FileAccess.ReadWrite);
20+
FileStream inputStream = new FileStream("../../../Data/Input.pdf", FileMode.Open, FileAccess.ReadWrite);
3321
imageConverter.Load(inputStream);
3422

3523
// Convert PDF page to image stream with desired DPI
@@ -51,4 +39,4 @@ public MainWindow()
5139
originalImage.Save("sample.tif");
5240
}
5341
}
54-
}
42+
}
Lines changed: 12 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,12 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{7C953B3D-F21C-45D3-8DA6-FB2FF1476BFA}</ProjectGuid>
8-
<OutputType>WinExe</OutputType>
9-
<RootNamespace>PdfToImageConverter_DPI</RootNamespace>
10-
<AssemblyName>PdfToImageConverter_DPI</AssemblyName>
11-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14-
<WarningLevel>4</WarningLevel>
15-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16-
<Deterministic>true</Deterministic>
17-
<NuGetPackageImportStamp>
18-
</NuGetPackageImportStamp>
19-
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21-
<PlatformTarget>AnyCPU</PlatformTarget>
22-
<DebugSymbols>true</DebugSymbols>
23-
<DebugType>full</DebugType>
24-
<Optimize>false</Optimize>
25-
<OutputPath>bin\Debug\</OutputPath>
26-
<DefineConstants>DEBUG;TRACE</DefineConstants>
27-
<ErrorReport>prompt</ErrorReport>
28-
<WarningLevel>4</WarningLevel>
29-
</PropertyGroup>
30-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31-
<PlatformTarget>AnyCPU</PlatformTarget>
32-
<DebugType>pdbonly</DebugType>
33-
<Optimize>true</Optimize>
34-
<OutputPath>bin\Release\</OutputPath>
35-
<DefineConstants>TRACE</DefineConstants>
36-
<ErrorReport>prompt</ErrorReport>
37-
<WarningLevel>4</WarningLevel>
38-
</PropertyGroup>
39-
<ItemGroup>
40-
<Reference Include="Syncfusion.Licensing, Version=32.1462.19.0, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
41-
<HintPath>packages\Syncfusion.Licensing.32.1.19\lib\net462\Syncfusion.Licensing.dll</HintPath>
42-
</Reference>
43-
<Reference Include="Syncfusion.PdfToImageConverter.Base, Version=32.1462.19.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
44-
<HintPath>packages\Syncfusion.PdfToImageConverter.WPF.32.1.19\lib\net462\Syncfusion.PdfToImageConverter.Base.dll</HintPath>
45-
</Reference>
46-
<Reference Include="System" />
47-
<Reference Include="System.Data" />
48-
<Reference Include="System.Drawing" />
49-
<Reference Include="System.Numerics" />
50-
<Reference Include="System.Xml" />
51-
<Reference Include="Microsoft.CSharp" />
52-
<Reference Include="System.Core" />
53-
<Reference Include="System.Xml.Linq" />
54-
<Reference Include="System.Data.DataSetExtensions" />
55-
<Reference Include="System.Net.Http" />
56-
<Reference Include="System.Xaml">
57-
<RequiredTargetFramework>4.0</RequiredTargetFramework>
58-
</Reference>
59-
<Reference Include="WindowsBase" />
60-
<Reference Include="PresentationCore" />
61-
<Reference Include="PresentationFramework" />
62-
</ItemGroup>
63-
<ItemGroup>
64-
<ApplicationDefinition Include="App.xaml">
65-
<Generator>MSBuild:Compile</Generator>
66-
<SubType>Designer</SubType>
67-
</ApplicationDefinition>
68-
<Page Include="MainWindow.xaml">
69-
<Generator>MSBuild:Compile</Generator>
70-
<SubType>Designer</SubType>
71-
</Page>
72-
<Compile Include="App.xaml.cs">
73-
<DependentUpon>App.xaml</DependentUpon>
74-
<SubType>Code</SubType>
75-
</Compile>
76-
<Compile Include="MainWindow.xaml.cs">
77-
<DependentUpon>MainWindow.xaml</DependentUpon>
78-
<SubType>Code</SubType>
79-
</Compile>
80-
</ItemGroup>
81-
<ItemGroup>
82-
<Compile Include="Properties\AssemblyInfo.cs">
83-
<SubType>Code</SubType>
84-
</Compile>
85-
<Compile Include="Properties\Resources.Designer.cs">
86-
<AutoGen>True</AutoGen>
87-
<DesignTime>True</DesignTime>
88-
<DependentUpon>Resources.resx</DependentUpon>
89-
</Compile>
90-
<Compile Include="Properties\Settings.Designer.cs">
91-
<AutoGen>True</AutoGen>
92-
<DependentUpon>Settings.settings</DependentUpon>
93-
<DesignTimeSharedInput>True</DesignTimeSharedInput>
94-
</Compile>
95-
<EmbeddedResource Include="Properties\Resources.resx">
96-
<Generator>ResXFileCodeGenerator</Generator>
97-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
98-
</EmbeddedResource>
99-
<None Include="Input.pdf" />
100-
<None Include="packages.config" />
101-
<None Include="Properties\Settings.settings">
102-
<Generator>SettingsSingleFileGenerator</Generator>
103-
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
104-
</None>
105-
</ItemGroup>
106-
<ItemGroup>
107-
<None Include="App.config" />
108-
</ItemGroup>
109-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
110-
<Import Project="packages\Syncfusion.PdfToImageConverter.WPF.32.1.19\build\net462\Syncfusion.PdfToImageConverter.WPF.targets" Condition="Exists('packages\Syncfusion.PdfToImageConverter.WPF.32.1.19\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" />
111-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
112-
<PropertyGroup>
113-
<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>
114-
</PropertyGroup>
115-
<Error Condition="!Exists('packages\Syncfusion.PdfToImageConverter.WPF.32.1.19\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Syncfusion.PdfToImageConverter.WPF.32.1.19\build\net462\Syncfusion.PdfToImageConverter.WPF.targets'))" />
116-
</Target>
117-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Syncfusion.PdfToImageConverter.WPF" Version="*" />
9+
<PackageReference Include="System.Drawing.Common" Version="10.0.1" />
10+
</ItemGroup>
11+
<Import Project="targets\MultiTargeting.targets" />
12+
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<Solution>
2-
<Project Path="PdfToImageConverter_DPI.csproj" Id="7c953b3d-f21c-45d3-8da6-fb2ff1476bfa" />
2+
<Project Path="PdfToImageConverter_DPI.csproj" />
33
</Solution>

PDF-to-image/PdfToImageConverter_DPI/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 52 deletions
This file was deleted.

PDF-to-image/PdfToImageConverter_DPI/Properties/Resources.Designer.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)