Introduction
Installation
Guides
- Engine
- Profile
- Browser
- BrowserView
- Navigation
- Content
- Context menu
- DOM
- JavaScript
- Pop-ups
- Dialogs
- Downloads
- Chrome extensions
- Network
- Cache
- Cookies
- Proxy
- Authentication
- Permissions
- Plugins
- Printing
- Passwords
- User data profiles
- Credit cards
- Media
- Zoom
- Spell checker
- Deployment
- Chromium
Troubleshooting
Migration
Migrating from 2.26.2 to 2.27.0
Updated API
FitToPage
and FitToPaper
print settings
In this version, we have removed the Scaling.FitToPage
and Scaling.FitToPaper
fields. These options are only useful when printing a PDF file with a system printer. When printing an HTML page or using the built-in PDF printer, the methods were no-op, confusing developers.
Instead, we introduce a new IFit.Fit
property, which is available only for printing PDF files with system printers.
v2.26.2
browser.PrintPdfContentHandler =
new Handler<PrintPdfContentParameters, PrintPdfContentResponse>(p =>
{
var printer = p.Printers.Default;
var settings = printer.PrintJob.Settings;
settings.Scaling = Scaling.FitToPage;
// ...
return PrintPdfContentResponse.Print(printer);
});
v2.27.0
browser.PrintPdfContentHandler =
new Handler<PrintPdfContentParameters, PrintPdfContentResponse>(p =>
{
var printer = p.Printers.Default;
var settings = printer.PrintJob.Settings;
settings.Fit = Fit.ToPage;
// ...
return PrintPdfContentResponse.Print(printer);
});