iwork

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 5 Imported by: 1 module, 1 package

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 iwork opens the files of Apple Pages, Keynote and Numbers.

A document gives the previews that iWork writes into the file: a JPEG in QuickLook/ for iWork 2009, and preview.jpg and its smaller forms in the root for iWork 2013 and later (D11). ivy renders no page of iWork. A package that is a folder, not a zip file, is the work of the program that opens it.

Index

Constants

This section is empty.

Variables

View Source
var Format = ivy.Format{
	Name: "iwork",
	Mimes: []string{
		"application/vnd.apple.pages",
		"application/vnd.apple.keynote",
		"application/vnd.apple.numbers",
		"application/x-iwork-pages-sffpages",
		"application/x-iwork-keynote-sffkey",
		"application/x-iwork-numbers-sffnumbers",
	},
	Exts: []string{"pages", "key", "numbers"},
	Open: func(ctx context.Context, src ivy.Source, cfg ivy.Config) (ivy.Document, error) {
		return Open(ctx, src, WithConfig(cfg))
	},
}

Format describes the package for the registry of a program.

Functions

This section is empty.

Types

type Document

type Document struct {
	// contains filtered or unexported fields
}

Document is an open iWork file.

func Open

func Open(ctx context.Context, src ivy.Source, opts ...Option) (*Document, error)

Open opens an iWork file. It returns an error that wraps ivy.ErrFormat if src is not a zip archive.

func (*Document) Close

func (d *Document) Close() error

Close satisfies the ivy.Document interface.

func (*Document) Previews

func (d *Document) Previews(ctx context.Context) iter.Seq2[ivy.Preview, error]

Previews satisfies the ivy.Previewer interface.

type Option

type Option func(*options)

Option is an option of Open.

func WithConfig

func WithConfig(cfg ivy.Config) Option

WithConfig sets the configuration that every format shares.

Jump to

Keyboard shortcuts

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