WeblitzPdf 2.0.0-rc.2
dotnet add package WeblitzPdf --version 2.0.0-rc.2
NuGet\Install-Package WeblitzPdf -Version 2.0.0-rc.2
<PackageReference Include="WeblitzPdf" Version="2.0.0-rc.2" />
<PackageVersion Include="WeblitzPdf" Version="2.0.0-rc.2" />
<PackageReference Include="WeblitzPdf" />
paket add WeblitzPdf --version 2.0.0-rc.2
#r "nuget: WeblitzPdf, 2.0.0-rc.2"
#:package WeblitzPdf@2.0.0-rc.2
#addin nuget:?package=WeblitzPdf&version=2.0.0-rc.2&prerelease
#tool nuget:?package=WeblitzPdf&version=2.0.0-rc.2&prerelease
Weblitz (WeblitzPdf)
Weblitz, by SSRS2: HTML, CSS and JavaScript to PDF from a .NET library, printed as Chrome prints them. No browser to install, start or drive: the layout, the fonts, the page's scripts and the PDF are all done in your process.
2.0.0-rc.2 is a release candidate. Tell us what your pages need at https://ssrs2.net.
Install
dotnet add package WeblitzPdf --prerelease
.NET 8, 9, 10 and 11 on Windows, Linux and macOS (x64 and ARM64; x86 on Windows, 32-bit ARM on Linux).
On Linux, Weblitz needs fontconfig, which most systems have but the official .NET Docker images lack (a render says so when it is missing):
RUN apt-get update && apt-get install -y --no-install-recommends libfontconfig1 && rm -rf /var/lib/apt/lists/*
On Alpine: apk add --no-cache gcompat fontconfig (the script engine is built for glibc).
Use
using WeblitzPdf;
// Your SSRS2 licence key, which covers SSRS2's reports and Weblitz (or the SSRS2_LICENSE environment variable);
// without one, every page carries a trial watermark
License.Activate("SSRS2-..."); // the same as Ssrs2.License.Activate
// HTML text
var invoice = HtmlToPdf.Render("<h1>Invoice 42</h1><p>...</p>");
File.WriteAllBytes("invoice.pdf", invoice.Pdf!);
// A file: its CSS, pictures, fonts and scripts are read from its folder, never outside it
var letters = HtmlToPdf.RenderFile("templates/letters.html", new HtmlPdfOptions
{
Format = "A4",
Margin = new HtmlMargins("18mm", "18mm", "20mm", "20mm"),
});
// Straight into a stream (an ASP.NET Core response, a file)
HtmlToPdf.Render(html, Response.Body, new HtmlPdfOptions { PrintBackground = true });
// What could not be drawn or loaded is said, never thrown
foreach (var note in invoice.Notes) Console.WriteLine($"{note.Severity} {note.Code}: {note.Message}");
The options are Puppeteer's page.pdf() options under the same names (Format, Width, Height, Landscape,
Margin, PreferCssPageSize, PrintBackground, Scale, PageRanges, DisplayHeaderFooter, HeaderTemplate,
FooterTemplate), plus what a server needs: Scripts (on by default, with a CPU timeout), Network (off by
default: a file's own folder only; headers, cookies and credentials for pages behind a login, below), Title, Author, PdfA, Security (passwords and permissions), Compression,
Locale, TimeZone, Now (a fixed clock for identical PDFs), UseInstalledFonts, Limits (what an untrusted page
may ask for), Animations (CSS animations taken at their end while the page's scripts run, by default; frame by frame
as Chrome runs them, or switched off), and Consent and Ads for pages from the web (below). Automated (true by default)
tells the page that a program drives its browser (navigator.webdriver, as Chrome under Puppeteer): analytics that
leave automated browsers out stay off; false prints as an ordinary visitor's browser would.
HtmlToPdf.WarmUp(html, options) is optional: called once at start-up with a document like those to come, it renders
it a few times and writes nothing, so that .NET's compiling of the engine's code is done before the renders that
matter. Weblitz never warms up by itself.
The package sets three .NET runtime settings in your application's runtimeconfig.json, the ones Weblitz is measured
with: the JIT counts calls from the start (System.Runtime.TieredCompilation.CallCountingDelayMs 0), server GC runs
where your project has not chosen a garbage collector (ASP.NET Core's hosts run it already; it holds more memory and
renders large documents faster), and background garbage collections are off where your project has not chosen
(System.GC.Concurrent false): several large documents rendered at once then hold much less memory, and a full
collection pauses the application while it runs instead of running beside it. A setting your project makes itself
wins (<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection> turns background collections back on),
<WeblitzRuntimeSettings>false</WeblitzRuntimeSettings> leaves all three out, and the environment decides when the
application starts: DOTNET_gcServer=0 turns server GC off, DOTNET_gcConcurrent=1 background collections on. On a machine whose cores
are all busy, counting calls from the start makes the first render of a new process slower where the engine's threads
are not raised (below): an application started often under load can keep .NET's own delay with
<RuntimeHostConfigurationOption Include="System.Runtime.TieredCompilation.CallCountingDelayMs" Value="100" /> in an
ItemGroup of its project, at some cost to every render after the first. For a faster first render
in a new process, publish with ReadyToRun (-p:PublishReadyToRun=true, or -p:PublishReadyToRunComposite=true for a
self-contained application).
On macOS, the engine runs the threads that render at a foreground application's priority, as Chrome's renderer runs
its own: the thread a render runs on is raised while it renders and put back as it was after, and the engine's own
threads stay raised. Your application's other threads are left as they are. <WeblitzThreadPriority>false</WeblitzThreadPriority>
in your project, or the environment variable SSRS2_THREAD_PRIORITY=default, leaves them all as started. Other
systems are not changed.
Your own print CSS
A site without print styles of its own prints its menus, sidebars and banners. Hide leaves elements out by CSS
selector (each one a display: none !important rule; an invalid selector is a hideSelectorIgnored note, never an
exception) and Styles adds CSS of your own, as Puppeteer's page.addStyleTag({ content }) before page.pdf(): style
elements appended to the page's head once its scripts have settled, before beforeprint:
var docs = HtmlToPdf.RenderUrl(new Uri("https://docs.example.com/install"), new HtmlPdfOptions
{
Hide = ["nav", ".sidebar", "footer", "#cookie-banner"],
Styles = ["@media print { main { max-width: none } pre { white-space: pre-wrap } }"],
});
Consent boxes
A page fetched from the web often comes with a cookie or privacy box over it. Consent = HtmlConsent.Hide leaves such
boxes out of the print. Nothing is clicked and no answer is given in the reader's name: the page and its consent
platform run as they come, and what they show of it is not printed. It covers the boxes of the consent platforms most
sites use (by the platforms' own containers), a box of the page's own (a box fixed to the window, or a dialog, of a few
lines that speaks of cookies, consent or privacy and holds a button to answer with), the veil behind it, and the lock
it puts on the page's scrolling. What was hidden is a consentHidden note. A box no rule knows stays: name it in
Hide. A site that shows its content only once consent is given prints what it shows without it. The default,
HtmlConsent.Keep, prints the page as a browser does.
It also reads the EasyList Cookie List (below), whose rules name thousands of sites' boxes.
var page = HtmlToPdf.RenderUrl(new Uri("https://news.example.com/"), new HtmlPdfOptions { Consent = HtmlConsent.Hide });
Advertisements and trackers
Ads = HtmlAds.Block prints a page as an ad blocker shows it. It uses the filter lists EasyList and EasyPrivacy: a
request they block is not made (fewer requests, less script to run), an element they hide is not printed, and a frame
or picture whose request was refused leaves no empty box. An adsBlocked note counts both. AdFilters adds rules of
your own in the same syntax (||ads.example.com^ blocks a host, example.com##.sponsored hides elements on a site).
A site that refuses readers who block its advertisements prints what it shows them. The default, HtmlAds.Keep,
prints the page as a browser does.
var page = HtmlToPdf.RenderUrl(new Uri("https://news.example.com/"), new HtmlPdfOptions
{
Ads = HtmlAds.Block,
Consent = HtmlConsent.Hide,
});
The lists are the work of the EasyList authors (https://easylist.to/). The package carries a snapshot of them as plain
files in lists/ beside your application, with their notice and licences (lists/NOTICE.txt); the snapshot is as old
as the package. To use today's lists, call HtmlToPdf.UpdateFilterListsAsync() when your application starts: it
fetches them once, keeps them in a folder, and does not fetch a list again before the list's own refresh interval has
passed. Nothing is fetched at a render or in the background, and a list that cannot be fetched leaves the previous one
in use.
var lists = await HtmlToPdf.UpdateFilterListsAsync(); // optional, at start
Pages behind a login
A page your server shows only to signed-in users prints with the same credentials a browser would send. Everything is off by default, and each header and credential goes only to the hosts it names (by default the document's own host), never to a CDN or another site's script:
var report = HtmlToPdf.RenderUrl(new Uri("https://app.example.com/reports/42"), new HtmlPdfOptions
{
Network = HtmlNetwork.Allow("app.example.com", "cdn.example.com")
.WithBearerToken(accessToken) // Authorization: Bearer ...
.WithCookie(new HtmlCookie("session", sessionId) { HttpOnly = true, Secure = true }),
});
Headers(WithHeader,WithBearerToken): request headers for the hosts they name; not sent on a redirect to another host. Host, Cookie and the other headers the fetcher writes itself are refused.Cookies(HtmlCookie: domain, path, Secure, HttpOnly, SameSite, expiry): sent by the cookie rules with the page, its frames, style sheets, pictures, fonts, scripts and its ownfetch()calls to its origin; scripts see them indocument.cookieunless HttpOnly.- Every render keeps the cookies servers set during the render (a login redirect's session cookie, a bot check's) and
the page's scripts set, and sends them back for the rest of that render, as a browser does; nothing is kept between
renders.
AcceptCookiessays they are a signed-in user's: the render then shares no cache with others. On wheneverCookiesholds any. Credentials(HtmlCredentials): a user name and password answering HTTP Basic or Digest after the host's 401, for the hosts named; never sent unasked.- When the server still refuses (401, 403) or answers another error with a page of its own, that page is printed, as
Chrome prints it:
HtmlPdfResult.HttpStatussays the status and a note with the codedocumentHttpErrorsays so, so a sign-in page never passes unnoticed for the report. Sites are told apart by the Public Suffix List, as Chrome tells them apart for cookies.
A render with any of these never shares the network cache with another render.
Excel, Word and PowerPoint
The same page, loaded the same way, written as an Office file instead of a PDF: three classes beside HtmlToPdf, with
the same Render, RenderFile and RenderUrl (and their Async twins).
// The page's data tables as a workbook, a sheet a table: numbers, percentages, amounts and ISO dates are typed cells.
var workbook = HtmlToExcel.RenderUrl(new Uri("https://example.com/prices"));
File.WriteAllBytes("prices.xlsx", workbook.Workbook!);
// The page as a document to edit: headings in Word's heading styles, paragraphs, lists, tables, pictures, links.
var document = HtmlToWord.Render(html);
File.WriteAllBytes("page.docx", document.Document!);
// The page printed on slides, a slide a printed page (16:9 unless SlideWidth and SlideHeight say otherwise):
// its text as text boxes at their place (a paragraph a box), its tables PowerPoint tables, over one picture of the rest.
var deck = HtmlToPowerPoint.RenderFile("report.html", new HtmlPowerPointOptions { SlideWidth = "10in", SlideHeight = "7.5in" });
File.WriteAllBytes("report.pptx", deck.Presentation!);
Each has its own options, whose Page is how the page is loaded and laid out: the PDF's own HtmlPdfOptions (scripts,
the network, Consent, Ads, Hide, the paper and its margins...).
var page = new HtmlPdfOptions { Network = HtmlNetwork.Any, Ads = HtmlAds.Block, Consent = HtmlConsent.Hide };
var news = HtmlToWord.RenderUrl(new Uri("https://example.com/news"), new HtmlWordOptions { Page = page });
What each one is, so that you pick the right one:
- Excel keeps the data: a table that only lays the page out is not a sheet (the tables inside it are), and a page without tables gives one sheet of its text. A cell's pictures are over the cell, where the page shows them.
- Word keeps the content in reading order, for someone to work on: it is not a picture of the page. Positions, columns and backgrounds are not kept; a menu laid out in a row is one line.
- PowerPoint keeps the look: each slide shows the page as it prints. Its text is real text in the page's fonts, a paragraph a box, so it can be selected, searched and changed, and a table is a PowerPoint table whose cells hold the page's text over the page's own borders and backgrounds; a reader without one of those fonts sees the text in another. Text the page turns, clips or draws half transparent stays in the slide's picture.
Pictures
HtmlToImage draws the page instead of printing it, with Puppeteer's screenshot options: by default the whole page as a
screen shows it, in one image (Puppeteer's fullPage: true), laid out in an 800 by 600 window in screen media.
// The whole page, one PNG, at twice the pixels for a sharp image.
var shot = HtmlToImage.RenderUrl(new Uri("https://example.com"), new HtmlImageOptions { ViewportWidth = 1280, ViewportHeight = 720, DeviceScaleFactor = 2 });
File.WriteAllBytes("example.png", shot.Images[0]);
// Each printed page as the PDF prints it (paper, margins, page ranges), a JPEG a page.
var pages = HtmlToImage.Render(html, new HtmlImageOptions { Capture = HtmlImageCapture.Pages, Type = HtmlImageType.Jpeg, Quality = 85 });
for (int i = 0; i < pages.Images.Count; i++) File.WriteAllBytes($"page-{i + 1}.jpg", pages.Images[i]);
Capture is FullPage (the default), Viewport (the window alone) or Pages; Type is PNG, JPEG, WebP or TIFF (one
file holding every image); Quality is a JPEG's or WebP's, 0 to 100. DeviceScaleFactor sharpens the image only: the
page is laid out as at 1, and its scripts and media queries see a device pixel ratio of 1. Page is how the page is
loaded, and for Pages printed: the PDF's own HtmlPdfOptions. An image past 16,384 pixels a side or 100 million in all
is cut at its foot, with a note.
What it prints
CSS layout as Chrome lays it out: blocks, inline text, floats, positioning, tables, flexbox, grid, multi-column,
writing modes; paged media (@page sizes and margins, the margin boxes, page breaks, orphans and widows, repeated
table headers); web fonts and the bundled fonts; international text (right to left, shaping, CJK, Thai); SVG,
pictures, gradients and shadows; and the page's scripts, run once before printing (V8), with virtual time for timers
and animations: pages built by React, charts drawn by Chart.js.
A page whose script navigates before the print (a language redirect by location.replace, a bot check that sets a
cookie and reloads, a form it submits, a refresh meta) is followed as Chrome's print follows it, and the page it lands
on is printed: five navigations at most, each held to the network options (HtmlNetwork: its hosts, never a private
address unless named), within the scripts' and the network's time. The notes say so (pageNavigated), or why one was
not followed (navigationRefused). The navigation API runs as in Chrome: a single-page application's router that
intercepts its navigate event (Angular's) stays in its document, and the page is printed where the router leaves it.
It is not a browser: no interaction, and pages are printed, not displayed.
Fonts
The package embeds only these fonts: Liberation Sans, Serif and Mono (drawn for Arial, Helvetica, Times New Roman and Courier New), Carlito (Calibri), Caladea (Cambria) and Selawik (Segoe UI). They cover Latin, Greek, Cyrillic and Hebrew.
Arabic, Chinese, Japanese, Korean, Thai, the Indic scripts and emoji are drawn with the machine's own fonts
(UseInstalledFonts, on by default). macOS and Windows have them; a Linux server or container usually does not, so
install them in its image, for example:
# Debian, Ubuntu
apt-get install -y fonts-noto-core fonts-noto-cjk fonts-noto-color-emoji
# Alpine
apk add font-noto font-noto-arabic font-noto-cjk font-noto-emoji
Without them, text in those scripts prints as empty boxes, as it does in Chrome on the same machine.
Video
A <video> prints its poster, or the frame at its current time once it plays, as Chrome prints it. VP8, VP9 and AV1
are decoded by Weblitz itself. H.264 and HEVC, the usual codecs of .mp4 files, are decoded with the machine's own
codec, which Weblitz does not ship:
- macOS has it.
- Windows desktop editions have it; on Windows Server, add the Media Foundation feature
(
Install-WindowsFeature Server-Media-Foundation). HEVC needs Microsoft's HEVC Video Extensions. - Linux needs FFmpeg's libavcodec, or Cisco's OpenH264 for H.264 (its library from Cisco, beside your application or in the system's library path):
# Debian, Ubuntu
apt-get install -y libavcodec61 # or the libavcodec of your release (59, 60, 61...)
# Alpine
apk add ffmpeg-libavcodec
Without one, such a video prints its poster, and the render's notes say which codec to install.
Licence
Commercial: SSRS2's licence covers Weblitz, the same licence as SSRS2's report engine (SSRS2.NETCore). This package
stands alone: it carries the parts of SSRS2's engine that print HTML (PDF writing, fonts, drawing), not the report engine;
an application can reference both packages, which share those files at the same version. The script engine (V8, BSD) and its .NET bridge (ClearScript, MIT) are SSRS2's own build of them;
their licences are in the package's licenses folder, with the Public Suffix List's (publicsuffix.org, Mozilla Public
License 2.0), which tells sites apart for cookies.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- HarfBuzzSharp.NativeAssets.Linux (>= 8.3.1.5)
- Newtonsoft.Json (>= 13.0.4)
- PdfSharp (>= 6.2.0)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.HarfBuzz (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.IO.Packaging (>= 10.0.15)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
-
net11.0
- HarfBuzzSharp.NativeAssets.Linux (>= 8.3.1.5)
- Newtonsoft.Json (>= 13.0.4)
- PdfSharp (>= 6.2.0)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.HarfBuzz (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.IO.Packaging (>= 11.0.0)
- System.Security.Cryptography.Pkcs (>= 11.0.0)
-
net8.0
- HarfBuzzSharp.NativeAssets.Linux (>= 8.3.1.5)
- Newtonsoft.Json (>= 13.0.4)
- PdfSharp (>= 6.2.0)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.HarfBuzz (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.IO.Packaging (>= 8.0.1)
- System.Security.Cryptography.Pkcs (>= 8.0.2)
-
net9.0
- HarfBuzzSharp.NativeAssets.Linux (>= 8.3.1.5)
- Newtonsoft.Json (>= 13.0.4)
- PdfSharp (>= 6.2.0)
- SkiaSharp (>= 3.119.4)
- SkiaSharp.HarfBuzz (>= 3.119.4)
- SkiaSharp.NativeAssets.Linux (>= 3.119.4)
- System.IO.Packaging (>= 9.0.23)
- System.Security.Cryptography.Pkcs (>= 9.0.23)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-rc.2 | 0 | 11/28/2026 |
| 2.0.0-rc.1 | 86 | 11/25/2026 |
| 2.0.0-beta.10 | 146 | 11/21/2026 |
| 2.0.0-beta.9 | 124 | 11/20/2026 |
| 2.0.0-beta.8 | 76 | 11/19/2026 |
| 2.0.0-beta.7 | 63 | 11/19/2026 |
| 2.0.0-beta.6 | 74 | 11/18/2026 |
| 2.0.0-beta.5 | 64 | 11/18/2026 |
| 2.0.0-beta.4 | 77 | 11/18/2026 |
| 2.0.0-beta.3 | 81 | 11/17/2026 |
| 2.0.0-beta.2 | 66 | 11/17/2026 |
| 2.0.0-beta.1 | 85 | 11/17/2026 |
2.0.0-rc.2, the second release candidate of 2.0: WeblitzPdf, SSRS2.NETCore, SSRS2.Mcp, the Node.js, Python and Java packages and the server images again at one version. Background garbage collections are now off by default: the package adds System.GC.Concurrent false to your application's runtimeconfig.json, beside server GC and the JIT counting calls from the start, where your project has not chosen. Several large documents rendered at once then hold much less memory; a full collection pauses the application while it runs. The opt-outs are those of the other two settings: your project's own setting wins (ConcurrentGarbageCollection true turns background collections back on), WeblitzRuntimeSettings false leaves all three out, and DOTNET_gcConcurrent=1 turns them on when the application starts. A page's sound files are no longer downloaded whole: where the server says a file's length, the engine reads its first 32 KB, and at most one small part more where the format keeps its duration elsewhere (an Ogg file's last page, an MP3's first frame after a long tag, a WAV's chunk headers), as it reads a video only up to its first picture. The script engine's native library no longer deadlocks or crashes when script runtimes are created and disposed while others run, as in a server rendering many pages at once (pages with WebAssembly showed it), and a 32-bit Windows process no longer dies when two script runtimes start at the same moment. A long-lived process holds less memory: an installed font is read and held once, a document's web fonts are read in place instead of copied, the fonts of view transitions and video captions are released after use, a finished document is no longer kept alive by the thread that rendered it, a thread that ends no longer leaves native memory behind (2.0.0-rc.1 lost a buffer with each one), a network answer takes memory as its bytes arrive whatever length its server announces, and a PDF's last steps make fewer copies of the document. Font files registered with ReportFonts.AddFontFile are held and read once for the process, and the same file registered again adds nothing (a process registering its fonts before each render grew without bound). The compiled scripts kept for later pages are lent by need from one pool for the process, each script runtime up to its own share and the pool at most a quarter of the memory available to the process, where one fixed budget was divided between the runtimes: several documents rendered at once compile their scripts again far less often, and hold more memory for them. A fixed box partly above its page (a header whose hidden menu runs up above the window, a box with a negative top) prints that part at the bottom of the page before, as Chrome prints it (without the box's form controls, which Chrome prints on the first page only). An inline script that another script inserts runs as a script, the HTML standard's way: its let, const and class declarations are global, and a let declared again by a later script is a SyntaxError, reported. 2.0.0-rc.1, the release candidate of 2.0: WeblitzPdf, SSRS2.NETCore, SSRS2.Mcp, the Node.js, Python and Java packages and the server images all at one version. Found by stress tests beside Chrome (hundreds of generated and hostile pages, live sites, a process printing 1,600 pages in a row): a picture shown as its alternative text in a pre-wrap container, and text holding half an emoji (a script's substring) under lowercase, capitalize, Greek uppercase, justification or ruby, no longer lose the PDF. On macOS a long-lived process no longer dies after a few hundred live pages: the engine no longer turns on .NET's Network.framework TLS for the whole process (an application that needs sites served over TLS 1.3 alone turns that switch on itself). An @page rule that leaves no page area prints with the default page box, as Chrome prints it. An SVG background repeated over an area is one pattern (2.6 times less memory), and one of more than 4,096 tiles is drawn (it was left out). Shrinking to fit counts an absolutely positioned box as large as its own transform makes it, and a headline whose size reads the viewport keeps it when the page shrinks (dropbox.com lost its last page). Header and footer templates are laid out once for all the pages of a paper size (5 ms to 0.16 ms a page), and a template wider than its page is cut as Chrome cuts it, no longer shrunk. A position: fixed box is painted once for all the printed pages (a long document under a heavy fixed panel takes a third of the time and memory, a fixed header's PDF a quarter of the size), and one placed above the window prints at the foot of each page but the last, as Chrome prints it. A script the page inserts runs between tasks that queue more without end (hashnode.com spun to 2 GB; it prints in 3.4 s). Pages built of many web components print faster (otto.de 16.3 s to 6.4 s): their style sheets are indexed once and shared, and a page restyles only what changed. A word of a million letters lays out in seconds where it took minutes, and pages of thousands of blank or scaled pages print in Chrome's page count without their work exploding. The page's clock, time zone, locale and Math.random are set in V8 itself. The script engine's linux-arm64 crash at exit is gone. 2.0.0-beta.10: pictures from HTML: HtmlToImage, beside HtmlToPdf and the Office classes with the same Render, RenderFile and RenderUrl: the whole page in one image as a screen shows it (Puppeteer's fullPage screenshot), the window alone, or each printed page as the PDF prints it; PNG, JPEG, WebP, or TIFF holding every page. The same page gives the same Word, Excel and PowerPoint file, byte for byte: their relationship ids are numbered and their files dated by the page's clock (they carried random ids and the time of the render). Word documents open as today's Word's, not in Compatibility Mode, with a cell's padding, CSS page breaks, a callout's borders and background, and an inline SVG as a picture. A page whose script navigates before the print (a language redirect, a bot check that sets a cookie and reloads, a form it submits, a refresh meta) is followed as Chrome's print follows it, five navigations at most, each held to the network options, with the render's own cookies; requests carry Chrome's headers, a script's fetch() and XMLHttpRequest the page's headers and credentials with Chrome's CORS preflight; the navigation API runs as in Chrome (Angular's router stays in its document). Pages that animate SVG print faster, only what changed styled again (swissinfo 23 s to 4 s, Le Figaro 10 s to 4 s, twilio.com stopped at the scripts' 30 s, now 5 s). A document whose footers say "Page N of M" is written while it is still laid out, its footers added once the count is known (1,000 letters 1,541 ms to 1,223 ms on 4 cores). SVG references and animations inside shadow trees resolve in their own tree. 2.0.0-beta.9: text set vertically (writing-mode: vertical-rl or vertical-lr) on a Mac: Chinese and Japanese ideographs go down the line by their font's vertical advance, as Chrome sets them. Since macOS 26 they come from PingFang SC, whose outlines are in a table of Apple's own, and each went 0 down the line: a column of Japanese drew its ideographs on top of each other. 2.0.0-beta.8: the Office files, as beta.7 wrote them from live pages. Every workbook passes the Open XML SDK's validation (its properties name its sheets). A table's pictures are in the workbook, over their cells where the page shows them (a country's flag beside its name). In Word, a menu the page lays out in a row is one line, not a page-long list. Pictures in AVIF, JPEG XL and SVG are in Word documents and workbooks (they were left out). A noscript's text and an SVG's title, which the page never shows, are no longer written as text (a news front page's workbook began with a style rule). On slides, a paragraph's lines are one text box, at the page's exact line spacing, and a table is a PowerPoint table: its columns and rows the page's, its cells' text where the page prints it, numbers flush right, the page's borders and backgrounds under it. 2.0.0-beta.7: a page out as an Office file, three classes beside HtmlToPdf with the same Render, RenderFile and RenderUrl. HtmlToExcel writes the page's data tables as a workbook, a sheet a table, numbers, percentages, amounts and ISO dates as typed cells. HtmlToWord writes the page as a document to edit: headings in Word's heading styles, paragraphs, lists, tables, pictures, links. HtmlToPowerPoint prints the page on slides (16:9 by default), a slide a printed page, its text as text boxes over one picture of the rest. Each has its own options, whose Page is the PDF's HtmlPdfOptions. First versions: tell us what your pages need. Also: a video's file is read up to its first picture and no longer whole, several videos at once (a news front page with three looping videos printed in 4 s where it took 30 s or more). 2.0.0-beta.6: on Alpine Linux, Weblitz runs with the gcompat package alone again (apk add --no-cache gcompat fontconfig): since the script engine's own build, a render there ended in a segmentation fault unless gcompat's library was preloaded; the engine now loads it itself, and says what to install where the package is missing. 2.0.0-beta.5: found by using beta.4 as a customer, on live addresses and in containers. Printing a live address is faster: the network's answers are no longer waited for one at a time, so a page of many small requests no longer reaches the scripts' limit (ten live sites printed with both versions, none slower; Le Monde's front page in 5.5 s where it took 18.8 s, Asahi's in 14.1 s where it took 32.7 s). On Linux, a missing fontconfig is reported with what to install (the official .NET Docker images lack libfontconfig1); a render failed in a type initializer. A process printing pages with shadow trees one after the other no longer keeps each finished document in memory. Consent = Hide outweighs the consent platforms' own rules: pages they cut to their first page print whole, and one printed under its veil prints clear. UpdateFilterListsAsync names each list's version. 2.0.0-beta.4: live pages checked beside Chrome (151 public pages): web fonts are fetched by unicode-range as Chrome fetches them, content-visibility: auto and lazy images load where Chrome's do, and the layout and print differences found on those pages are fixed. Pages that animate print faster: styles, layout and SVG icons are kept from one frame to the next where nothing changed for them, and a playing video's frame is decoded once. New options: Consent = Hide (consent boxes are left out, nothing is clicked), Ads = Block (advertisements and trackers are left out by the EasyList filter lists, shipped beside the assembly and updated with HtmlToPdf.UpdateFilterListsAsync), Automated (navigator.webdriver, true by default), UserAgent. 2.0.0-beta.3: a chart or any other canvas drawing prints on a page shrunk to fit its paper (it was left empty where the page's styles use viewport units: Chart.js's own documentation on A4). 2.0.0-beta.2: without a licence, the trial watermark runs across each page, as on reports (2.0.0-beta.1 drew it small in the page's top-left corner). 2.0.0-beta.1: the first beta of Weblitz, SSRS2's HTML engine. Details: https://ssrs2.net/