Skip to content

Commit

Permalink
v4.0.0 (#13)
Browse files Browse the repository at this point in the history
* poc

* Update Sample

* same fixup
  • Loading branch information
arichika authored Apr 22, 2022
1 parent 662332b commit 4833b8d
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 268 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@ Extremely easy way to create Pdf files from ASP.NET Core
New Features
------

### 4.0.0

* Property `SaveOnServerPath` is discontinued.
* Support new delegate. `TryCustomizeAsync()`
* If you want to customize the generated binary file before `OnBuildFileSuccess()`, use this.
* Please return true to continue processing, false to drop with error.

```csharp
public ActionResult TestInlie()
{
return new ActionAsPdf("Index")
{
ContentDisposition = ContentDisposition.Inline,
TryCustomizeAsync = async (stream, context, fineName) =>
{
// some code done.
return true;

// e.g.
var customizeStream = new MemoryStream();
await stream.CopyToAsync(customizeStream);

// ...
stream.SetLength(0);
await customizeStream.CopyToAsync(stream);

return true;
},
};
}
```


### 3.0.0

* Support ASP.NET Core 3.0. Thank you [@vertonghenb](https://github.com/vertonghenb)
Expand Down
11 changes: 9 additions & 2 deletions RotativaCore.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.202
# Visual Studio Version 17
VisualStudioVersion = 17.1.32407.343
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{053EF92D-D564-4D29-8554-9422F330640C}"
EndProject
Expand All @@ -17,6 +17,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RotativaCore.UnitTests", "s
EndProject
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}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{86815082-22AE-43B1-8816-187A9BC49B2C}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
Loading

0 comments on commit 4833b8d

Please sign in to comment.