ABCpdf.ABCChrome123.Linux
13.1.2
Prefix Reserved
See the version list below for details.
dotnet add package ABCpdf.ABCChrome123.Linux --version 13.1.2
NuGet\Install-Package ABCpdf.ABCChrome123.Linux -Version 13.1.2
<PackageReference Include="ABCpdf.ABCChrome123.Linux" Version="13.1.2" />
paket add ABCpdf.ABCChrome123.Linux --version 13.1.2
#r "nuget: ABCpdf.ABCChrome123.Linux, 13.1.2"
// Install ABCpdf.ABCChrome123.Linux as a Cake Addin #addin nuget:?package=ABCpdf.ABCChrome123.Linux&version=13.1.2 // Install ABCpdf.ABCChrome123.Linux as a Cake Tool #tool nuget:?package=ABCpdf.ABCChrome123.Linux&version=13.1.2
ABCChrome
This is the ABCChrome123 HTML conversion module for Linux.
The base ABCpdf NuGet package includes ABCChrome123 for Windows but not for Linux because of size constraints.
To deploy to Linux you will need to reference this package in addition to the base ABCpdf package. At that point you can publish to Linux.
See the following section of the documentation for a walkthrough.
https://www.websupergoo.com/helppdfnet/source/2-getting_started/6-platforms.htm
Example Code
First you need to ensure you are using the correct namespace. Insert the following at the top of your C# module.
using WebSupergoo.ABCpdf13;
You select this HTML conversion module by setting the HtmlOptions.Engine property.
For example, if you are in a forms or console application, the following may be useful.
using (Doc doc = new Doc()) {
doc.HtmlOptions.Engine = EngineType.Chrome123;
doc.AddImageUrl("http://www.google.com/");
doc.Save(@"C:\_output.pdf"); // adjust path for your needs
}
Alternatively if you are running under ASP.NET, you may want a Page_Load function something like this.
byte[] theData = null;
using (Doc doc = new Doc()) {
doc.HtmlOptions.Engine = EngineType.Chrome123;
doc.AddImageUrl("http://www.google.com/");
theData = doc.GetData();
}
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "inline; filename=MyPDF.PDF");
Response.AddHeader("content-length", theData.Length.ToString());
Response.BinaryWrite(theData);
Response.End();
For more example projects, please download the installer bundle from the ABCpdf download site.
Documentation
Documentation for ABCpdf can be found here:
https://www.websupergoo.com/helppdfnet/
Alternatively you can download the installer bundle from the ABCpdf download site as this contains full documentation in CHM format.
Learn more about Target Frameworks and .NET Standard.
-
- ABCpdf (= 13.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.