Skip to content

Commit 4833b8d

Browse files
authored
v4.0.0 (#13)
* poc * Update Sample * same fixup
1 parent 662332b commit 4833b8d

File tree

5 files changed

+373
-268
lines changed

5 files changed

+373
-268
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@ Extremely easy way to create Pdf files from ASP.NET Core
44
New Features
55
------
66

7+
### 4.0.0
8+
9+
* Property `SaveOnServerPath` is discontinued.
10+
* Support new delegate. `TryCustomizeAsync()`
11+
* If you want to customize the generated binary file before `OnBuildFileSuccess()`, use this.
12+
* Please return true to continue processing, false to drop with error.
13+
14+
```csharp
15+
public ActionResult TestInlie()
16+
{
17+
return new ActionAsPdf("Index")
18+
{
19+
ContentDisposition = ContentDisposition.Inline,
20+
TryCustomizeAsync = async (stream, context, fineName) =>
21+
{
22+
// some code done.
23+
return true;
24+
25+
// e.g.
26+
var customizeStream = new MemoryStream();
27+
await stream.CopyToAsync(customizeStream);
28+
29+
// ...
30+
stream.SetLength(0);
31+
await customizeStream.CopyToAsync(stream);
32+
33+
return true;
34+
},
35+
};
36+
}
37+
```
38+
39+
740
### 3.0.0
841

942
* Support ASP.NET Core 3.0. Thank you [@vertonghenb](https://github.com/vertonghenb)

RotativaCore.sln

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28803.202
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32407.343
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{053EF92D-D564-4D29-8554-9422F330640C}"
77
EndProject
@@ -17,6 +17,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotativaCore.UnitTests", "s
1717
EndProject
1818
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotativaCore.SampleWebApp.3.0", "src\RotativaCore.SampleWebApp.3.0\RotativaCore.SampleWebApp.3.0.csproj", "{1AAF8B2C-F313-46FB-87C6-7B6DF53A4727}"
1919
EndProject
20+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{86815082-22AE-43B1-8816-187A9BC49B2C}"
21+
ProjectSection(SolutionItems) = preProject
22+
.gitignore = .gitignore
23+
LICENSE = LICENSE
24+
README.md = README.md
25+
EndProjectSection
26+
EndProject
2027
Global
2128
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2229
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)