Skip to content

Commit 44650df

Browse files
committed
[RELEASE] iText 7 pdfHTML - 2.1.4
https://github.com/itext/i7n-pdfhtml/releases/tag/2.1.4 * release/2.1.4: [RELEASE] 2.1.4-SNAPSHOT -> 2.1.4 Add a new test demonstrating the problem of total number of pages being displayed incorrectly Add test that illustrates table width problem Remove log messages Update schema version and add license to nuspec Add test to reproduce the issue Activate SpotBugs and add exclusions for current errors Implement disabled pseudo class selector. Add some new tests. Adjust test and html file, add ToDo remark Update cmp files Update some more cmps. Update cmps related to correct default SVG font-size metric processing. Make addCalligraphFonts protected, add javadoc Add a test with a chain of css-imports. add test for DEVSIX-2231 Update cmp-files Add tests for thead, tbody and tfoot HTML elements Remove unnecessary log checks. Refactor font-size resolution methods. Add missing copyright headers Pass correct base url to SVG converter Minor refactoring: move some tests which do not use private resources to a public html2pdf repository. Fix processing inline-block images as children of <body> tag Add additional file types to .gitattributes Update cmp-s Update port-hash after release [RELEASE] 2.1.3-SNAPSHOT -> 2.1.4-SNAPSHOT
2 parents 6b1be7b + ced1140 commit 44650df

File tree

160 files changed

+1157
-179
lines changed

Some content is hidden

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

160 files changed

+1157
-179
lines changed

.gitattributes

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@
55
# to LF line endings on checkout.
66
*.afm text eol=lf
77
*.cmap text eol=lf
8-
*.crt text eol=lf
98
*.cs text eol=lf ident
9+
*.css text eol=lf
10+
*.htm text eol=lf
1011
*.html text eol=lf
1112
*.java text eol=lf ident
1213
*.lng text eol=lf
1314
*.md text eol=lf
1415
*.pom text eol=lf
1516
*.properties text eol=lf
17+
*.svg text eol=lf
1618
*.txt text eol=lf
1719
*.xfdf text eol=lf
20+
*.xht text eol=lf
21+
*.xhtml text eol=lf
1822
*.xml text eol=lf
1923
port-hash text eol=lf
2024

@@ -24,21 +28,34 @@ port-hash text eol=lf
2428
*.sln text eol=crlf
2529

2630
# Denote all files that are truly binary and should not be modified.
31+
*.aif binary
32+
*.aiff binary
2733
*.bmp binary
34+
*.cer binary
2835
*.cmp binary
36+
*.crt binary
2937
*.dib binary
3038
*.gif binary
39+
*.icc binary
3140
*.j2k binary
3241
*.jb2 binary
3342
*.jp2 binary
43+
*.jpc binary
3444
*.jpg binary
3545
*.key binary
3646
*.otf binary
47+
*.p12 binary
3748
*.pdf binary
3849
*.pfb binary
50+
*.pfm binary
3951
*.png binary
52+
*.snd binary
4053
*.tif binary
4154
*.tiff binary
4255
*.ttc binary
4356
*.ttf binary
57+
*.u3d binary
58+
*.wav binary
4459
*.wmf binary
60+
*.woff binary
61+
*.woff2 binary

itext.tests/itext.html2pdf.tests/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
[assembly: Guid("ae4e5743-0665-4705-9a33-07ea57cdd269")]
1717

18-
[assembly: AssemblyVersion("2.1.3.0")]
19-
[assembly: AssemblyFileVersion("2.1.3.0")]
20-
[assembly: AssemblyInformationalVersion("2.1.3")]
18+
[assembly: AssemblyVersion("2.1.4.0")]
19+
[assembly: AssemblyFileVersion("2.1.4.0")]
20+
[assembly: AssemblyInformationalVersion("2.1.4")]
2121

2222
#if !NETSTANDARD1_6
2323
[assembly: NUnit.Framework.Timeout(300000)]

itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.csproj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@
5050
<Project>{e2828ac4-3c63-4b2a-b5ad-5f98862775be}</Project>
5151
<Name>itext.forms</Name>
5252
</ProjectReference>
53-
<Reference Include="itext.forms, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.forms\itext.forms.csproj')">
54-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.forms.dll</HintPath>
53+
<Reference Include="itext.forms, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.forms\itext.forms.csproj')">
54+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.forms.dll</HintPath>
5555
</Reference>
5656
<ProjectReference Include="..\..\..\itextcore\itext\itext.hyph\itext.hyph.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.csproj')">
5757
<Project>{56137079-541A-425A-AB97-43AF63793C97}</Project>
5858
<Name>itext.hyph</Name>
5959
</ProjectReference>
60-
<Reference Include="itext.hyph, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.csproj')">
61-
<HintPath>$(SolutionDir)\packages\itext7.hyph.7.1.6\lib\net40\itext.hyph.dll</HintPath>
60+
<Reference Include="itext.hyph, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.csproj')">
61+
<HintPath>$(SolutionDir)\packages\itext7.hyph.7.1.7\lib\net40\itext.hyph.dll</HintPath>
6262
</Reference>
6363
<ProjectReference Include="..\..\..\itextcore\itext\itext.io\itext.io.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.io\itext.io.csproj')">
6464
<Project>{cee5e7e1-1bf0-4be1-9941-903262ce2f83}</Project>
6565
<Name>itext.io</Name>
6666
</ProjectReference>
67-
<Reference Include="itext.io, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.csproj')">
68-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.io.dll</HintPath>
67+
<Reference Include="itext.io, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.csproj')">
68+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.io.dll</HintPath>
6969
</Reference>
7070
<ProjectReference Include="..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj')">
7171
<Project>{4e7819e8-7555-4e2e-9a01-d8718a2cfdda}</Project>
@@ -74,43 +74,43 @@
7474
<Reference Include="BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942" Condition="!Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj')">
7575
<HintPath>$(SolutionDir)\packages\Portable.BouncyCastle.1.8.1.3\lib\net40\BouncyCastle.Crypto.dll</HintPath>
7676
</Reference>
77-
<Reference Include="itext.kernel, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj')">
78-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.kernel.dll</HintPath>
77+
<Reference Include="itext.kernel, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.csproj')">
78+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.kernel.dll</HintPath>
7979
</Reference>
8080
<ProjectReference Include="..\..\..\itextcore\itext\itext.layout\itext.layout.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.layout\itext.layout.csproj')">
8181
<Project>{42173642-db52-44d3-9883-3e34c65c53bc}</Project>
8282
<Name>itext.layout</Name>
8383
</ProjectReference>
84-
<Reference Include="itext.layout, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.layout\itext.layout.csproj')">
85-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.layout.dll</HintPath>
84+
<Reference Include="itext.layout, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.layout\itext.layout.csproj')">
85+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.layout.dll</HintPath>
8686
</Reference>
8787
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.csproj')">
8888
<Project>{9fc2f0b3-a8d2-46da-8724-72e00e67a8fa}</Project>
8989
<Name>itext.pdfa</Name>
9090
</ProjectReference>
91-
<Reference Include="itext.pdfa, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.csproj')">
92-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.pdfa.dll</HintPath>
91+
<Reference Include="itext.pdfa, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.csproj')">
92+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.pdfa.dll</HintPath>
9393
</Reference>
9494
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj')">
9595
<Project>{f9880dc4-f015-4413-af86-66d0e9512774}</Project>
9696
<Name>itext.pdftest</Name>
9797
</ProjectReference>
98-
<Reference Include="itext.pdftest, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj')">
99-
<HintPath>$(SolutionDir)\packages\itext7.pdftest.7.1.6\lib\net40\itext.pdftest.dll</HintPath>
98+
<Reference Include="itext.pdftest, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.csproj')">
99+
<HintPath>$(SolutionDir)\packages\itext7.pdftest.7.1.7\lib\net40\itext.pdftest.dll</HintPath>
100100
</Reference>
101101
<ProjectReference Include="..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.csproj')">
102102
<Project>{8636f290-00df-403e-b841-e4bfd6d9ce7a}</Project>
103103
<Name>itext.styledxmlparser</Name>
104104
</ProjectReference>
105-
<Reference Include="itext.styledxmlparser, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.csproj')">
106-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.styledxmlparser.dll</HintPath>
105+
<Reference Include="itext.styledxmlparser, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.csproj')">
106+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.styledxmlparser.dll</HintPath>
107107
</Reference>
108108
<ProjectReference Include="..\..\..\itextcore\itext\itext.svg\itext.svg.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.svg\itext.svg.csproj')">
109109
<Project>{ddec35d2-5781-471d-5ea1-a6e433eddb11}</Project>
110110
<Name>itext.svg</Name>
111111
</ProjectReference>
112-
<Reference Include="itext.svg, Version=7.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.svg\itext.svg.csproj')">
113-
<HintPath>$(SolutionDir)\packages\itext7.7.1.6\lib\net40\itext.svg.dll</HintPath>
112+
<Reference Include="itext.svg, Version=7.1.7.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca" Condition="!Exists('..\..\..\itextcore\itext\itext.svg\itext.svg.csproj')">
113+
<HintPath>$(SolutionDir)\packages\itext7.7.1.7\lib\net40\itext.svg.dll</HintPath>
114114
</Reference>
115115
<ProjectReference Include="..\..\itext\itext.html2pdf\itext.html2pdf.csproj">
116116
<Project>{ff6ba09d-3655-466a-8c17-a7bfd3479ca1}</Project>

itext.tests/itext.html2pdf.tests/itext.html2pdf.tests.netstandard.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
</ItemGroup>
4545
<ItemGroup>
4646
<ProjectReference Include="..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj')" />
47-
<PackageReference Include="itext7" Version="7.1.6" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj')" />
47+
<PackageReference Include="itext7" Version="7.1.7" Condition="!Exists('..\..\..\itextcore\itext\itext.io\itext.io.netstandard.csproj')" />
4848
<ProjectReference Include="..\..\..\itextcore\itext\itext.kernel\itext.kernel.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.kernel\itext.kernel.netstandard.csproj')" />
4949
<ProjectReference Include="..\..\..\itextcore\itext\itext.layout\itext.layout.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.layout\itext.layout.netstandard.csproj')" />
5050
<ProjectReference Include="..\..\..\itextcore\itext\itext.forms\itext.forms.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.forms\itext.forms.netstandard.csproj')" />
5151
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdfa\itext.pdfa.netstandard.csproj')" />
5252
<ProjectReference Include="..\..\..\itextcore\itext\itext.hyph\itext.hyph.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.netstandard.csproj')" />
53-
<PackageReference Include="itext7.hyph" Version="7.1.6" Condition="!Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.netstandard.csproj')" />
53+
<PackageReference Include="itext7.hyph" Version="7.1.7" Condition="!Exists('..\..\..\itextcore\itext\itext.hyph\itext.hyph.netstandard.csproj')" />
5454
<ProjectReference Include="..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj')" />
55-
<PackageReference Include="itext7.pdftest" Version="7.1.6" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj')" />
55+
<PackageReference Include="itext7.pdftest" Version="7.1.7" Condition="!Exists('..\..\..\itextcore\itext\itext.pdftest\itext.pdftest.netstandard.csproj')" />
5656
<ProjectReference Include="..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.styledxmlparser\itext.styledxmlparser.netstandard.csproj')" />
5757
<ProjectReference Include="..\..\..\itextcore\itext\itext.svg\itext.svg.netstandard.csproj" Condition="Exists('..\..\..\itextcore\itext\itext.svg\itext.svg.netstandard.csproj')" />
5858
<ProjectReference Include="..\..\itext\itext.html2pdf\itext.html2pdf.netstandard.csproj" />

itext.tests/itext.html2pdf.tests/itext/html2pdf/Html2ElementsTest.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ source product.
4646
using iText.Layout.Element;
4747
using iText.Layout.Properties;
4848
using iText.Test;
49+
using iText.Test.Attributes;
4950

5051
namespace iText.Html2pdf {
5152
public class Html2ElementsTest : ExtendedITextTest {
@@ -168,5 +169,17 @@ Any convert to elements workflow of course doesn't have a PdfDocument.
168169
props.SetOutlineHandler(outlineHandler);
169170
HtmlConverter.ConvertToElements(html);
170171
}
172+
173+
/// <exception cref="System.IO.IOException"/>
174+
[NUnit.Framework.Test]
175+
[LogMessage(iText.StyledXmlParser.LogMessageConstant.UNABLE_TO_RETRIEVE_STREAM_WITH_GIVEN_BASE_URI, Count =
176+
1)]
177+
[LogMessage(iText.Html2pdf.LogMessageConstant.WORKER_UNABLE_TO_PROCESS_OTHER_WORKER, Count = 1)]
178+
[LogMessage(iText.Html2pdf.LogMessageConstant.PDF_DOCUMENT_NOT_PRESENT, Count = 1)]
179+
public virtual void HtmlObjectMalformedUrlTest() {
180+
String html = "<object data ='htt://as' type='image/svg+xml'></object>";
181+
IList<IElement> lst = HtmlConverter.ConvertToElements(html);
182+
NUnit.Framework.Assert.IsTrue(lst.Count == 0);
183+
}
171184
}
172185
}

itext.tests/itext.html2pdf.tests/itext/html2pdf/Html2PdfTest.cs

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ source product.
4545
using iText.IO.Util;
4646
using iText.Kernel.Utils;
4747
using iText.Test;
48+
using iText.Test.Attributes;
4849

4950
namespace iText.Html2pdf {
5051
public class Html2PdfTest : ExtendedITextTest {
@@ -156,5 +157,62 @@ public virtual void ABlockInPTagTest() {
156157
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "aBlockInPTag.pdf", sourceFolder
157158
+ "cmp_aBlockInPTag.pdf", destinationFolder, "diff03_"));
158159
}
160+
161+
/// <exception cref="System.IO.IOException"/>
162+
/// <exception cref="System.Exception"/>
163+
[NUnit.Framework.Test]
164+
public virtual void Base64svgTest() {
165+
HtmlConverter.ConvertToPdf(new FileInfo(sourceFolder + "objectTag_base64svg.html"), new FileInfo(destinationFolder
166+
+ "objectTag_base64svg.pdf"));
167+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "objectTag_base64svg.pdf"
168+
, sourceFolder + "cmp_objectTag_base64svg.pdf", destinationFolder, "diff01_"));
169+
}
170+
171+
/// <exception cref="System.IO.IOException"/>
172+
/// <exception cref="System.Exception"/>
173+
[NUnit.Framework.Test]
174+
[LogMessage(iText.StyledXmlParser.LogMessageConstant.UNABLE_TO_RETRIEVE_STREAM_WITH_GIVEN_BASE_URI, Count =
175+
1)]
176+
[LogMessage(iText.Html2pdf.LogMessageConstant.WORKER_UNABLE_TO_PROCESS_OTHER_WORKER, Count = 1)]
177+
public virtual void HtmlObjectIncorrectBase64Test() {
178+
HtmlConverter.ConvertToPdf(new FileInfo(sourceFolder + "objectTag_incorrectBase64svg.html"), new FileInfo(
179+
destinationFolder + "objectTag_incorrectBase64svg.pdf"));
180+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "objectTag_incorrectBase64svg.pdf"
181+
, sourceFolder + "cmp_objectTag_incorrectBase64svg.pdf", destinationFolder, "diff01_"));
182+
}
183+
184+
/// <exception cref="System.IO.IOException"/>
185+
/// <exception cref="System.Exception"/>
186+
[NUnit.Framework.Test]
187+
[LogMessage(iText.Html2pdf.LogMessageConstant.WORKER_UNABLE_TO_PROCESS_IT_S_TEXT_CONTENT, Count = 1)]
188+
[LogMessage(iText.Html2pdf.LogMessageConstant.WORKER_UNABLE_TO_PROCESS_OTHER_WORKER, Count = 2)]
189+
public virtual void HtmlObjectAltTextTest() {
190+
//update after DEVSIX-1346
191+
HtmlConverter.ConvertToPdf(new FileInfo(sourceFolder + "objectTag_altText.html"), new FileInfo(destinationFolder
192+
+ "objectTag_altText.pdf"));
193+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "objectTag_altText.pdf"
194+
, sourceFolder + "cmp_objectTag_altText.pdf", destinationFolder, "diff01_"));
195+
}
196+
197+
/// <exception cref="System.IO.IOException"/>
198+
/// <exception cref="System.Exception"/>
199+
[NUnit.Framework.Test]
200+
[LogMessage(iText.Html2pdf.LogMessageConstant.WORKER_UNABLE_TO_PROCESS_OTHER_WORKER, Count = 1)]
201+
public virtual void HtmlObjectNestedObjectTest() {
202+
HtmlConverter.ConvertToPdf(new FileInfo(sourceFolder + "objectTag_nestedTag.html"), new FileInfo(destinationFolder
203+
+ "objectTag_nestedTag.pdf"));
204+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "objectTag_nestedTag.pdf"
205+
, sourceFolder + "cmp_objectTag_nestedTag.pdf", destinationFolder, "diff01_"));
206+
}
207+
208+
/// <exception cref="System.IO.IOException"/>
209+
/// <exception cref="System.Exception"/>
210+
[NUnit.Framework.Test]
211+
public virtual void HtmlImgBase64SVGTest() {
212+
HtmlConverter.ConvertToPdf(new FileInfo(sourceFolder + "imgTag_base64svg.html"), new FileInfo(destinationFolder
213+
+ "imgTag_base64svg.pdf"));
214+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + "imgTag_base64svg.pdf"
215+
, sourceFolder + "cmp_imgTag_base64svg.pdf", destinationFolder, "diff01_"));
216+
}
159217
}
160218
}

0 commit comments

Comments
 (0)