Skip to content
Snippets Groups Projects
Commit d09b590a7bd7 authored by Florent Aide's avatar Florent Aide
Browse files

add more export formats

parent 5864e81c6281
No related branches found
No related tags found
1 merge request!85add more export formats
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
Changelog Changelog
========= =========
18.0.1.7.0
----------
Add more export formats from Typst
18.0.1.6.0 18.0.1.6.0
---------- ----------
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
"name": "Redner", "name": "Redner",
"license": "AGPL-3", "license": "AGPL-3",
"version": "18.0.1.6.0", "version": "18.0.1.7.0",
"category": "Reporting", "category": "Reporting",
"author": "XCG Consulting", "author": "XCG Consulting",
"website": "https://orbeet.io/", "website": "https://orbeet.io/",
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
FORMAT_ODS = "ods" FORMAT_ODS = "ods"
FORMAT_XLS = "xls" FORMAT_XLS = "xls"
FORMAT_DOCX = "docx" FORMAT_DOCX = "docx"
FORMAT_PNG = "png"
FORMAT_SVG = "svg"
FORMAT_TYPST = "typst"
class UnkownFormatException(Exception): class UnkownFormatException(Exception):
...@@ -86,6 +89,14 @@ ...@@ -86,6 +89,14 @@
"application/vnd.openxmlformats-officedocument" "application/vnd.openxmlformats-officedocument"
".wordprocessingml.document", ".wordprocessingml.document",
), ),
FORMAT_PNG: Format(FORMAT_PNG, "PNG", "image/png"),
FORMAT_SVG: Format(FORMAT_SVG, "SVG", "image/svg+xml"),
FORMAT_TYPST: Format(
FORMAT_TYPST,
"Typst",
"application/typst",
native=True,
),
} }
def get_format(self, name): def get_format(self, name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment