Skip to content

Commit 1f9c83c

Browse files
901074 How to set the font size of text annotations greater than values available in WPF PdfViewer
1 parent cc5d2db commit 1f9c83c

File tree

7 files changed

+73
-17
lines changed

7 files changed

+73
-17
lines changed

Annotations/CustomizeFontSizeOfTextAnnotation/CustomizeFontSizeSample/CustomizeFontSizeSample.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,8 @@
9999
<None Include="App.config" />
100100
</ItemGroup>
101101
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
102-
<Import Project="packages\Syncfusion.PdfToImageConverter.WPF.27.2.2\build\net462\Syncfusion.PdfToImageConverter.WPF.targets" Condition="Exists('packages\Syncfusion.PdfToImageConverter.WPF.27.2.2\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" />
103102
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
104103
<PropertyGroup>
105-
<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>
106-
</PropertyGroup>
107-
<Error Condition="!Exists('packages\Syncfusion.PdfToImageConverter.WPF.27.2.2\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Syncfusion.PdfToImageConverter.WPF.27.2.2\build\net462\Syncfusion.PdfToImageConverter.WPF.targets'))" />
108-
</Target>
104+
</PropertyGroup>
105+
</Target>
109106
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="Syncfusion.PdfViewer.WPF" Version="*" />
13+
</ItemGroup>
14+
15+
</Project>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35527.113 d17.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomizeFontSizeSample_NET", "CustomizeFontSizeSample_NET.csproj", "{EB12763B-8419-4718-90A9-910294BCA643}"
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+
{EB12763B-8419-4718-90A9-910294BCA643}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{EB12763B-8419-4718-90A9-910294BCA643}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{EB12763B-8419-4718-90A9-910294BCA643}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{EB12763B-8419-4718-90A9-910294BCA643}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

Annotations/CustomizeFontSizeOfTextAnnotation/CustomizeFontSizeSample/MainWindow.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ public partial class MainWindow : Window
1212
public MainWindow()
1313
{
1414
InitializeComponent();
15+
#if NETCOREAPP
16+
pdfViewer.Load("../../../../../../PDF/HTTP Succinctly.pdf");
17+
#else
1518
pdfViewer.Load("../../../../../PDF/HTTP Succinctly.pdf");
19+
#endif
1620
pdfViewer.Loaded += pdfViewer_Loaded;
1721
}
1822
private void pdfViewer_Loaded(object sender, RoutedEventArgs e)

Annotations/CustomizeFontSizeOfTextAnnotation/CustomizeFontSizeSample/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
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("CustomizeFontSizeSample")]
11-
[assembly: AssemblyDescription("")]
12-
[assembly: AssemblyConfiguration("")]
13-
[assembly: AssemblyCompany("")]
14-
[assembly: AssemblyProduct("CustomizeFontSizeSample")]
1510
[assembly: AssemblyCopyright("Copyright © 2024")]
1611
[assembly: AssemblyTrademark("")]
1712
[assembly: AssemblyCulture("")]
@@ -51,5 +46,3 @@
5146
// You can specify all the values or you can default the Build and Revision Numbers
5247
// by using the '*' as shown below:
5348
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]

Annotations/CustomizeFontSizeOfTextAnnotation/CustomizeFontSizeSample/Properties/Settings.Designer.cs

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Syncfusion.Compression.Base" version="*" targetFramework="net48" />
4-
<package id="Syncfusion.Licensing" version="*" targetFramework="net48" />
5-
<package id="Syncfusion.Pdf.Wpf" version="*" targetFramework="net48" />
6-
<package id="Syncfusion.PdfToImageConverter.WPF" version="*" targetFramework="net48" />
73
<package id="Syncfusion.PdfViewer.WPF" version="*" targetFramework="net48" />
8-
<package id="Syncfusion.Shared.WPF" version="*" targetFramework="net48" />
94
</packages>

0 commit comments

Comments
 (0)