Size: 295
Comment:
|
Size: 808
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
* https://skia.org/ | * https://skia.org/ * https://skia.org/user/sample/pdf |
Line 8: | Line 9: |
== SkiaSharp == Library wrapper to use Skia in a dotnet core environment, * https://github.com/mono/SkiaSharp {{{#!highlight bash dotnet add package SkiaSharp --version 1.57.1 dotnet add package Avalonia.Skia.Linux.Natives --version 1.57.1.4 # Install in docker container apt-get install -y libfontconfig1 # begin page SkDocument #end page SkDocument # end page SkDocument # close SkDocument # flush SkFileWStream # dispose SkFileWStream }}} |
Skia
Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms.
It's able to generate PDF files with version 1.4. Header and tail for a PDF file is usually %PDF-1.4 and %EOF.
SkiaSharp
Library wrapper to use Skia in a dotnet core environment,
1 dotnet add package SkiaSharp --version 1.57.1
2 dotnet add package Avalonia.Skia.Linux.Natives --version 1.57.1.4
3
4 # Install in docker container
5 apt-get install -y libfontconfig1
6
7 # begin page SkDocument
8 #end page SkDocument
9 # end page SkDocument
10 # close SkDocument
11 # flush SkFileWStream
12 # dispose SkFileWStream
13