Scryber.Core 5.0.5-beta

The scryber pdf engine for dotnet 5 - change the way you make documents.

Scryber is an advanced PDF generation engine based around XHTML templates with CSS styles and SVG drawing. It includes full flowing pages, dynamic template binding and referenced external files, images, css and fonts. Easily create documents from your Apps, MVC sites, or Javascipt ajax calls.

This framework is built entirely in .NET5 and is released under the LGPL licence so you can use to it in commercial applications.

This is a prerelease version of Scryber.Core.
There is a newer version of this package available.
See the version list below for details.
Install-Package Scryber.Core -Version 5.0.5-beta
dotnet add package Scryber.Core --version 5.0.5-beta
<PackageReference Include="Scryber.Core" Version="5.0.5-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Scryber.Core --version 5.0.5-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Scryber.Core, 5.0.5-beta"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Scryber.Core as a Cake Addin
#addin nuget:?package=Scryber.Core&version=5.0.5-beta&prerelease

// Install Scryber.Core as a Cake Tool
#tool nuget:?package=Scryber.Core&version=5.0.5-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Change the way you create documents.

With a styles based template layout it is easy to create good looking,
flowing documents with dynamic content from you applications or sites.

HTML First

The latest version of scryber makes a significant switch to an XHTML first approach.
If you know HTML you can create documents.

scryber supports:

  • standard html body, tables, lists, divs and spans and many newer html5 tags
  • flowing and flexible layout with multiple pages in css sizes, along with page headers, footers and breaks.
  • SVG elements for drawings and icons.
  • cascading styles: linked, embedded or inline using css syntax and priority.
  • databinding for dynamic content on simple and complex objects with repeating templates.
  • embed and iframe imports of external content,
  • sizing and positioning of elements inline, block, relative or absolute.
  • images and colours with text and shape fills backgrounds and borders.
  • logging and appending to the output
  • multiple fonts, including linked google fonts, with text alignment; spacing; leading; decoration and breaking.

If you have used the previous pdfx files, the older templates should continue to work. But we will be concentrating on html, css and svg going forwards.

Getting Started

The easiest way to begin is to use the Nuget Packages here

scryber.core package
(Base libraries for GUI or console applications)

OR for asp.net mvc

scryber.core.mvc package
(Which includes the scryber.core package).

The source is available on GitHub

Contributions always welcome

scryber.core source code

Documentation on ReadTheDocs

Check out Read the Docs for more information on how to use the library.

scryber.core documentation

Change the way you create documents.

With a styles based template layout it is easy to create good looking,
flowing documents with dynamic content from you applications or sites.

HTML First

The latest version of scryber makes a significant switch to an XHTML first approach.
If you know HTML you can create documents.

scryber supports:

  • standard html body, tables, lists, divs and spans and many newer html5 tags
  • flowing and flexible layout with multiple pages in css sizes, along with page headers, footers and breaks.
  • SVG elements for drawings and icons.
  • cascading styles: linked, embedded or inline using css syntax and priority.
  • databinding for dynamic content on simple and complex objects with repeating templates.
  • embed and iframe imports of external content,
  • sizing and positioning of elements inline, block, relative or absolute.
  • images and colours with text and shape fills backgrounds and borders.
  • logging and appending to the output
  • multiple fonts, including linked google fonts, with text alignment; spacing; leading; decoration and breaking.

If you have used the previous pdfx files, the older templates should continue to work. But we will be concentrating on html, css and svg going forwards.

Getting Started

The easiest way to begin is to use the Nuget Packages here

scryber.core package
(Base libraries for GUI or console applications)

OR for asp.net mvc

scryber.core.mvc package
(Which includes the scryber.core package).

The source is available on GitHub

Contributions always welcome

scryber.core source code

Documentation on ReadTheDocs

Check out Read the Docs for more information on how to use the library.

scryber.core documentation

Release Notes

5.0.5

Multiple enhancements including

Embed and iFrame support
Support for border-left, border-right, etc
Support for encryption and restrictions
Classes and styles on templates are supported.
Added em, strong, strike, del, ins elements
Html column width and break inside
CSS and HTML Logging
Fixed application of multiple styles with the same word inside
Allow missing images on the document is now supported.
Contain fill style for background images.

5.0.4

Added SVG Support, and local font urls

5.0.3

Public release with most of the issue ironed out (just let us know if not). Along with @font-face, absolute, relative and display css.

5.0.3-beta

Working with support for @page css directives for the whole document and section page sizes. Support for <page />






tags with property or for attributes. Fix for anchor links with internal and external href.

5.0.3-alpha

Added support for HTML binding with the template tag and data-bind attribute. Along with fixes for single character css values and other minor updates.

5.0.1-alpha

Increased support for the HTML parsing with entities and DTD, along with the upgrade to dotnet 5

1.0.1-alpha

Significant updates to the Components namespace (removing the PDF prefix); support for the match='' style attribute; prioritizing style application based on selectors and complexity; direct parsing of XHTML; and support for styles based page breaking. With updated unit tests

1.0.0.25
-----------------
Updated and improved HTML and Markdown handling.

1.0.0.24
-------------------
Package for release to Nuget Public
Updated for the allow missing images option and fixed height and width for 0 resolution
Added the xsd files to the root of the components project
Added a readme.txt file
Added column-widths to the components and styles, with support for varable widths.
Page numbering falls back to the page number format set on the page if not explicitly set.
Removed the Page number prefix instead only supprting the page number display format
Updated to add the static cache provider service
Added the template property to the Placeholder, and support for updating templates to parameters
Stronger typing on the parameters and object parameter, and support for XML pararmeters as XPath or XNode values.
Passing any controller to the template generation so that it can be used to bind to events in templates.
Updated the data components for ForEach, With, If, Choose:When to be able to use xpath and object binding expressions on the value property.
Updated the PDFUser Component to use Params not Items
Updated the bindings and Params. Autobind on the document defaults to true.
Added the binding expressions as default in the parsing options
Fixed the query string overrides on the item native values
PDFDocument fix for remote references.


1.0.0.5

Fixes for path mapping on Mac / Unix / Windows when loading reference paths. Updated for the schema references and scrybersettings.json in the Scryber.Core.Schemas package

Added the default namespaces to the ParsingOptions, and updated version to match MVC and OpenType

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Scryber.Core:

Package Downloads
Scryber.Core.Mvc
The Mvc extensions for the Scryber.Core PDF creation engine - change the way you make documents. Scryber is an advanced PDF generation engine based around HTML templates with CSS styles and SVG drawing, or just code it. It includes full flowing pages, dynamic template binding on your object model and referenced external files, images, css and fonts. Easily create documents from your Apps, MVC sites, or Javascipt ajax calls. This framework is built entirely in .NET5 and is released under the LGPL licence so you can use to it in commercial applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
5.0.7 271 6/16/2021
5.0.7-alpha 69 4/29/2021
5.0.6.3 842 4/9/2021
5.0.6.2-beta 50 4/7/2021
5.0.6.1-beta 61 4/6/2021
5.0.6 93 3/30/2021
5.0.5.4 108 3/30/2021
5.0.5.3-beta 142 3/13/2021
5.0.5.2-beta 79 3/12/2021
5.0.5.1 262 3/5/2021
5.0.5 120 2/26/2021
5.0.5-beta 63 2/21/2021
5.0.4 360 1/30/2021
5.0.3 146 1/18/2021
5.0.3-beta 85 1/12/2021
5.0.3-alpha 150 1/4/2021
5.0.1-alpha 128 12/30/2020
1.0.2-alpha 115 12/15/2020
1.0.1-alpha 165 9/14/2020
1.0.0.25 264 9/1/2020
1.0.0.24 373 8/18/2020
1.0.0.23 271 8/16/2020
1.0.0.5 217 6/19/2020
1.0.0.3 202 6/10/2020
1.0.0.1 225 5/23/2020
0.9.0 227 5/23/2020
Show less