Versions in this module Expand all Collapse all v0 v0.2.0 Apr 6, 2026 Changes in this version + const BlendColorBurn + const BlendColorDodge + const BlendDarken + const BlendDifference + const BlendExclusion + const BlendHardLight + const BlendLighten + const BlendMultiply + const BlendNormal + const BlendOverlay + const BlendScreen + const BlendSoftLight + const CellHAlignCenter + const CellHAlignJustify + const CellHAlignLeft + const CellHAlignRight + const CellVAlignBottom + const CellVAlignMiddle + const CellVAlignTop + const LineCapButt + const LineCapRound + const LineCapSquare + const LineJoinBevel + const LineJoinMiter + const LineJoinRound + const TextAlignCenter + const TextAlignJustify + const TextAlignLeft + const TextAlignRight + var ColorBlack = style.Black + var ColorBlue = style.Blue + var ColorBrown = style.Brown + var ColorCyan = style.Cyan + var ColorDarkGray = style.DarkGray + var ColorFromHex = style.ColorFromHex + var ColorGray = style.GrayColor + var ColorGray50 = style.Gray + var ColorGreen = style.Green + var ColorLightGray = style.LightGray + var ColorLime = style.Lime + var ColorMagenta = style.Magenta + var ColorMaroon = style.Maroon + var ColorNavy = style.Navy + var ColorOlive = style.Olive + var ColorOrange = style.Orange + var ColorPink = style.Pink + var ColorPurple = style.Purple + var ColorRed = style.Red + var ColorSilver = style.Silver + var ColorTeal = style.Teal + var ColorWhite = style.White + var ColorYellow = style.Yellow + var NewICCProfile = style.NewICCProfile + var SRGBProfile = style.SRGBProfile + type BlendMode = style.BlendMode + type CatalogReader interface + Catalog func() (*model.Catalog, error) + Info func() (model.Dict, error) + MetadataStream func() ([]byte, error) + Pages func() ([]model.Page, error) + StartXRefOffset func() int64 + Trailer func() model.Trailer + type CellHorizontalAlign = table.CellHorizontalAlign + type CellStyle = table.CellStyle + type CellVerticalAlign = table.CellVerticalAlign + type Color = style.Color + type ContentReader interface + ReadContent func() (string, error) + ReadContentPerPage func() ([]string, error) + type ContentSearcher interface + Replace func(old, new string) error + Replaces func(replacements map[string]string) error + Search func(keywords ...string) ([]model.SearchResult, error) + type Document interface + Close func() error + Resolve func(ref model.Ref) (model.Object, error) + func Merge(docs ...Document) (Document, error) + func Open(path string) (Document, error) + func OpenReader(r io.ReaderAt, size int64) (Document, error) + func OpenReaderWithPassword(r io.ReaderAt, size int64, userPassword string) (Document, error) + func OpenWithPassword(path string, userPassword string) (Document, error) + type DocumentBuilder struct + func New() *DocumentBuilder + func (b *DocumentBuilder) A3() *DocumentBuilder + func (b *DocumentBuilder) A4() *DocumentBuilder + func (b *DocumentBuilder) A5() *DocumentBuilder + func (b *DocumentBuilder) AddCheckBox(pageIndex int, llx, lly, urx, ury float64, name string, checked bool, ...) *DocumentBuilder + func (b *DocumentBuilder) AddLinkToDest(pageIndex int, llx, lly, urx, ury float64, destName string) *DocumentBuilder + func (b *DocumentBuilder) AddLinkToPage(pageIndex int, llx, lly, urx, ury float64, destPageIndex int) *DocumentBuilder + func (b *DocumentBuilder) AddLinkToURL(pageIndex int, llx, lly, urx, ury float64, url string) *DocumentBuilder + func (b *DocumentBuilder) AddNamedDest(name string, pageIndex int) *DocumentBuilder + func (b *DocumentBuilder) AddOutline(title string, pageIndex int) *DocumentBuilder + func (b *DocumentBuilder) AddOutlineToDest(title string, destName string) *DocumentBuilder + func (b *DocumentBuilder) AddOutlineURL(title string, url string) *DocumentBuilder + func (b *DocumentBuilder) AddPage() *DocumentBuilder + func (b *DocumentBuilder) AddRadioButton(pageIndex int, llx, lly, urx, ury float64, groupName, value string, ...) *DocumentBuilder + func (b *DocumentBuilder) AddSubmitButton(pageIndex int, llx, lly, urx, ury float64, ...) *DocumentBuilder + func (b *DocumentBuilder) AddTable(pageIndex int) int + func (b *DocumentBuilder) AddTableCell(tableIndex, rowIndex, pageIndex int, role model.Name, scope, alt, lang string, ...) + func (b *DocumentBuilder) AddTextField(pageIndex int, llx, lly, urx, ury float64, name, value, tooltip string, ...) *DocumentBuilder + func (b *DocumentBuilder) AppendPage() + func (b *DocumentBuilder) ApplyPageSize(sz pagesize.Size) *DocumentBuilder + func (b *DocumentBuilder) Author(s string) *DocumentBuilder + func (b *DocumentBuilder) B4JIS() *DocumentBuilder + func (b *DocumentBuilder) B5JIS() *DocumentBuilder + func (b *DocumentBuilder) BeginLayer(name string, onByDefault bool) *layer.Handle + func (b *DocumentBuilder) BeginPath(pageIndex int) *PathBuilder + func (b *DocumentBuilder) BeginSection() *DocumentBuilder + func (b *DocumentBuilder) BeginTable(pageIndex int, x, y, width, height float64, cols int) ITableBuilder + func (b *DocumentBuilder) Build() (Document, error) + func (b *DocumentBuilder) BuildAndSave(path string) error + func (b *DocumentBuilder) Creator(s string) *DocumentBuilder + func (b *DocumentBuilder) CurrentPage() *Page + func (b *DocumentBuilder) CurrentSection() int + func (b *DocumentBuilder) DrawCircle(pageIndex int, cx, cy, radius float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawCircleWithState(pageIndex int, cx, cy, radius float64, style LineStyle, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) DrawCircularImage(x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawCircularJPEG(x, y, widthPt, heightPt float64, jpegData []byte, widthPx, heightPx int, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawCircularPNG(x, y, widthPt, heightPt float64, pngData []byte, cx, cy, radius float64) *DocumentBuilder + func (b *DocumentBuilder) DrawEllipse(pageIndex int, cx, cy, rx, ry float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawEllipseWithState(pageIndex int, cx, cy, rx, ry float64, style LineStyle, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) DrawHeading(pageIndex int, level int, textStr string, x, y float64, fontName string, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawHeadingColored(pageIndex int, level int, textStr string, x, y float64, fontName string, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawImage(x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawImageWith(opts ImageOptions) *DocumentBuilder + func (b *DocumentBuilder) DrawImageWithOpacity(x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawInLayer(lh *layer.Handle, pageIndex int, draw func(db *DocumentBuilder)) *DocumentBuilder + func (b *DocumentBuilder) DrawJPEG(x, y, widthPt, heightPt float64, jpegData []byte, widthPx, heightPx int, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawJPEGRotated(x, y, widthPt, heightPt float64, jpegData []byte, widthPx, heightPx int, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawJPEGWithOpacity(x, y, widthPt, heightPt float64, jpegData []byte, widthPx, heightPx int, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawLine(pageIndex int, x1, y1, x2, y2 float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawLineWithState(pageIndex int, x1, y1, x2, y2 float64, style LineStyle, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) DrawList(pageIndex int, items []string, x, y, lineHeight float64, ordered bool, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawListEnhanced(pageIndex int, items []string, x, y, lineHeight float64, ls style.ListStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawPNG(x, y, widthPt, heightPt float64, pngData []byte) *DocumentBuilder + func (b *DocumentBuilder) DrawPNGRotated(x, y, widthPt, heightPt float64, pngData []byte, rotateDeg float64) *DocumentBuilder + func (b *DocumentBuilder) DrawPNGWithOpacity(x, y, widthPt, heightPt float64, pngData []byte, opacity float64) *DocumentBuilder + func (b *DocumentBuilder) DrawParagraph(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawPolygon(pageIndex int, points []float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawPolygonWithState(pageIndex int, points []float64, style LineStyle, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) DrawRect(pageIndex int, x, y, width, height float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawRectWithState(pageIndex int, x, y, width, height float64, style LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawRichText(pageIndex int, rt *RichText, x, y float64) *DocumentBuilder + func (b *DocumentBuilder) DrawRoundedRect(pageIndex int, x, y, width, height, radius float64, style LineStyle) *DocumentBuilder + func (b *DocumentBuilder) DrawRoundedRectWithState(pageIndex int, x, y, width, height, radius float64, style LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedCaption(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedCode(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedCodeBlock(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedFigure(pageIndex int, x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedImageWith(opts ImageOptions) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedJPEG(pageIndex int, x, y, widthPt, heightPt float64, jpegData []byte, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedPNG(pageIndex int, x, y, widthPt, heightPt float64, pngData []byte, alt string) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedParagraphBox(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedQuote(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTaggedQuoteBox(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawText(textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTextBox(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextBoxColored(pageIndex int, textStr string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextCentered(textStr string, cx, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTextCenteredColored(textStr string, cx, y float64, fontName string, fontSize float64, color Color, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextColored(textStr string, x, y float64, fontName string, fontSize float64, color Color) *DocumentBuilder + func (b *DocumentBuilder) DrawTextRight(textStr string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + func (b *DocumentBuilder) DrawTextRightColored(textStr string, x, y float64, fontName string, fontSize float64, color Color, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextRotated(textStr string, x, y float64, fontName string, fontSize float64, color Color, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextWithSpacing(textStr string, x, y float64, fontName string, fontSize float64, color Color, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextWithSpacingScale(textStr string, x, y float64, fontName string, fontSize float64, color Color, ...) *DocumentBuilder + func (b *DocumentBuilder) DrawTextWithStrikethrough(textStr string, x, y float64, fontName string, fontSize float64, color Color) *DocumentBuilder + func (b *DocumentBuilder) DrawTextWithUnderline(textStr string, x, y float64, fontName string, fontSize float64, color Color) *DocumentBuilder + func (b *DocumentBuilder) EndSection() *DocumentBuilder + func (b *DocumentBuilder) EnsureTableRow(tableIndex, rowIndex int, rowHeight float64) + func (b *DocumentBuilder) Err() error + func (b *DocumentBuilder) Executive() *DocumentBuilder + func (b *DocumentBuilder) FillCircle(pageIndex int, cx, cy, radius float64, fill Color) *DocumentBuilder + func (b *DocumentBuilder) FillCircleWithState(pageIndex int, cx, cy, radius float64, fill Color, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) FillEllipse(pageIndex int, cx, cy, rx, ry float64, fill Color) *DocumentBuilder + func (b *DocumentBuilder) FillEllipseWithState(pageIndex int, cx, cy, rx, ry float64, fill Color, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) FillPolygon(pageIndex int, points []float64, fill Color) *DocumentBuilder + func (b *DocumentBuilder) FillPolygonWithState(pageIndex int, points []float64, fill Color, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) FillRect(pageIndex int, x, y, width, height float64, fill Color) *DocumentBuilder + func (b *DocumentBuilder) FillRectWithState(pageIndex int, x, y, width, height float64, fill Color, state GraphicsState) *DocumentBuilder + func (b *DocumentBuilder) FillRoundedRect(pageIndex int, x, y, width, height, radius float64, fill Color) *DocumentBuilder + func (b *DocumentBuilder) FillRoundedRectWithState(pageIndex int, x, y, width, height, radius float64, fill Color, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeCircle(pageIndex int, cx, cy, radius float64, fill Color, stroke LineStyle) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeCircleWithState(pageIndex int, cx, cy, radius float64, fill Color, stroke LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeEllipse(pageIndex int, cx, cy, rx, ry float64, fill Color, stroke LineStyle) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeEllipseWithState(pageIndex int, cx, cy, rx, ry float64, fill Color, stroke LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokePolygon(pageIndex int, points []float64, fill Color, stroke LineStyle) *DocumentBuilder + func (b *DocumentBuilder) FillStrokePolygonWithState(pageIndex int, points []float64, fill Color, stroke LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeRect(pageIndex int, x, y, width, height float64, fill Color, stroke LineStyle) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeRectWithState(pageIndex int, x, y, width, height float64, fill Color, stroke LineStyle, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeRoundedRect(pageIndex int, x, y, width, height, radius float64, fill Color, ...) *DocumentBuilder + func (b *DocumentBuilder) FillStrokeRoundedRectWithState(pageIndex int, x, y, width, height, radius float64, fill Color, ...) *DocumentBuilder + func (b *DocumentBuilder) Flow(opts FlowOptions) *FlowBuilder + func (b *DocumentBuilder) Folio() *DocumentBuilder + func (b *DocumentBuilder) FontByName(name string) font.Font + func (b *DocumentBuilder) GetDefaultPageSize() (float64, float64) + func (b *DocumentBuilder) IsTagged() bool + func (b *DocumentBuilder) Keywords(s string) *DocumentBuilder + func (b *DocumentBuilder) Landscape() *DocumentBuilder + func (b *DocumentBuilder) Ledger() *DocumentBuilder + func (b *DocumentBuilder) Legal() *DocumentBuilder + func (b *DocumentBuilder) Letter() *DocumentBuilder + func (b *DocumentBuilder) MarkTagged() + func (b *DocumentBuilder) Metadata(xmp []byte) *DocumentBuilder + func (b *DocumentBuilder) NextMCID(pageIndex int) int + func (b *DocumentBuilder) NoCompressContent() *DocumentBuilder + func (b *DocumentBuilder) Note() *DocumentBuilder + func (b *DocumentBuilder) PageAt(pageIndex int) *builder.Page + func (b *DocumentBuilder) PageCount() int + func (b *DocumentBuilder) PageHeight(pageIndex int) float64 + func (b *DocumentBuilder) PageSize(width, height float64) *DocumentBuilder + func (b *DocumentBuilder) PageWidth(pageIndex int) float64 + func (b *DocumentBuilder) Portrait() *DocumentBuilder + func (b *DocumentBuilder) Producer(s string) *DocumentBuilder + func (b *DocumentBuilder) Quarto() *DocumentBuilder + func (b *DocumentBuilder) RecordBlock(pageIndex int, mcid int, role string) int + func (b *DocumentBuilder) RecordFigure(pageIndex int, mcid int, alt string) int + func (b *DocumentBuilder) RecordList(pageIndex int, ordered bool, mcids []int) int + func (b *DocumentBuilder) RecordSectionBlock(idx int) + func (b *DocumentBuilder) RecordSectionFigure(idx int) + func (b *DocumentBuilder) RecordSectionList(idx int) + func (b *DocumentBuilder) RecordSectionTable(idx int) + func (b *DocumentBuilder) RegisterFallbackFont(f font.Font) *DocumentBuilder + func (b *DocumentBuilder) RegisterFont(f font.Font) *DocumentBuilder + func (b *DocumentBuilder) SetAcroForm() *DocumentBuilder + func (b *DocumentBuilder) SetAcroFormSigFlags(flags int) *DocumentBuilder + func (b *DocumentBuilder) SetDefaultICCProfile(profile ICCProfile) *DocumentBuilder + func (b *DocumentBuilder) SetDefaultStyle(s TextStyle) *DocumentBuilder + func (b *DocumentBuilder) SetLanguage(lang string) *DocumentBuilder + func (b *DocumentBuilder) SetTagged() *DocumentBuilder + func (b *DocumentBuilder) Statement() *DocumentBuilder + func (b *DocumentBuilder) Subject(s string) *DocumentBuilder + func (b *DocumentBuilder) Table(cols int) ITableBuilder + func (b *DocumentBuilder) TableAt(tableIndex int) bool + func (b *DocumentBuilder) Tabloid() *DocumentBuilder + func (b *DocumentBuilder) Title(s string) *DocumentBuilder + func (b *DocumentBuilder) ValidPageIndex(idx int) bool + func (b *DocumentBuilder) Warnings() []string + type FloatingImage struct + Height float64 + Margin float64 + Width float64 + Wrap style.ImageWrap + X float64 + Y float64 + type FlowBuilder struct + func (f *FlowBuilder) Align(a TextAlignment) *FlowBuilder + func (f *FlowBuilder) Bottom() float64 + func (f *FlowBuilder) Color(c Color) *FlowBuilder + func (f *FlowBuilder) End() *DocumentBuilder + func (f *FlowBuilder) Font(name string) *FlowBuilder + func (f *FlowBuilder) Heading(text string, level int) *FlowBuilder + func (f *FlowBuilder) Image(data []byte, w, h float64) *FlowBuilder + func (f *FlowBuilder) ImageWithLayout(imgData []byte, layout style.ImageLayout, s style.ImageStyle) *FlowBuilder + func (f *FlowBuilder) Left() float64 + func (f *FlowBuilder) Line(width float64, c Color) *FlowBuilder + func (f *FlowBuilder) List(items []string, ordered bool) *FlowBuilder + func (f *FlowBuilder) Paragraph(text string) *FlowBuilder + func (f *FlowBuilder) Rect(h float64, style LineStyle, fill Color, hasFill bool) *FlowBuilder + func (f *FlowBuilder) Right() float64 + func (f *FlowBuilder) Size(size float64) *FlowBuilder + func (f *FlowBuilder) Space(h float64) *FlowBuilder + func (f *FlowBuilder) Table(cols int) ITableBuilder + func (f *FlowBuilder) Width() float64 + type FlowOptions struct + Bottom float64 + Left float64 + Margin float64 + Right float64 + Top float64 + type FormBuilder interface + AddCheckBox func(pageIndex int, llx, lly, urx, ury float64, name string, checked bool, ...) *DocumentBuilder + AddRadioButton func(pageIndex int, llx, lly, urx, ury float64, groupName, value string, ...) *DocumentBuilder + AddSubmitButton func(pageIndex int, llx, lly, urx, ury float64, ...) *DocumentBuilder + AddTextField func(pageIndex int, llx, lly, urx, ury float64, name, value, tooltip string, ...) *DocumentBuilder + SetAcroForm func() *DocumentBuilder + SetAcroFormSigFlags func(flags int) *DocumentBuilder + type GraphicsState = style.GraphicsState + type HeadingObject struct + func (o *HeadingObject) At(x, y float64) *HeadingObject + func (o *HeadingObject) Draw() *Page + type ICCProfile = style.ICCProfile + type ITableBuilder interface + AllowPageBreak func() ITableBuilder + At func(x, y float64) ITableBuilder + CurrentY func() float64 + Done func() *FlowBuilder + Draw func() *DocumentBuilder + EndTable func() *DocumentBuilder + FooterRow func(cells ...TableCellSpec) ITableBuilder + Header func(texts ...string) ITableBuilder + HeaderSpec func(cells ...TableCellSpec) ITableBuilder + Row func(texts ...string) ITableBuilder + RowSpec func(cells ...TableCellSpec) ITableBuilder + Width func(w float64) ITableBuilder + WithAlternateRowColor func(c Color) ITableBuilder + WithColumnWidths func(widths ...float64) ITableBuilder + WithFlow func(f *FlowBuilder) ITableBuilder + WithHeaderFillColor func(c Color) ITableBuilder + WithMargins func(top, bottom float64) ITableBuilder + type ImageBuilder interface + DrawImage func(x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + DrawJPEG func(x, y, widthPt, heightPt float64, jpegData []byte, widthPx, heightPx int, ...) *DocumentBuilder + DrawPNG func(x, y, widthPt, heightPt float64, pngData []byte) *DocumentBuilder + type ImageObject struct + func (o *ImageObject) At(x, y float64) *ImageObject + func (o *ImageObject) ColorSpace(cs string) *ImageObject + func (o *ImageObject) Draw() *Page + func (o *ImageObject) Px(w, h int) *ImageObject + type ImageOptions = imgpkg.Options + type ImageReader interface + ReadImages func() ([]reader.ImageInfo, error) + ReadImagesPerPage func() ([][]reader.ImageInfo, error) + type LayerBuilder interface + BeginLayer func(name string, onByDefault bool) *layer.Handle + DrawInLayer func(lh *layer.Handle, pageIndex int, draw func(db *DocumentBuilder)) *DocumentBuilder + type LayoutReader interface + ReadLayout func() ([]reader.PageLayout, error) + ReadTables func() ([][]reader.Table, error) + type LineCap = style.LineCap + type LineJoin = style.LineJoin + type LineObject struct + func (o *LineObject) Color(c Color) *LineObject + func (o *LineObject) Draw() *Page + func (o *LineObject) Style(s LineStyle) *LineObject + func (o *LineObject) Width(w float64) *LineObject + type LineStyle = style.LineStyle + type ListObject struct + func (o *ListObject) At(x, y float64) *ListObject + func (o *ListObject) Color(c Color) *ListObject + func (o *ListObject) CustomMarker(s string) *ListObject + func (o *ListObject) Draw() *Page + func (o *ListObject) Font(name string) *ListObject + func (o *ListObject) Indent(v float64) *ListObject + func (o *ListObject) Level(l int) *ListObject + func (o *ListObject) LineHeight(h float64) *ListObject + func (o *ListObject) Marker(m style.ListMarker) *ListObject + func (o *ListObject) Ordered(b bool) *ListObject + func (o *ListObject) Size(size float64) *ListObject + type MetadataBuilder interface + Author func(s string) *DocumentBuilder + Creator func(s string) *DocumentBuilder + Keywords func(s string) *DocumentBuilder + Metadata func(xmp []byte) *DocumentBuilder + Producer func(s string) *DocumentBuilder + SetLanguage func(lang string) *DocumentBuilder + Subject func(s string) *DocumentBuilder + Title func(s string) *DocumentBuilder + type OutlineBuilder interface + AddLinkToDest func(pageIndex int, llx, lly, urx, ury float64, destName string) *DocumentBuilder + AddLinkToPage func(pageIndex int, llx, lly, urx, ury float64, destPageIndex int) *DocumentBuilder + AddLinkToURL func(pageIndex int, llx, lly, urx, ury float64, url string) *DocumentBuilder + AddNamedDest func(name string, pageIndex int) *DocumentBuilder + AddOutline func(title string, pageIndex int) *DocumentBuilder + AddOutlineToDest func(title string, destName string) *DocumentBuilder + AddOutlineURL func(title string, url string) *DocumentBuilder + type Page struct + func (p *Page) At(x, y float64) Pt + func (p *Page) BeginSection() *Page + func (p *Page) CurrentY() float64 + func (p *Page) End() *DocumentBuilder + func (p *Page) EndSection() *Page + func (p *Page) Flow(opts FlowOptions) *FlowBuilder + func (p *Page) Heading(text string, level int) *HeadingObject + func (p *Page) Image(data []byte, w, h float64) *ImageObject + func (p *Page) Line(start, end Pt) *LineObject + func (p *Page) List(items []string) *ListObject + func (p *Page) Paragraph(s string) *TextBoxObject + func (p *Page) Rect(rect Rect) *RectObject + func (p *Page) Table(cols int) ITableBuilder + func (p *Page) Text(s string) *TextObject + func (p *Page) TextBox(s string) *TextBoxObject + type PageBuilder interface + AddPage func() *DocumentBuilder + PageSize func(width, height float64) *DocumentBuilder + type PathBuilder struct + func (p *PathBuilder) Arc(cx, cy, rx, ry, startDeg, sweepDeg float64) *PathBuilder + func (p *PathBuilder) ClosePath() *PathBuilder + func (p *PathBuilder) CurveTo(x1, y1, x2, y2, x3, y3 float64) *PathBuilder + func (p *PathBuilder) EndPath() *DocumentBuilder + func (p *PathBuilder) Fill(color Color) *DocumentBuilder + func (p *PathBuilder) FillStroke(fill Color, stroke LineStyle) *DocumentBuilder + func (p *PathBuilder) FillStrokeWithState(fill Color, stroke LineStyle, state GraphicsState) *DocumentBuilder + func (p *PathBuilder) FillWithState(color Color, state GraphicsState) *DocumentBuilder + func (p *PathBuilder) LineTo(x, y float64) *PathBuilder + func (p *PathBuilder) MoveTo(x, y float64) *PathBuilder + func (p *PathBuilder) Rect(x, y, w, h float64) *PathBuilder + func (p *PathBuilder) RoundedRect(x, y, w, h, r float64) *PathBuilder + func (p *PathBuilder) Stroke(style LineStyle) *DocumentBuilder + func (p *PathBuilder) StrokeWithState(style LineStyle, state GraphicsState) *DocumentBuilder + type Pt struct + X float64 + Y float64 + func At(x, y float64) Pt + type Rect struct + H float64 + W float64 + X float64 + Y float64 + func R(x, y, w, h float64) Rect + type RectObject struct + func (o *RectObject) Draw() *Page + func (o *RectObject) Fill(c Color) *RectObject + func (o *RectObject) Stroke(s LineStyle) *RectObject + type RichText struct + Segments []RichTextSegment + func NewRichText() *RichText + func (rt *RichText) Add(text string, style TextStyle) *RichText + func (rt *RichText) AddSimple(text string) *RichText + type RichTextSegment struct + Style TextStyle + Text string + type Saver interface + Save func(w io.Writer) error + SaveLinearized func(ws writer.WriteSeeker) error + SaveWithAES256Password func(w io.Writer, userPassword, ownerPassword string) error + SaveWithPassword func(w io.Writer, userPassword, ownerPassword string) error + type TableBuilder struct + AlternateRowColor Color + HasAlternateRowColor bool + HasHeaderFillColor bool + HeaderFillColor Color + func (t *TableBuilder) AllowPageBreak() ITableBuilder + func (t *TableBuilder) At(x, y float64) ITableBuilder + func (t *TableBuilder) CurrentY() float64 + func (t *TableBuilder) Done() *FlowBuilder + func (t *TableBuilder) Draw() *DocumentBuilder + func (t *TableBuilder) EndTable() *DocumentBuilder + func (t *TableBuilder) FooterRow(cells ...TableCellSpec) ITableBuilder + func (t *TableBuilder) Header(texts ...string) ITableBuilder + func (t *TableBuilder) HeaderSpec(cells ...TableCellSpec) ITableBuilder + func (t *TableBuilder) Row(texts ...string) ITableBuilder + func (t *TableBuilder) RowSpec(cells ...TableCellSpec) ITableBuilder + func (t *TableBuilder) Width(w float64) ITableBuilder + func (t *TableBuilder) WithAlternateRowColor(c Color) ITableBuilder + func (t *TableBuilder) WithColumnWidths(widths ...float64) ITableBuilder + func (t *TableBuilder) WithFlow(f *FlowBuilder) ITableBuilder + func (t *TableBuilder) WithHeaderFillColor(c Color) ITableBuilder + func (t *TableBuilder) WithMargins(top, bottom float64) ITableBuilder + type TableBuilderAPI interface + BeginTable func(pageIndex int, x, y, width, height float64, cols int) ITableBuilder + type TableCellImageSpec = table.CellImageSpec + type TableCellSpec = table.CellSpec + type TaggedContentBuilder interface + BeginSection func() *DocumentBuilder + DrawTaggedCaption func(pageIndex int, text string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + DrawTaggedCode func(pageIndex int, text string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + DrawTaggedCodeBlock func(pageIndex int, text string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + DrawTaggedQuote func(pageIndex int, text string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + DrawTaggedQuoteBox func(pageIndex int, text string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + EndSection func() *DocumentBuilder + SetTagged func() *DocumentBuilder + type TaggedImageBuilder interface + DrawTaggedFigure func(pageIndex int, x, y, widthPt, heightPt float64, raw []byte, ...) *DocumentBuilder + DrawTaggedJPEG func(pageIndex int, x, y, widthPt, heightPt float64, jpegData []byte, ...) *DocumentBuilder + DrawTaggedPNG func(pageIndex int, x, y, widthPt, heightPt float64, pngData []byte, alt string) *DocumentBuilder + type TextAlign = text.Align + type TextAlignment int + const AlignCenter + const AlignJustify + const AlignLeft + const AlignRight + type TextBoxObject struct + func (o *TextBoxObject) Align(align TextAlignment) *TextBoxObject + func (o *TextBoxObject) AsCode() *TextBoxObject + func (o *TextBoxObject) AsParagraph() *TextBoxObject + func (o *TextBoxObject) AsQuote() *TextBoxObject + func (o *TextBoxObject) At(x, y float64) *TextBoxObject + func (o *TextBoxObject) Color(c Color) *TextBoxObject + func (o *TextBoxObject) Draw() *Page + func (o *TextBoxObject) Font(name string) *TextBoxObject + func (o *TextBoxObject) LetterSpacing(spacing float64) *TextBoxObject + func (o *TextBoxObject) LineHeight(h float64) *TextBoxObject + func (o *TextBoxObject) Size(size float64) *TextBoxObject + func (o *TextBoxObject) Style(s TextStyle) *TextBoxObject + func (o *TextBoxObject) Width(w float64) *TextBoxObject + type TextBuilder interface + DrawHeading func(pageIndex int, level int, text string, x, y float64, fontName string, ...) *DocumentBuilder + DrawList func(pageIndex int, items []string, x, y, lineHeight float64, ordered bool, ...) *DocumentBuilder + DrawParagraph func(pageIndex int, text string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + DrawTaggedParagraphBox func(pageIndex int, text string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + DrawText func(text string, x, y float64, fontName string, fontSize float64) *DocumentBuilder + DrawTextBox func(pageIndex int, text string, x, y float64, fontName string, fontSize float64, ...) *DocumentBuilder + type TextLayoutOptions = text.LayoutOptions + type TextObject struct + func (o *TextObject) Align(a TextAlignment) *TextObject + func (o *TextObject) At(x, y float64) *TextObject + func (o *TextObject) Color(c Color) *TextObject + func (o *TextObject) Draw() *Page + func (o *TextObject) Font(name string) *TextObject + func (o *TextObject) LetterSpacing(spacing float64) *TextObject + func (o *TextObject) Size(size float64) *TextObject + func (o *TextObject) Style(s TextStyle) *TextObject + type TextStyle struct + Color Color + FontName string + FontSize float64 + HorizontalScale float64 + IsVertical bool + Leading float64 + LetterSpacing float64 + Rotation float64 + SyntheticBold bool + SyntheticItalic bool + WordSpacing float64 + func DefaultTextStyle() TextStyle + func (s TextStyle) Font(name string) TextStyle + func (s TextStyle) Size(size float64) TextStyle + func (s TextStyle) WithColor(c Color) TextStyle + func (s TextStyle) WithHorizontalScale(scale float64) TextStyle + func (s TextStyle) WithLeading(leading float64) TextStyle + func (s TextStyle) WithLetterSpacing(spacing float64) TextStyle + func (s TextStyle) WithRotation(deg float64) TextStyle + func (s TextStyle) WithWordSpacing(spacing float64) TextStyle