Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharPosition ¶
type FontInformation ¶
type FontInformation struct {
Size float64 // Font size in points (also known as em).
SizeInPixels *int // Font size in pixels, only available when PixelPositions is used.
Weight int // The weight of the font, can be negative for spaces and newlines.
Name string // The name of the font, can be empty for spaces and newlines.
Flags int // Font flags, should be interpreted per PDF spec 1.7, Section 5.7.1 Font Descriptor Flags.
}
type GetPageCount ¶
type GetPageCount struct {
PageCount int // The amount of pages of the document.
}
type GetPageSize ¶
type GetPageSizeInPixels ¶
type GetPageSizeInPixels struct {
Page int // The page this size came from (0-index based).
Width int // The width of the page in pixels.
Height int // The height of the page in pixels.
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image.
}
type GetPageText ¶
type GetPageTextStructured ¶
type GetPageTextStructured struct {
Page int // The page structured this text came from (0-index based).
Chars []*GetPageTextStructuredChar // A list of chars in a page. When Mode is GetPageTextStructuredModeChars or GetPageTextStructuredModeBoth.
Rects []*GetPageTextStructuredRect // A list of rects in a page. When Mode is GetPageTextStructuredModeRects or GetPageTextStructuredModeBoth.
PointToPixelRatio float64 // The point to pixel ratio for the calculated positions.
}
type GetPageTextStructuredChar ¶
type GetPageTextStructuredChar struct {
Text string // The text of this char.
Angle float64 // The angle this char is in.
PointPosition CharPosition // The position of this char in points.
PixelPosition *CharPosition // The position of this char in pixels. When PixelPositions are requested.
FontInformation *FontInformation // The font information of this char. When CollectFontInformation is enabled.
}
type GetPageTextStructuredRect ¶
type GetPageTextStructuredRect struct {
Text string // The text of this rect.
PointPosition CharPosition // The position of this rect in points.
PixelPosition *CharPosition // The position of this rect in pixels. When PixelPositions are requested.
FontInformation *FontInformation // The font information of this rect. When CollectFontInformation is enabled.
}
type RenderPage ¶
type RenderPage struct {
Page int // The rendered page number (0-index based).
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image.
Image *image.RGBA // The rendered image.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
}
type RenderPages ¶
type RenderPages struct {
Pages []RenderPagesPage // Information about the rendered pages inside this image.
Image *image.RGBA // The rendered image.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
}
type RenderPagesPage ¶
type RenderPagesPage struct {
Page int // The rendered page number (0-index based).
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel for this page in this image.
Width int // The width of the rendered page inside the image.
Height int // The height of the rendered page inside the image.
X int // The X start position of this page inside the image.
Y int // The Y start position of this page inside the image.
}
type RenderToFile ¶
type RenderToFile struct {
Pages []RenderPagesPage // Information about the rendered pages inside this image.
ImageBytes *[]byte // The byte array of the rendered file when OutputTarget is RenderToFileOutputTargetBytes.
ImagePath string // The file path when OutputTarget is RenderToFileOutputTargetFile, is a tmp path when TargetFilePath was empty in the request.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image. Only set when rendering one page.
}
Click to show internal directories.
Click to hide internal directories.