diff --git a/NEWS.rst b/NEWS.rst index 5864e81c6281e361018e4d0a91e8f1bfdb16d6c8_TkVXUy5yc3Q=..d09b590a7bd7388e84f586956983671f852f0abc_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ Changelog ========= +18.0.1.7.0 +---------- + +Add more export formats from Typst + 18.0.1.6.0 ---------- diff --git a/__manifest__.py b/__manifest__.py index 5864e81c6281e361018e4d0a91e8f1bfdb16d6c8_X19tYW5pZmVzdF9fLnB5..d09b590a7bd7388e84f586956983671f852f0abc_X19tYW5pZmVzdF9fLnB5 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -21,7 +21,7 @@ { "name": "Redner", "license": "AGPL-3", - "version": "18.0.1.6.0", + "version": "18.0.1.7.0", "category": "Reporting", "author": "XCG Consulting", "website": "https://orbeet.io/", diff --git a/utils/formats.py b/utils/formats.py index 5864e81c6281e361018e4d0a91e8f1bfdb16d6c8_dXRpbHMvZm9ybWF0cy5weQ==..d09b590a7bd7388e84f586956983671f852f0abc_dXRpbHMvZm9ybWF0cy5weQ== 100644 --- a/utils/formats.py +++ b/utils/formats.py @@ -29,6 +29,9 @@ FORMAT_ODS = "ods" FORMAT_XLS = "xls" FORMAT_DOCX = "docx" +FORMAT_PNG = "png" +FORMAT_SVG = "svg" +FORMAT_TYPST = "typst" class UnkownFormatException(Exception): @@ -86,6 +89,14 @@ "application/vnd.openxmlformats-officedocument" ".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):