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:
@@ -92,7 +92,7 @@ p=reject
|
|||||||
|
|
||||||
The server's IP address should resolve back to the mail host.
|
The server's IP address should resolve back to the mail host.
|
||||||
This is done using a [PTR record](/wiki/dns.md#ptr-record).
|
This is done using a [PTR record](/wiki/dns.md#ptr-record).
|
||||||
Please note that PTR records can not be set as easily as normal DNS records as explained in
|
Please note that PTR records can not be set as easily as normal DNS records as explained in
|
||||||
[the corresponding section of the DNS entry](/wiki/dns.md#ptr-record).
|
[the corresponding section of the DNS entry](/wiki/dns.md#ptr-record).
|
||||||
|
|
||||||
```txt
|
```txt
|
||||||
@@ -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.
|
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.
|
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.
|
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
|
One of the most used ones is the
|
||||||
[Markup Validation Service by W3C](https://validator.w3.org/#validate_by_input).
|
[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
|
||||||
|
|
||||||
XML is a markup language often used together with [RSS Feeds](/wiki/rss.md).
|
XML is a markup language often used together with [RSS Feeds](/wiki/rss.md).
|
||||||
|
|||||||
Reference in New Issue
Block a user