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 styles
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.
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 CodeProjecthttp://www.codeproject.com/Articles/531083/Generating-dynamic-PDF-documents-with-Scryber
And we are building the documentation at scryber.co.ukhttp://www.scryber.co.uk/HowTo.aspx