mirror of
https://github.com/tiyn/wiki.git
synced 2026-07-14 07:21:36 +02:00
Markup Language: Added HTML-to-PDF-conversion
This commit is contained in:
@@ -132,7 +132,7 @@ And even if you have it can be useful to keep your mails synced locally on your
|
||||
|
||||
This section addresses the usage of various Email related topics.
|
||||
|
||||
## End-to-End Encryption
|
||||
### End-to-End Encryption
|
||||
|
||||
Besides transport encryption (TLS), emails can also be protected using end-to-end encryption.
|
||||
The two most common standards are [OpenPGP](/wiki/openpgp.md) and S/MIME.
|
||||
|
||||
@@ -25,6 +25,21 @@ An easy way to do the latter one is a validation service.
|
||||
One of the most used ones is the
|
||||
[Markup Validation Service by W3C](https://validator.w3.org/#validate_by_input).
|
||||
|
||||
Due to HTML being famously used for [emails](/wiki/email.md), in
|
||||
[email clients](/wiki/email.md#client) there is often an option to export or save mails to them.
|
||||
In certain situations it then can be useful to convert them to PDF.
|
||||
|
||||
A program, which works well for it, is
|
||||
[Weasyprint](https://doc.courtbouillon.org/weasyprint/stable/api_reference.html#command-line-api),
|
||||
which being based on [Python](/wiki/programming_language/python.md) is cross-platform and available
|
||||
on [Linux](/wiki/linux.md), [Windows](/wiki/windows.md) and macOS.
|
||||
The following command is an example conversion where an HTML-file `<html>` is converted to a
|
||||
PDF-file `<pdf>`.
|
||||
|
||||
```sh
|
||||
weasyprint <html> <pdf>
|
||||
```
|
||||
|
||||
### XML
|
||||
|
||||
XML is a markup language often used together with [RSS Feeds](/wiki/rss.md).
|
||||
|
||||
Reference in New Issue
Block a user