Skip to content

Commit

Permalink
Merge pull request #24 from Rzaw/v56.1
Browse files Browse the repository at this point in the history
Updated version v56.1
  • Loading branch information
balbarak authored Sep 2, 2022
2 parents 5ad093d + 8401f0e commit 776ec2d
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Balbarak.WeasyPrint.Test/WeasyPrintClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace Balbarak.WeasyPrint.Test
{
public class WeasyPrintClientTest
{
private readonly string _inputFolder = @"C:\Repos\WeasyPrint-netcore\src\Balbarak.WeasyPrint.Test\inputs";
private readonly string _outputFolder = @"C:\Repos\WeasyPrint-netcore\src\Balbarak.WeasyPrint.Test\outputs";
private readonly string _inputFolder = @"C:\Users\MatijsLode\Source\OpenSource\WeasyPrint-netcore\src\Balbarak.WeasyPrint.Test\inputs";
private readonly string _outputFolder = @"C:\Users\MatijsLode\Source\OpenSource\WeasyPrint-netcore\src\Balbarak.WeasyPrint.Test\outputs";

[Fact]
public async Task Should_Create_Pdf_From_Input_Text_Async()
Expand Down
34 changes: 32 additions & 2 deletions src/Balbarak.WeasyPrint.Test/inputs/complex.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,46 @@
<div class="page">

<h1 style="text-align:center">
بسم الله الرحمن الرحيم
Hello form complex format
</h1>

</div>
<div class="page">

<h1 style="text-align:center">
صفحة رقم 2
This is page 2
</h1>
</div>

<div class="page">

<table>
<thead>
<tr>
<th>No</th>
<th>Name</th>
<th>Available</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Es</td>
<td>Yes</td>
</tr>
<tr>
<td>2</td>
<td>Šeit</td>
<td>No</td>
</tr>
<tr>
<td>3</td>
<td>Biju</td>
<td>Maybe</td>
</tr>
</tbody>
</table>
</div>

</body>
</html>
Binary file modified src/Balbarak.WeasyPrint.Test/outputs/output.pdf
Binary file not shown.
Binary file modified src/Balbarak.WeasyPrint.Test/outputs/url.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions src/Balbarak.WeasyPrint/Balbarak.WeasyPrint.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@


<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Update="Resources\FileResx.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
Expand All @@ -30,6 +35,10 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Update="Resources\FileResx.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>FileResx.Designer.cs</LastGenOutput>
Expand Down
4 changes: 2 additions & 2 deletions src/Balbarak.WeasyPrint/Helpers/FilesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Task InitFilesAsync()
Directory.CreateDirectory(FolderPath);
}

var folderData = FileResx.win64_v51;
var folderData = FileResx.weasyprint_python_binary;

var compressedFileName = Path.Combine(FolderPath, "data.zip");

Expand Down Expand Up @@ -111,7 +111,7 @@ private string GetFolderPath()
{
var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

var folderName = "balbarak-weasyprintv51";
var folderName = "netwrapper-weasyprint";

var fullPath = Path.Combine(appDataPath, folderName);

Expand Down
6 changes: 3 additions & 3 deletions src/Balbarak.WeasyPrint/Resources/FileResx.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Balbarak.WeasyPrint/Resources/FileResx.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="win64_v51" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>win64-v51.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="weasyprint_python_binary" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>weasyprint-python-binary.zip;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
Binary file not shown.

0 comments on commit 776ec2d

Please sign in to comment.