Skip to content

Commit

Permalink
testing content disposition
Browse files Browse the repository at this point in the history
  • Loading branch information
webgio committed Oct 11, 2017
1 parent 47287c6 commit 5dce4be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Rotativa.Demo/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ActionResult AuthorizedIndex()

public ActionResult Test()
{
return new ActionAsPdf("Index", new { name = "Giorgio" }) { FileName = "Test.pdf" };
return new ActionAsPdf("Index", new { name = "Giorgio" }) { FileName = "Test.pdf", ContentDisposition=ContentDisposition.Inline };
}

public ActionResult TestImage()
Expand Down Expand Up @@ -76,7 +76,8 @@ public ActionResult TestView()
FileName = "TestView.pdf",
PageSize = Size.A3,
PageOrientation = Orientation.Landscape,
PageMargins = { Left = 0, Right = 0 }
PageMargins = { Left = 0, Right = 0 },
ContentDisposition =ContentDisposition.Inline
};
}

Expand Down
4 changes: 2 additions & 2 deletions Rotativa/Rotativa.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Rotativa</id>
<version>1.7.2</version>
<version>1.7.3</version>
<title>Rotativa</title>
<authors>Giorgio Bozio</authors>
<owners>Giorgio Bozio</owners>
Expand All @@ -11,7 +11,7 @@
<!--<iconUrl></iconUrl>-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Extremely easy way to print Pdf in Aspnet Mvc</description>
<releaseNotes>Added support for creating images: ActionAsImage, ViewAsImage, RouteAsImage, UrlAsImage. .Net and MVC updated</releaseNotes>
<releaseNotes>Added support for Content disposition inline</releaseNotes>
<copyright>Copyright 2012</copyright>
<tags>AspNetMvc Pdf</tags>
</metadata>
Expand Down

0 comments on commit 5dce4be

Please sign in to comment.