-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register font provider for HTML elements.
Rename PDFReportItext7 to PDFReportItext8
- Loading branch information
1 parent
114dc35
commit e06243f
Showing
7 changed files
with
421 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net6.0</TargetFrameworks> | ||
<NoWarn>CS8032;1701;1702;NU1701</NoWarn> | ||
<RollForward>Major</RollForward> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DefineConstants>TRACE;NETCORE</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<DefineConstants>DEBUG;TRACE;NETCORE</DefineConstants> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Remove="log.console.config" /> | ||
</ItemGroup> | ||
|
||
|
||
|
||
|
||
<ItemGroup> | ||
<PackageReference Include="itext7" Version="8.0.0" /> | ||
<PackageReference Include="itext7.font-asian" Version="8.0.0" /> | ||
<PackageReference Include="itext7.pdfhtml" Version="5.0.0" /> | ||
<PackageReference Include="itext7.bouncy-castle-adapter" Version="8.0.0" /> | ||
<PackageReference Include="iTextSharp-LGPL" Version="4.1.6" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" /> | ||
<PackageReference Include="xunit" Version="2.4.1" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector" Version="3.0.2"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\dotnetcore\GxClasses\GxClasses.csproj" /> | ||
<ProjectReference Include="..\..\src\dotnetcore\GxPdfReportsCS\GxPdfReportsCS.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="appsettings.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.IO; | ||
using GeneXus.Configuration; | ||
using GeneXus.Programs; | ||
using GeneXus.Utils; | ||
using Xunit; | ||
|
||
namespace UnitTesting | ||
{ | ||
public class PDFTests | ||
{ | ||
[Fact] | ||
public void TestITextFormat() | ||
{ | ||
string report = "PDFFormat.pdf"; | ||
if (File.Exists(report)) | ||
File.Delete(report); | ||
try | ||
{ | ||
apdfformat test = new apdfformat(); | ||
test.execute(); | ||
} | ||
#pragma warning disable CA1031 // Do not catch general exception types | ||
catch (Exception ex) | ||
#pragma warning restore CA1031 // Do not catch general exception types | ||
{ | ||
Console.WriteLine(ex.ToString()); | ||
} | ||
Assert.True(File.Exists(report)); | ||
} | ||
} | ||
} |
Oops, something went wrong.