Size: 724
Comment:
|
Size: 808
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
* https://skia.org/user/sample/pdf | |
Line 22: | Line 23: |
# begin page SkDocument #end page SkDocument |
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