We think this is the quickest and easiest way to generate good looking PDF documents from a .NET application or web site.
The Scryber library allows developers to declaratively define documents, pages, components and even
in an xml file. Load that file, perform any manipulations required and render the document to an output stream.
It is now possible to create PDF documents that are branded, designed and consistent.
It seems to be always hard work to create PDF's, especially good looking, consistent, flowing PDF's. Now Scryber makes it much easier.
An email or html page lacks presence, they have no perceived value. As html has become more dynamic so it's ability to represent a static document is reduced, and printing is not appropriate.
PDF has a physicality not available with current browser renditions of HTML.
Scryber is a valuable tool in your box of tricks.
Download the package
scryber is now available to download and install directly from Visual Studio and NuGet. This is the preferred method for all users of .NET 4.0+, for users of 2.0 - 3.5 you can still install from the release.
VSIX extension is available here...
And the NuGet package (does not include the item templates) is available here
Or simply search for scryber from within Visual Studio Extensions and Updates
As a quick example of your xml file
<?xml version="1.0" encoding="utf-8"?>
<pdf:Document xmlns:pdf="Scryber.Components, Scryber.Components"
<pdf:Page id="MyFirstPage" >
And then output the document
protected void Page_GeneratePDF(object sender, CommandEventArgs e)
PDFDocument doc = PDFDocument.ParseDocument("./App_Data/PDFs/Document.pdfx");
OK - Nice, but not that special
If that was all, then it might be interesting, but nothing spectacular, right?
Well what about...
- cascading styles,
- data binding,
- custom components,
- or even writing your own extensions.
Would that spark interest? Thought so...
There is a walkthrough for creating a dynamic styled PDF document on CodeProject
And we are building the documentation at scryber.co.uk