export

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package export provides a C ABI for the Folio PDF library. Every Go object exposed to C is stored in an opaque handle table. C callers receive uint64 handle IDs and never see raw Go pointers.

Error convention: all functions return int32 (0 = success, negative = error). Call folio_last_error() to retrieve the error message string.

Package export provides a C ABI for the Folio PDF library, enabling use from C, Python, Ruby, Java (JNI), .NET (P/Invoke), and any language with a C FFI.

All Go objects are stored in an opaque handle table; C callers receive uint64 handles and never see raw Go pointers. Functions follow a consistent convention: return int32 (0 = success, negative = error code) with detailed messages retrievable via folio_last_error.

The exported functions are organized by module:

  • cabi_document.go — Document creation, pages, metadata
  • cabi_layout.go — Layout elements (paragraphs, tables, etc.)
  • cabi_font.go — Font loading and embedding
  • cabi_image.go — Image loading
  • cabi_reader.go — PDF reading and text extraction
  • cabi_sign.go — Digital signatures
  • cabi_forms.go — AcroForm fields
  • cabi_redact.go — Text redaction
  • cabi_import.go — Page import

Build with -buildmode=c-shared to produce a shared library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL