Repository: gotenberg/gotenberg (go)

Issue:
macOS '*.pages' conversion
Apologies if this was raised in the past, I see that pages is not supported, what would it take to add such support?

Invalid form data: no form file found for extensions: [.bib .doc .xml .docx .fodt .html .ltx .txt .odt .ott .pdb .pdf .psw .rtf .sdw .stw .sxw .uot .vor .wps .epub .png .bmp .emf .eps .fodg .gif .jpg .jpeg .met .odd .otg .pbm .pct .pgm .ppm .ras .std .svg .svm .swf .sxd .sxw .tif .tiff .xhtml .xpm .odp .fodp .potm .pot .pptx .pps .ppt .pwp .sda .sdd .sti .sxi .uop .wmf .csv .dbf .dif .fods .ods .ots .pxl .sdc .slk .stc .sxc .uos .xls .xlt .xlsx]

I am refering to the output file of https://www.apple.com/pages/

Pull request description:
feat(libreoffice): add macOS *.pages support
Closes #635.

Patch:
diff --git a/pkg/modules/libreoffice/api/api.go b/pkg/modules/libreoffice/api/api.go
index 6b0496e..6f66b1d 100644
--- a/pkg/modules/libreoffice/api/api.go
+++ b/pkg/modules/libreoffice/api/api.go
@@ -315,6 +315,7 @@ func (a *Api) Extensions() []string {
 		".xpm",
 		".odp",
 		".fodp",
+		".pages",
 		".potm",
 		".pot",
 		".pptx",


Test patch:
diff --git a/pkg/modules/libreoffice/api/api_test.go b/pkg/modules/libreoffice/api/api_test.go
index 8a63ab0..169535f 100644
--- a/pkg/modules/libreoffice/api/api_test.go
+++ b/pkg/modules/libreoffice/api/api_test.go
@@ -450,7 +450,7 @@ func TestApi_Extensions(t *testing.T) {
 	extensions := a.Extensions()
 
 	actual := len(extensions)
-	expect := 79
+	expect := 80
 
 	if actual != expect {
 		t.Errorf("expected %d extensions, but got %d", expect, actual)