pdf

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 21 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 is the extension PDF Viewer (SPEC §10.37 "PDF", D54): the file editor of PDF files, whose pages are drawn by the user's Poppler (extensions/pdf/poppler), scrolled continuously, with zoom, page navigation and passwords.

Index

Constants

View Source
const (
	ID       = "emetos.pdf"
	ViewerID = "emetos.pdf.viewer"
)

ID is the id of the extension, and ViewerID the id of its file editor.

View Source
const (
	CommandZoomIn        = "emetos.pdf.zoomIn"
	CommandZoomOut       = "emetos.pdf.zoomOut"
	CommandNextPage      = "emetos.pdf.nextPage"
	CommandPreviousPage  = "emetos.pdf.previousPage"
	CommandGoToPage      = "emetos.pdf.goToPage"
	CommandToggleOutline = "emetos.pdf.toggleOutline"
	CommandFind          = "emetos.pdf.find"
	CommandFindNext      = "emetos.pdf.findNext"
	CommandFindPrevious  = "emetos.pdf.findPrevious"
	CommandCopyPageText  = "emetos.pdf.copyPageText"
)

The commands of the viewer.

View Source
const RequirementPoppler = "poppler"

RequirementPoppler is the id of the requirement of Poppler.

Variables

View Source
var ZoomLevels = []float64{0.5, 0.75, 1, 1.25, 1.5, 2, 3, 4}

ZoomLevels are the levels of the zoom pick and of Zoom In and Zoom Out, as fractions of 100%.

Functions

func New

func New() extension.Extension

New is the Factory of the extension.

Types

type Extension

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

Extension is the PDF Viewer in one scope. Its fields belong to the UI thread.

func (*Extension) Activate

func (x *Extension) Activate(ctx context.Context, api extension.API) error

Activate implements extension.Extension.

func (*Extension) Manifest

func (x *Extension) Manifest() extension.Manifest

Manifest implements extension.Extension.

Directories

Path Synopsis
Package poppler runs the user's Poppler programs for the PDF Viewer (SPEC §10.37 "PDF", D54): it finds pdfinfo, pdftoppm, pdftotext and pdftohtml, checks the version, reads a document's pages and their sizes, and draws a page at a resolution.
Package poppler runs the user's Poppler programs for the PDF Viewer (SPEC §10.37 "PDF", D54): it finds pdfinfo, pdftoppm, pdftotext and pdftohtml, checks the version, reads a document's pages and their sizes, and draws a page at a resolution.

Jump to

Keyboard shortcuts

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