Documentation
¶
Overview ¶
Package pub opens the publications of Microsoft Publisher, .pub files, for their previews.
A publication is a Compound File, which the package cfb of magic reads. The package gives its thumbnail and its properties, from the stream "\x05SummaryInformation", and no pages (D5). It draws a thumbnail in EMF or WMF with internal/metafile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Format = ivy.Format{ Name: "pub", Mimes: []string{"application/vnd.ms-publisher", "application/x-mspublisher"}, Exts: []string{"pub"}, 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 Publisher file.
func Open ¶
Open opens a Publisher file. It returns an error that wraps ivy.ErrFormat if src is not a Compound File with the storage Quill or the stream Contents of Publisher.