MCPcopy Index your code

hub / github.com/gotenberg/gotenberg / functions

Functions1,037 in github.com/gotenberg/gotenberg

↓ 3 callersMethodexecCaptureOutput
execCaptureOutput runs QPDF and returns its stdout. This uses exec.CommandContext directly because gotenberg.Cmd does not support capturing stdout (it
pkg/modules/qpdf/qpdf.go:479
↓ 3 callersFunctionexemplarFilterOptions
exemplarFilterOptions returns the meter provider options that pin trace-based exemplars, so the histograms expose the trace id of a representative mea
pkg/gotenberg/internal/otel/otel.go:131
↓ 3 callersFunctionfindMetadataStream
findMetadataStream locates the document-level XMP metadata stream referenced by the Catalog /Metadata entry. It returns the object key (e.g. "obj:4 0
pkg/modules/qpdf/qpdf.go:903
↓ 3 callersFunctionfindSpan
(recorder *tracetest.SpanRecorder, name string)
pkg/gotenberg/cmd_test.go:25
↓ 3 callersFunctioninitOtelLogger
(logger *slog.Logger)
pkg/gotenberg/internal/otel/otel.go:166
↓ 3 callersFunctionmatchesAnyDomain
(host string, domains []string)
pkg/modules/chromium/events.go:348
↓ 3 callersMethodmustAssign
mustAssign parses the string value and tries to convert it to the target interface real type. Currently, only the string, bool, int, float64 and time.
pkg/modules/api/formdata.go:614
↓ 3 callersFunctionnewContext
newContext returns a [Context] by parsing a "multipart/form-data" request.
pkg/modules/api/context.go:101
↓ 3 callersFunctionnewLibreOfficeProxy
newLibreOfficeProxy binds a proxy listener to a free local port and applies opts to every proxied request. Callers must call [Start] before pointing s
pkg/modules/libreoffice/api/proxy.go:54
↓ 3 callersFunctionnewPoolSafeContext
newPoolSafeContext snapshots the given keys from c into a detached store and returns a wrapper whose Get/Set operate on that store exclusively. Keys a
pkg/modules/webhook/pool_safe_context.go:33
↓ 3 callersMethodpath
path binds the absolute path of a form data file to a string variable.
pkg/modules/api/formdata.go:642
↓ 3 callersMethodpaths
paths bind the absolute paths of form data files, according to a list of file extensions, to a string slice variable. embeds, watermark, stamp, and fa
pkg/modules/api/formdata.go:499
↓ 3 callersFunctionresolveHost
resolveHost resolves host and returns the addresses. When denyPrivate is true, a non-public address is rejected with [ErrNonPublicIP]. When denyPublic
pkg/gotenberg/outbound.go:127
↓ 3 callersMethodrestart
()
pkg/gotenberg/supervisor.go:205
↓ 3 callersFunctionscreenshotUrl
(ctx *api.Context, chromium Api, url string, options ScreenshotOptions)
pkg/modules/chromium/routes.go:938
↓ 3 callersFunctionspanAttr
(span sdktrace.ReadOnlySpan, key string)
pkg/gotenberg/cmd_test.go:34
↓ 3 callersFunctionstandardizeHTTPMethod
(method string)
pkg/gotenberg/semconv/util.go:119
↓ 3 callersFunctionvalidateMetadataValue
validateMetadataValue rejects metadata values containing NUL, newline, or carriage return. NUL terminates C strings and is rejected by [exec.Cmd] anyw
pkg/modules/exiftool/exiftool.go:43
↓ 3 callersFunctionwriteSofficeProfileConfig
writeSofficeProfileConfig drops a registrymodifications.xcu file into userProfileDirPath/user/ that points soffice's UCB layer at proxyAddr for both H
pkg/modules/libreoffice/api/proxy.go:281
↓ 2 callersMethodActiveTasksCount
ActiveTasksCount returns the current number of active tasks.
pkg/gotenberg/supervisor.go:82
↓ 2 callersFunctionBuildDebug
BuildDebug builds the debug data from modules.
pkg/gotenberg/debug.go:23
↓ 2 callersFunctionCommand
Command creates a [Cmd] without a context. It configures the internal [exec.Cmd] of [Cmd] so that we may kill its unix process and all its children wi
pkg/gotenberg/cmd.go:33
↓ 2 callersMethodConvert
Convert transforms a given PDF to the specified formats defined in PdfFormats. If no format, it does nothing.
pkg/gotenberg/pdfengine.go:282
↓ 2 callersMethodDebug
Debug returns additional debug data.
pkg/modules/qpdf/qpdf.go:75
↓ 2 callersMethodDebug
Debug returns additional debug data.
pkg/modules/chromium/chromium.go:723
↓ 2 callersMethodEmbedFilesMetadata
EmbedFilesMetadata sets metadata (such as MIME type and AFRelationship) on already-embedded files in a PDF. The metadata map is keyed by filename, wit
pkg/gotenberg/pdfengine.go:315
↓ 2 callersMethodEmbeds
Embeds binds the absolute paths of form data files that should be embedded in the PDF. Only files uploaded with the "embeds" field name will be includ
pkg/modules/api/formdata.go:386
↓ 2 callersMethodEncrypt
Encrypt adds password protection and permission restrictions to a PDF file, as described by [EncryptOptions]. An empty user password with a set owner
pkg/gotenberg/pdfengine.go:304
↓ 2 callersMethodFacturXXml
FacturXXml binds the absolute path of the uploaded Factur-X CII invoice XML. Only a file uploaded with the "facturxXml" field name is included.
pkg/modules/api/formdata.go:484
↓ 2 callersMethodFlatten
Flatten merges existing annotation appearances with page content, effectively deleting the original annotations. This process can flatten forms as wel
pkg/gotenberg/pdfengine.go:278
↓ 2 callersFunctionFormDataChromiumOptions
FormDataChromiumOptions creates [Options] from the form data. It falls back to the default value if the considered key is not present. JSON-encoded
pkg/modules/chromium/routes.go:46
↓ 2 callersFunctionFormDataPdfBookmarks
FormDataPdfBookmarks creates bookmarks from the form data.
pkg/modules/pdfengines/routes.go:134
↓ 2 callersFunctionGetModuleDescriptors
GetModuleDescriptors returns the descriptors of all registered modules.
pkg/gotenberg/modules.go:125
↓ 2 callersMethodInjectFacturXXMP
InjectFacturXXMP injects Factur-X/ZUGFeRD XMP metadata into the document-level XMP packet (Catalog /Metadata stream) of a PDF/A-3. It registers the fx
pkg/gotenberg/pdfengine.go:331
↓ 2 callersFunctionIntEnv
IntEnv relies on [StringEnv] and converts the values if it exists and is not empty.
pkg/gotenberg/env.go:25
↓ 2 callersFunctionIsPublicIP
IsPublicIP reports whether addr is reachable on the public internet. It returns false for loopback, private (RFC1918), link-local, unspecified, multic
pkg/gotenberg/outbound.go:87
↓ 2 callersMethodLibreOffice
()
pkg/modules/libreoffice/api/api.go:321
↓ 2 callersFunctionMapEnum
MapEnum returns value when it belongs to allowed, otherwise "other". It keeps a span attribute or metric dimension bounded even when an upstream tool
pkg/gotenberg/attrs.go:48
↓ 2 callersMethodMeasurementOption
()
pkg/gotenberg/semconv/client.go:263
↓ 2 callersFunctionNewLeveledLogger
NewLeveledLogger instantiates a [LeveledLogger].
pkg/gotenberg/telemetry.go:215
↓ 2 callersFunctionNewPdfEngineInvalidArgs
NewPdfEngineInvalidArgs creates a new PdfEngineInvalidArgsError with the given engine name and message.
pkg/gotenberg/pdfengine.go:59
↓ 2 callersFunctionNewStdHandler
(level slog.Level, format string, fieldsPrefix string, enableGcpFields bool, levelCase string)
pkg/gotenberg/internal/log/stdhandler.go:58
↓ 2 callersMethodPageCount
PageCount returns the number of pages in a PDF file.
pkg/gotenberg/pdfengine.go:288
↓ 2 callersMethodPdf
(ctx context.Context, logger *slog.Logger, inputPath, outputPath string, options Options)
pkg/modules/libreoffice/api/api.go:309
↓ 2 callersMethodPdfEngine
PdfEngine returns an instance of the [PdfEngine] interface for PDF operations.
pkg/gotenberg/pdfengine.go:351
↓ 2 callersMethodRead
(p []byte)
pkg/modules/api/context.go:66
↓ 2 callersMethodRead
Read a chunk of the stream.
pkg/modules/chromium/stream.go:25
↓ 2 callersMethodReadMetadata
ReadMetadata extracts the metadata of a given PDF file.
pkg/gotenberg/pdfengine.go:285
↓ 2 callersMethodReadPdfAConformance
ReadPdfAConformance reads the PDF/A part and conformance (e.g., "3" and "B") from the document-level XMP packet (Catalog /Metadata stream, pdfaid:part
pkg/gotenberg/pdfengine.go:337
↓ 2 callersMethodRotate
Rotate rotates pages of a PDF file by the given angle (90, 180, 270). If pages is empty, all pages are rotated.
pkg/gotenberg/pdfengine.go:325
↓ 2 callersMethodSetEnv
SetEnv replaces the environment variables passed to the underlying process. When SetEnv is not called, the process inherits the parent's environment.
pkg/gotenberg/cmd.go:67
↓ 2 callersMethodWithAttrs
(attrs []slog.Attr)
pkg/gotenberg/internal/log/handler.go:132
↓ 2 callersMethodWithGroup
(name string)
pkg/gotenberg/internal/log/handler.go:140
↓ 2 callersFunctionWriteBookmarksStub
WriteBookmarksStub writes the bookmarks into PDF files. If no bookmarks, it does nothing.
pkg/modules/pdfengines/routes.go:403
↓ 2 callersMethodWriteMetadata
WriteMetadata writes the metadata into a given PDF file.
pkg/gotenberg/pdfengine.go:291
↓ 2 callersMethodapplyStampOrWatermark
(ctx context.Context, logger *slog.Logger, command string, inputPath string, stamp gotenberg.Stamp)
pkg/modules/pdfcpu/pdfcpu.go:662
↓ 2 callersFunctionclearCacheActionFunc
(logger *slog.Logger, clear bool)
pkg/modules/chromium/tasks.go:224
↓ 2 callersFunctionclearCookiesActionFunc
(logger *slog.Logger, clear bool)
pkg/modules/chromium/tasks.go:243
↓ 2 callersFunctioncompareJson
(expected, actual any)
test/integration/scenario/compare.go:8
↓ 2 callersFunctioncompileRegexes
(t *testing.T, patterns ...string)
pkg/modules/libreoffice/api/proxy_test.go:23
↓ 2 callersFunctioncontainerLogEntries
(ctx context.Context, container testcontainers.Container)
test/integration/scenario/containers.go:223
↓ 2 callersFunctionconversionRequestAttributes
conversionRequestAttributes derives low-cardinality attributes describing the requested conversion: the input document size and the requested PDF form
pkg/modules/libreoffice/api/api.go:748
↓ 2 callersMethoddetectVersion
detectVersion resolves the pdfcpu version once, preferring the value captured at image build time so it never spawns pdfcpu at runtime. It falls back
pkg/modules/pdfcpu/pdfcpu.go:88
↓ 2 callersMethoddetectVersion
detectVersion resolves the ExifTool version once, preferring the value captured at image build time so it never spawns ExifTool at runtime. It falls b
pkg/modules/exiftool/exiftool.go:207
↓ 2 callersMethoddetectVersion
detectVersion resolves the PDFtk version once, preferring the value captured at image build time so it never spawns the PDFtk JVM at runtime. It falls
pkg/modules/pdftk/pdftk.go:74
↓ 2 callersMethoddetectVersion
detectVersion resolves the qpdf version once, preferring the value captured at image build time so it never spawns qpdf at runtime. It falls back to r
pkg/modules/qpdf/qpdf.go:82
↓ 2 callersMethoddetectVersion
detectVersion resolves the Chromium version once, preferring the value captured at image build time so it never spawns Chromium at runtime. It falls b
pkg/modules/chromium/chromium.go:730
↓ 2 callersMethoddetectVersion
detectVersion resolves the LibreOffice version once, preferring the value captured at image build time so it never spawns LibreOffice at runtime. It f
pkg/modules/libreoffice/api/api.go:553
↓ 2 callersFunctiondisableJavaScriptActionFunc
(logger *slog.Logger, disable bool)
pkg/modules/chromium/tasks.go:262
↓ 2 callersMethoddo
(ctx context.Context, logger *slog.Logger, url string, options Options, aggregate *networkAggregate, tasks chr
pkg/modules/chromium/browser.go:370
↓ 2 callersFunctiondoFormDataRequest
(method, url string, fields map[string]string, files map[string][]string, headers map[string]string)
test/integration/scenario/http.go:32
↓ 2 callersMethoddoRestartLocked
doRestartLocked performs the restart drain logic. The caller must hold restartMutex.
pkg/gotenberg/supervisor.go:573
↓ 2 callersFunctionemulateMediaTypeActionFunc
(logger *slog.Logger, mediaType string, mediaFeatures []EmulatedMediaFeature)
pkg/modules/chromium/tasks.go:485
↓ 2 callersFunctionengineName
engineName returns the module ID of a PDF engine for telemetry, falling back to its type name when it does not expose a descriptor.
pkg/modules/pdfengines/multi.go:72
↓ 2 callersFunctionextractNumber
(str string)
pkg/gotenberg/sort.go:81
↓ 2 callersFunctionextractNumber
(str string)
pkg/modules/pdfcpu/sort.go:46
↓ 2 callersFunctionfacturXSchemaLi
facturXSchemaLi builds the rdf:li describing the fx schema and its four properties. These are fixed schema definitions, not runtime invoice values.
pkg/modules/qpdf/qpdf.go:1051
↓ 2 callersFunctionforceExactColorsActionFunc
(logger *slog.Logger, printBackground bool)
pkg/modules/chromium/tasks.go:453
↓ 2 callersFunctionformDataPdfStampOrWatermark
(form *api.FormData, prefix string, mandatory bool)
pkg/modules/pdfengines/routes.go:763
↓ 2 callersFunctiongcpSeverity
(l slog.Level)
pkg/gotenberg/internal/log/gcp.go:5
↓ 2 callersFunctionhandleChromiumError
(err error, options Options)
pkg/modules/chromium/routes.go:956
↓ 2 callersFunctionhideDefaultWhiteBackgroundActionFunc
(logger *slog.Logger, omitBackground, printBackground bool)
pkg/modules/chromium/tasks.go:422
↓ 2 callersMethodinches
inches tries to compute a string value to inches.
pkg/modules/api/formdata.go:200
↓ 2 callersFunctionisAllowedFileSubResource
isAllowedFileSubResource reports whether a file:// sub-resource URL is within at least one prefix. An empty prefix list rejects every file:// URL so r
pkg/modules/chromium/events.go:277
↓ 2 callersFunctionisDangerousTag
isDangerousTag reports whether key matches one of the [dangerousTags] after case-insensitive comparison with any group prefix stripped.
pkg/modules/exiftool/exiftool.go:85
↓ 2 callersFunctionisErrorStatusCode
(code int)
pkg/gotenberg/semconv/client.go:306
↓ 2 callersFunctionisPdfA3
isPdfA3 reports whether the format is a PDF/A-3 variant, the only family that allows the embedded files Factur-X requires.
pkg/modules/pdfengines/routes.go:527
↓ 2 callersFunctionlevelToColor
(l slog.Level)
pkg/gotenberg/internal/log/color.go:27
↓ 2 callersFunctionlibreofficeErrorType
libreofficeErrorType maps a conversion error to LibreOffice's bounded reason value, reused as the span error.type. Generic failures fall back to [gote
pkg/modules/libreoffice/api/api.go:766
↓ 2 callersMethodloadModule
loadModule calls the Provision and/or Validate methods of the requested module if it satisfies the [Provisioner] and/or [Validator] interfaces.
pkg/gotenberg/context.go:104
↓ 2 callersMethodmandatoryPath
mandatoryPath binds the absolute path of a form data file to a string variable. It populates an error if the file does not exist.
pkg/modules/api/formdata.go:657
↓ 2 callersFunctionmarkdownToHtml
(ctx *api.Context, inputPath string, markdownPaths []string)
pkg/modules/chromium/routes.go:709
↓ 2 callersMethodmethod
(method string)
pkg/gotenberg/semconv/server.go:282
↓ 2 callersFunctionnavigateActionFunc
This code has been replaced with the listenForEventRequestPaused function. Indeed, the user may want to scope the headers per domain, but using networ
pkg/modules/chromium/tasks.go:375
↓ 2 callersFunctionnormalizeDomain
(domain string)
pkg/modules/chromium/events.go:321
↓ 2 callersFunctionnormalizeDomains
(domains []string)
pkg/modules/chromium/events.go:307
↓ 2 callersMethodonLoadingFailed
onLoadingFailed records a request that failed to complete.
pkg/modules/chromium/network_aggregate.go:87
↓ 2 callersFunctionoriginOf
originOf returns the scheme://host of rawURL, or an empty string when it has no host (for example data: or file: URLs).
pkg/modules/chromium/network_aggregate.go:115
↓ 2 callersFunctionparsePdfAId
parsePdfAId extracts the PDF/A part and conformance from an XMP packet. It handles both the element (<pdfaid:part>3</pdfaid:part>) and attribute (pdfa
pkg/modules/qpdf/qpdf.go:857
↓ 2 callersMethodpdfPageText
pdfPageText extracts the text of a single page from a produced PDF using pdftotext. name is either a literal filename or a "*_" glob resolved against
test/integration/scenario/scenario.go:1083
← previousnext →201–300 of 1,037, ranked by callers