Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPDFFormat ¶
IsPDFFormat reports whether format names a PDF output.
func IsRasterFormat ¶
IsRasterFormat reports whether format names a raster/image-like output.
func IsTextBearingFormat ¶
IsTextBearingFormat reports whether an output can carry searchable text.
Types ¶
type ContentProfile ¶
ContentProfile is a small adapter-friendly summary of input text content. The zero value is an unknown safe profile: Decide never fails on unknown data.
type Decision ¶
type Decision struct {
Level SafetyLevel
RequireUnicodePDFEngine bool
RequireTextValidation bool
Warnings []string
}
Decision describes the safety requirements selected for a conversion.
type Mode ¶
type Mode string
Mode controls Unicode safety decisions.
type Request ¶
type Request struct {
Mode Mode
OutputFormat string
Profile ContentProfile
}
Request contains the stable inputs for a safety decision.
type SafetyLevel ¶
type SafetyLevel string
SafetyLevel describes the amount of Unicode safety required for a conversion.
const ( SafetyDefault SafetyLevel = "default" SafetyUnicodeAware SafetyLevel = "unicode-aware" SafetyStrictTextLayer SafetyLevel = "strict-text-layer" )
Click to show internal directories.
Click to hide internal directories.