package
0.7.6
Repository: https://github.com/pulingfu/pdfcpu.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
Convert a 1,2 or 3 digit unescaped octal string into the corresponding byte value.
CP1252ToUTF8 converts CP1252 to UTF-8.
DateString returns a string representation of t.
DateTime decodes s into a time.Time.
DecodeName applies name decoding according to PDF spec.
DecodeUTF16String decodes a UTF16BE string from a hex string.
EncodeName applies name encoding according to PDF spec.
No description provided by the author
No description provided by the author
Escape applies all defined escape sequences to s.
No description provided by the author
HexLiteralToString returns a possibly UTF16 encoded string for a hex string.
IntMemberOf returns true if list contains i.
IntMemberOf returns true if list contains i.
IsStringUTF16BE checks a string for Big Endian byte order BOM.
IsUTF16BE checks for Big Endian byte order mark and valid length.
MemberOf returns true if list contains s.
NewDict returns a new PDFDict object.
NewHexLiteral creates a new HexLiteral for b..
NewHexLiteralArray returns a PDFArray with HexLiteralLiteral entries.
NewIndirectRef returns a new PDFIndirectRef object.
NewIntegerArray returns a PDFArray with Integer entries.
NewNameArray returns a PDFArray with Name entries.
NewNumberArray returns a PDFArray with Float entries.
NewObjectStreamDict creates a new ObjectStreamDict object.
NewRectangle returns a new rectangle for given corner coordinates.
NewStreamDict creates a new PDFStreamDict for given PDFDict, stream offset and length.
NewStringLiteralArray returns a PDFArray with StringLiteral entries.
NewStringSet returns a new StringSet for slice.
NormalizeCoord transfers P(x,y) from pdfcpu user space into PDF user space, which uses a coordinate system with origin in the lower left corner of r.
Normalize offset transfers x and y into offsets in the PDF user space.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RectForDim returns a new rectangle for given dimensions.
RectForFormat returns a new rectangle for given format.
RectForWidthAndHeight returns a new rectangle for given dimensions.
Reverse reverses the runes within s.
StringLiteralToString returns the best possible string rep for a string literal.
No description provided by the author
No description provided by the author
Unescape resolves all escape sequences of s.
UTF8ToCP1252 converts UTF-8 to CP1252.

# Constants

These are the options for vertical aligned text.
These are the options for vertical aligned text.
These are the options for horizontal aligned text.
These are the options for horizontal aligned text.
These are the options for horizontal aligned text.
These are the options for vertical aligned text.
These are the options for horizontal aligned text.
These are the options for vertical aligned text.
These are the defined anchors for relative positioning.
These are the defined anchors for relative positioning.
These are the defined anchors for relative positioning.
default.
Options for display unit in effect.
Supported line delimiters.
Supported line delimiters.
Supported line delimiters.
FreeHeadGeneration is the predefined generation number for the head of the free list.
special case, no anchor needed, imageSize = pageSize.
Storage space terms.
No description provided by the author
Options for display unit in effect.
Storage space terms.
These are the defined anchors for relative positioning.
Render mode.
Render mode.
Render mode.
The four corners of a rectangle.
The four corners of a rectangle.
Storage space terms.
Options for display unit in effect.
Options for display unit in effect.
These are the options for relative label positions.
These are the options for relative label positions.
These are the options for relative label positions.
These are the options for relative label positions.
These are the defined anchors for relative positioning.
These are the defined anchors for relative positioning.
These are the defined anchors for relative positioning.
These are the defined anchors for relative positioning.
The four corners of a rectangle.
The four corners of a rectangle.
No description provided by the author

# Variables

ErrInvalidUTF16BE represents an error that gets raised for invalid UTF-16BE byte sequences.
PaperSize is a map of known paper sizes in user units (=72 dpi pixels).

# Structs

Dim represents the dimensions of a rectangular view medium like a PDF page, a sheet of paper or an image grid in user space, inches, centimetres or millimetres.
IndirectRef represents a PDF indirect object.
ObjectStreamDict represents a object stream dictionary.
PDFFilter represents a PDF stream filter object.
Point represents a user space location.
QuadLiteral is a polygon with four edges and four vertices.
Rectangle represents a rectangular region in userspace.
StreamDict represents a PDF stream dict object.
XRefStreamDict represents a cross reference stream dictionary.

# Interfaces

Object defines an interface for all Objects.

# Type aliases

Anchor represents symbolic positions within a rectangular region.
Array represents a PDF array object.
Boolean represents a PDF boolean object.
ByteSize represents the various terms for storage space.
Corner represents one of four rectangle corners.
Dict represents a PDF dict object.
DisplayUnit is the metric unit used to output paper sizes.
Float represents a PDF float object.
HAlignment represents the horizontal alignment of text.
HexLiteral represents a PDF hex literal object.
Integer represents a PDF integer object.
IntSet is a set of integers.
LineJoinStyle represents the shape to be used at the corners of paths that are stroked (see 8.4.3.4).
Name represents a PDF name object.
TODO Refactor because of orientation in nup.go.
QuadPoints is an array of 8 × n numbers specifying the coordinates of n quadrilaterals in default user space.
RelPosition represents the relative position of a text field's label.
StringLiteral represents a PDF string literal object.
StringSet is a set of strings.
VAlignment represents the vertical alignment of text.