go-libreofficekit
go-libreofficekit copied to clipboard
CGo bindings to LibreOfficeKit
Hi, Where can I find the full list of options like "skipImages" as seen in the following code? `` document.SaveAs("kittens.pdf", "pdf", "skipImages") `` E.x: If I want to embed images...
Using go-libreofficekit I have this error message coming up: ``` signal 23 received but handler not on signal stack fatal error: non-Go code set up signal handler without SA_ONSTACK flag...
import ( "github.com/dveselov/go-libreofficekit" "testing" ) func TestLibreoffice(t *testing.T) { office, _ := libreofficekit.NewOffice("C:\\Program Files\\LibreOffice\\program\\soffice.exe") document, _ := office.LoadDocument("d:/aa.docx") document.SaveAs("d:/aa.pdf", "pdf", "skipImages") document.Close() office.Close() } fatal error: LibreOfficeKit/LibreOfficeKitInit.h: No such file...
When I use document.SaveAs with "pdf" as the extension (and a .docx as the input file), the URL links are stripped: ```go // SaveAs saves document at desired path in...
I have a problem where i push hundreds of .fodt => .pdf files through this loop and get a ~.5MiB extra memory usage per file and it is not feed...
```` x-MacBook-Pro:cmd apple$ go get -u github.com/dveselov/go-libreofficekit/... # github.com/dveselov/go-libreofficekit In file included from ../../../../../dveselov/go-libreofficekit/libreofficekit.go:6: ../../../../../dveselov/go-libreofficekit/lokbridge.h:2:10: fatal error: 'LibreOfficeKit/LibreOfficeKitInit.h' file not found #include "LibreOfficeKit/LibreOfficeKitInit.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ````
I found a workaround for issue: https://github.com/dveselov/go-libreofficekit/issues/13 By processing the signal on the C side, and adding a corresponding flag to the signal that comes from the cgo side.