pdf

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 10 Imported by: 1 module, 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 pdf supplies a pdf encoder for iv.

A document that ivy opens, such as a docx or a pdf, writes its own pages through the PDF writer of ivy, with their text as text and their paths and their images as vectors (D55). The encoder puts any other image on a page with blitz. The page is the size of the image, or --pdf-page with a margin of --pdf-margin.

See: https://github.com/xo/blitz

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageSizes

func PageSizes() []string

PageSizes returns the page geometry names, for error messages.

Types

type Writer added in v0.24.0

type Writer interface {
	WritePDF(ctx context.Context, w io.Writer) error
}

Writer is an image that writes itself as a pdf, such as a document that ivy opens.

Jump to

Keyboard shortcuts

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