MCPcopy Index your code

hub / github.com/gotenberg/gotenberg / functions

Functions1,037 in github.com/gotenberg/gotenberg

MethodPageCount
PageCount returns the number of pages in a PDF file using ExifTool.
pkg/modules/exiftool/exiftool.go:403
MethodPageCount
PageCount is not available in this implementation.
pkg/modules/pdftk/pdftk.go:251
MethodPageCount
PageCount is not available in this implementation.
pkg/modules/qpdf/qpdf.go:287
MethodPageCount
PageCount returns the number of pages in a PDF file using the first available engine that supports metadata reading.
pkg/modules/pdfengines/multi.go:229
MethodPageCount
PageCount is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:94
MethodPdf
(ctx context.Context, logger *slog.Logger, url, outputPath string, options PdfOptions)
pkg/modules/chromium/mocks.go:16
MethodPdf
Pdf converts a URL to PDF. nolint:dupl
pkg/modules/chromium/chromium.go:855
MethodPdf
(ctx context.Context, logger *slog.Logger, inputPath, outputPath string, options Options)
pkg/modules/libreoffice/api/mocks.go:17
MethodPdfEngine
()
pkg/gotenberg/mocks.go:140
MethodProvision
(ctx *Context)
pkg/gotenberg/mocks.go:23
MethodProvision
Provision sets the engine properties.
pkg/modules/pdfcpu/pdfcpu.go:59
MethodProvision
Provision sets the module properties.
pkg/modules/prometheus/prometheus.go:63
MethodProvision
Provision sets the module properties.
pkg/modules/exiftool/exiftool.go:178
MethodProvision
Provision sets the module properties.
pkg/modules/pdftk/pdftk.go:45
MethodProvision
Provision sets the module properties.
pkg/modules/qpdf/qpdf.go:51
MethodProvision
Provision sets the module properties.
pkg/modules/api/api.go:230
MethodProvision
Provision gets either all [gotenberg.PdfEngine] modules or the modules selected by the user thanks to the "engines" flag.
pkg/modules/pdfengines/pdfengines.go:88
MethodProvision
Provision sets the module properties.
pkg/modules/chromium/chromium.go:485
MethodProvision
Provision sets the module properties.
pkg/modules/libreoffice/libreoffice.go:40
MethodProvision
Provision sets the module properties.
pkg/modules/libreoffice/api/api.go:347
MethodProvision
Provision sets the module properties.
pkg/modules/libreoffice/pdfengine/pdfengine.go:32
MethodProvision
Provision sets the module properties.
pkg/modules/webhook/webhook.go:72
MethodReadBookmarks
(ctx context.Context, logger *slog.Logger, inputPath string)
pkg/gotenberg/mocks.go:95
MethodReadBookmarks
ReadBookmarks reads the document outline (bookmarks) of a PDF file using pdfcpu.
pkg/modules/pdfcpu/pdfcpu.go:303
MethodReadBookmarks
ReadBookmarks is not available in this implementation.
pkg/modules/exiftool/exiftool.go:470
MethodReadBookmarks
ReadBookmarks is not available in this implementation.
pkg/modules/pdftk/pdftk.go:279
MethodReadBookmarks
ReadBookmarks is not available in this implementation.
pkg/modules/qpdf/qpdf.go:315
MethodReadBookmarks
ReadBookmarks reads bookmarks from a PDF file using the first available engine that supports bookmarks reading.
pkg/modules/pdfengines/multi.go:240
MethodReadBookmarks
ReadBookmarks is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:104
MethodReadMetadata
(ctx context.Context, logger *slog.Logger, inputPath string)
pkg/gotenberg/mocks.go:83
MethodReadMetadata
ReadMetadata is not available in this implementation.
pkg/modules/pdfcpu/pdfcpu.go:261
MethodReadMetadata
ReadMetadata is not available in this implementation.
pkg/modules/pdftk/pdftk.go:223
MethodReadMetadata
ReadMetadata is not available in this implementation.
pkg/modules/qpdf/qpdf.go:259
MethodReadMetadata
ReadMetadata extracts metadata from a PDF file using the first available engine that supports metadata reading.
pkg/modules/pdfengines/multi.go:207
MethodReadMetadata
ReadMetadata is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:84
MethodReadPdfAConformance
(ctx context.Context, logger *slog.Logger, inputPath string)
pkg/gotenberg/mocks.go:131
MethodReadPdfAConformance
ReadPdfAConformance is not available in this implementation.
pkg/modules/pdfcpu/pdfcpu.go:491
MethodReadPdfAConformance
ReadPdfAConformance is not available in this implementation.
pkg/modules/exiftool/exiftool.go:564
MethodReadPdfAConformance
ReadPdfAConformance is not available in this implementation.
pkg/modules/pdftk/pdftk.go:540
MethodReadPdfAConformance
ReadPdfAConformance reads the PDF/A part and conformance from the document-level XMP packet (pdfaid:part and pdfaid:conformance) using QPDF's JSON out
pkg/modules/qpdf/qpdf.go:805
MethodReadPdfAConformance
ReadPdfAConformance reads the PDF/A part and conformance using the first available engine that supports it.
pkg/modules/pdfengines/multi.go:339
MethodReadPdfAConformance
ReadPdfAConformance is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:144
MethodReady
()
pkg/modules/api/api.go:172
MethodReady
()
pkg/modules/api/mocks.go:134
MethodReady
Ready returns no error if the module is ready.
pkg/modules/chromium/chromium.go:803
MethodReady
Ready returns no error if the module is ready.
pkg/modules/libreoffice/api/api.go:626
MethodRecordMetrics
(ctx context.Context, md MetricData, opts map[string]MetricOpts)
pkg/gotenberg/semconv/client.go:284
MethodRename
(oldpath, newpath string)
pkg/gotenberg/mocks.go:230
MethodRename
Rename is a wrapper around [os.Rename].
pkg/gotenberg/fs.go:36
MethodRename
Rename is just a wrapper around [os.Rename], as we need to mock this behavior in our tests.
pkg/modules/api/context.go:594
MethodReqQueueSize
()
pkg/gotenberg/mocks.go:191
MethodReqQueueSize
()
pkg/gotenberg/supervisor.go:620
MethodRestartsCount
()
pkg/gotenberg/mocks.go:195
MethodRestartsCount
()
pkg/gotenberg/supervisor.go:624
MethodRotate
(ctx context.Context, logger *slog.Logger, inputPath string, angle int, pages string)
pkg/gotenberg/mocks.go:123
MethodRotate
Rotate rotates pages of a PDF file by the given angle using pdfcpu.
pkg/modules/pdfcpu/pdfcpu.go:629
MethodRotate
Rotate is not available in this implementation.
pkg/modules/exiftool/exiftool.go:540
MethodRotate
Rotate rotates all pages of a PDF file by the given angle using PDFtk. Page-specific rotation is not supported; if pages is non-empty, ErrPdfEngineMet
pkg/modules/pdftk/pdftk.go:469
MethodRotate
Rotate is not available in this implementation.
pkg/modules/qpdf/qpdf.go:1123
MethodRotate
Rotate rotates pages of a PDF file using the first available engine that supports rotation.
pkg/modules/pdfengines/multi.go:306
MethodRotate
Rotate is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:134
MethodRoutes
Routes returns the HTTP route.
pkg/modules/prometheus/prometheus.go:181
MethodRoutes
()
pkg/modules/api/mocks.go:111
MethodRoutes
Routes returns the HTTP routes.
pkg/modules/pdfengines/pdfengines.go:328
MethodRoutes
Routes returns the HTTP routes.
pkg/modules/chromium/chromium.go:837
MethodRoutes
Routes returns the HTTP routes.
pkg/modules/libreoffice/libreoffice.go:72
FunctionRun
Run starts the Gotenberg application. Call this in the main of your program.
cmd/gotenberg.go:38
MethodRun
(ctx context.Context, logger *slog.Logger, task func() error)
pkg/gotenberg/mocks.go:187
MethodRun
(ctx context.Context, logger *slog.Logger, task func() error)
pkg/gotenberg/supervisor.go:285
MethodScreenshot
(ctx context.Context, logger *slog.Logger, url, outputPath string, options ScreenshotOptions)
pkg/modules/chromium/mocks.go:20
MethodScreenshot
Screenshot captures a screenshot from a URL. nolint:dupl
pkg/modules/chromium/chromium.go:940
MethodServeHTTP
ServeHTTP dispatches between CONNECT (HTTPS tunnels) and the absolute URL form (HTTP forward).
pkg/modules/libreoffice/api/proxy.go:108
MethodSetCancelled
SetCancelled sets if the context is canceled or not. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetCancelled(true)
pkg/modules/api/mocks.go:62
MethodSetDirPath
SetDirPath sets the context's working directory path. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetDirPath("/foo")
pkg/modules/api/mocks.go:23
MethodSetEchoContext
SetEchoContext sets the [echo.Context]. ctx := &api.ContextMock{Context: &api.Context{}} ctx.setEchoContext(c)
pkg/modules/api/mocks.go:86
MethodSetFiles
SetFiles sets the files. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetFiles(map[string]string{ "foo": "/foo", })
pkg/modules/api/mocks.go:54
MethodSetLogger
SetLogger sets the logger. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetLogger(slog.Default())
pkg/modules/api/mocks.go:78
MethodSetMkdirAll
SetMkdirAll sets the [gotenberg.MkdirAll]. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetMkdirAll(mkdirAll)
pkg/modules/api/mocks.go:94
MethodSetPathRename
SetPathRename sets the [gotenberg.PathRename]. ctx := &api.ContextMock{Context: &api.Context{}} ctx.setPathRename(rename)
pkg/modules/api/mocks.go:102
MethodSetValues
SetValues sets the values. ctx := &api.ContextMock{Context: &api.Context{}} ctx.SetValues(map[string][]string{ "url": { "foo", }, })
pkg/modules/api/mocks.go:44
MethodShutdown
()
pkg/gotenberg/mocks.go:179
MethodSplit
(ctx context.Context, logger *slog.Logger, mode SplitMode, inputPath, outputDirPath string)
pkg/gotenberg/mocks.go:71
MethodSplit
Split splits a given PDF file.
pkg/modules/pdfcpu/pdfcpu.go:164
MethodSplit
Split is not available in this implementation.
pkg/modules/exiftool/exiftool.go:258
MethodSplit
Split splits a given PDF file.
pkg/modules/pdftk/pdftk.go:116
MethodSplit
Split splits a given PDF file.
pkg/modules/qpdf/qpdf.go:124
MethodSplit
Split divides the PDF into separate pages using the first available engine that supports PDF splitting.
pkg/modules/pdfengines/multi.go:172
MethodSplit
Split is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:54
MethodStamp
(ctx context.Context, logger *slog.Logger, inputPath string, stamp Stamp)
pkg/gotenberg/mocks.go:119
MethodStamp
Stamp applies a stamp (on top of page content) to a PDF file using pdfcpu.
pkg/modules/pdfcpu/pdfcpu.go:610
MethodStamp
Stamp is not available in this implementation.
pkg/modules/exiftool/exiftool.go:526
MethodStamp
Stamp applies a stamp (on top of page content) to a PDF file using PDFtk. Only PDF source is supported. nolint:dupl
pkg/modules/pdftk/pdftk.go:420
MethodStamp
Stamp is not available in this implementation.
pkg/modules/qpdf/qpdf.go:1109
MethodStamp
Stamp binds the absolute path of the form data file that should be used as a stamp source. Only a file uploaded with the "stamp" field name will be in
pkg/modules/api/formdata.go:470
MethodStamp
Stamp applies a stamp (on top of page content) to a PDF file using the first available engine that supports stamping.
pkg/modules/pdfengines/multi.go:295
MethodStamp
Stamp is not available in this implementation.
pkg/modules/libreoffice/pdfengine/pdfengine.go:129
MethodStart
(logger *slog.Logger)
pkg/gotenberg/mocks.go:151
MethodStart
Start starts the collect.
pkg/modules/prometheus/prometheus.go:138
MethodStart
Start starts the HTTP server.
pkg/modules/api/api.go:451
MethodStart
Start binds the proxy to 127.0.0.1 on an ephemeral port and serves in a background goroutine. Bind failures return an error; the caller must not proce
pkg/modules/chromium/pinning_proxy.go:81
← previousnext →601–700 of 1,037, ranked by callers