Rendering: Adds PDF support behind feature toggle (#81811)
* start pdf refactor * Update AppChrome.tsx * Update AppChrome.tsx * add encoding param to rendering grpc service * fix plugin mode * clean up * fix backend tests * fix lint errors * Support pdf encoding in render http api --------- Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
co-authored by
Torkel Ödegaard
parent
90a26e18db
commit
28e66b4ad8
@@ -143,6 +143,7 @@ type Cfg struct {
|
||||
// Rendering
|
||||
ImagesDir string
|
||||
CSVsDir string
|
||||
PDFsDir string
|
||||
RendererUrl string
|
||||
RendererCallbackUrl string
|
||||
RendererAuthToken string
|
||||
@@ -1765,6 +1766,7 @@ func (cfg *Cfg) readRenderingSettings(iniFile *ini.File) error {
|
||||
cfg.RendererRenderKeyLifeTime = renderSec.Key("render_key_lifetime").MustDuration(5 * time.Minute)
|
||||
cfg.ImagesDir = filepath.Join(cfg.DataPath, "png")
|
||||
cfg.CSVsDir = filepath.Join(cfg.DataPath, "csv")
|
||||
cfg.PDFsDir = filepath.Join(cfg.DataPath, "pdf")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user