Discover Packages
github.com/pdfcpu/pdfcpu
pkg
types
package
Version:
v0.3.11
Opens a new window with list of versions in this module.
Published: Apr 5, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0 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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package types provides pdfcpu's base types.
Point represents a user space location.
Translate modifies p's coordinates.
type Rectangle struct {
LL, UR Point
}
Rectangle represents a rectangular region in userspace.
NewRectangle returns a new rectangle for given corner coordinates.
AspectRatio returns the relation between width and height of a rectangle.
Center returns the center point of a rectangle.
Contains returns true if rectangle r contains point p.
Height returns the vertical span of a rectangle in userspace.
func (Rectangle) Landscape ¶
added in
v0.1.21
Landscape returns true if r is in landscape mode.
Portrait returns true if r is in portrait mode.
Width returns the horizontal span of a rectangle in userspace.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.