Versions in this module Expand all Collapse all v0 v0.1.3 Sep 24, 2026 Changes in this version + type AnnotationBoundary struct + Height float64 + Width float64 + X float64 + Y float64 + type AnnotationInfo struct + Boundary *AnnotationBoundary + Creator string + Dest *OutlineDest + ID string + LastModDate string + Page int + Remark string + Scope int + Subtype string + TargetPage int + Type string + URI string + Visible bool + type AttachmentInfo struct + ActualSize int64 + Exists bool + Format string + HasSize bool + ID string + Name string + Scope int + Size int64 + Usage string + Visible bool + type Bookmark struct + Dest *OutlineDest + Name string + Page int + type CertificateDetail struct + Algorithm string + CertificateValid bool + CommonName string + Country string + Error string + Issuer string + Locality string + NotAfter string + NotBefore string + Organization string + OrganizationalUnit string + Province string + PublicKey string + RevocationChecked bool + RevocationError string + RevocationStatus string + SerialNumber string + SignatureFormat string + SignatureValid bool + Slot string + SlotKey string + Subject string + TrustChecked bool + TrustError string + Trusted bool + type DocumentStats struct + AnnotationPages int + Attachments int + Fonts int + Media int + Signatures int + type FontInfo struct + Bold bool + Embedded bool + Family string + FixedWidth bool + Format string + ID uint64 + Italic bool + Name string + Scope int + Serif bool + type FontRef struct + ID uint64 + Scope int + type FontUsage struct + Pages []int + Scanned int + Truncated bool + type FontUsageOptions struct + MaxPages int + MaxScan int + type FontUsageReport struct + Fonts []FontUsageSummary + Scanned int + Truncated bool + type FontUsageSummary struct + ID uint64 + Pages []int + Scope int + type MediaInfo struct + Exists bool + Format string + ID uint64 + Name string + Scope int + Size int64 + Type string + type OutlineDest struct + Bottom *float64 + Left *float64 + Right *float64 + Top *float64 + Type string + Zoom *float64 + type OutlineNode struct + Children []OutlineNode + Dest *OutlineDest + Expanded *bool + Page int + Title string + URI string + type OutlineTree struct + Bookmarks []Bookmark + Nodes []OutlineNode + PageMode string + type PageLink struct + Boundary AnnotationBoundary + Dest *OutlineDest + ID string + Page int + Scope int + TargetPage int + URI string type Reader + func (r *Reader) Annotations() ([]AnnotationInfo, error) + func (r *Reader) AttachmentData(scope int, id string, maxBytes int64) ([]byte, error) + func (r *Reader) Attachments() ([]AttachmentInfo, error) + func (r *Reader) FontList() ([]FontInfo, error) + func (r *Reader) FontUsage(ref FontRef, options FontUsageOptions) (FontUsage, error) + func (r *Reader) FontUsageAll(options FontUsageOptions) (FontUsageReport, error) + func (r *Reader) Media() ([]MediaInfo, error) + func (r *Reader) MediaData(scope int, mediaID uint64, maxBytes int64) ([]byte, error) + func (r *Reader) Outline() (OutlineTree, error) + func (r *Reader) PageLinks() ([]PageLink, error) + func (r *Reader) Preferences() (ViewPreferences, error) + func (r *Reader) RemoveFallbackFont(family string) error + func (r *Reader) SignatureCertificate(scope int, signatureID string, slot string) ([]byte, error) + func (r *Reader) SignatureSeal(scope int, signatureID string, stampIndex int) ([]byte, string, error) + func (r *Reader) SignatureValue(scope int, signatureID string) ([]byte, error) + func (r *Reader) Signatures() ([]SignatureInfo, error) + func (r *Reader) Stats() (DocumentStats, error) + type SignatureInfo struct + Certificates []CertificateDetail + Company string + DataHashMatch bool + Date string + DigestMethod string + DigestValid bool + HasDataHash bool + HasDigest bool + HasVerification bool + ID string + Method string + Provider string + References []SignatureReference + Scope int + Stamps []SignatureStamp + TrustChecked bool + Trusted bool + VerificationError string + Verified bool + Version string + type SignatureReference struct + Error string + Exists bool + FileRef string + Match bool + type SignatureStamp struct + Boundary *AnnotationBoundary + HasSeal bool + ID string + Page int + SealType string type TextRun + Scope int + type ViewPreferences struct + PageLayout string + Zoom *float64 + ZoomMode string v0.1.2 Sep 19, 2026 Changes in this version + func RegisterFallbackFont(source FontSource) error type Reader + func (r *Reader) RenderPDFTo(output io.Writer, indices []int, options RenderOptions) (err error) + func (r *Reader) UseFallbackFont(family string) error v0.1.1 Sep 15, 2026 Changes in this version + type DocumentInfo struct + Abstract string + Author string + CreationDate string + Creator string + DocID string + ModDate string + Subject string + Title string + Version string type OpenOptions + PageCacheBytes int64 + PageCacheCapacity int type Reader + func (r *Reader) Info() (DocumentInfo, error) + type RenderFormat string + const RenderJPG + const RenderPNG + const RenderSVG type RenderOptions + Format RenderFormat v0.1.0 Sep 12, 2026 v0.0.9 Sep 10, 2026 Changes in this version + type FontResource struct + Bold bool + Data []byte + Family string + Format string + ID uint64 + Italic bool + Name string + type FontSource struct + Data []byte + Family string + Italic bool + Name string + Weight int + type Glyph struct + Angle float64 + Height float64 + Text string + Width float64 + X float64 + Y float64 + type OpenOptions struct + FallbackFonts []FontSource + type PageInfo struct + Height float64 + Index int + Width float64 + type Reader struct + func Open(data []byte) (*Reader, error) + func OpenWithOptions(data []byte, options OpenOptions) (*Reader, error) + func (r *Reader) AddFallbackFont(source FontSource) error + func (r *Reader) Close() error + func (r *Reader) Fonts() ([]FontResource, error) + func (r *Reader) Page(index int) (PageInfo, error) + func (r *Reader) PageCount() int + func (r *Reader) Pages() ([]PageInfo, error) + func (r *Reader) RenderPDF(indices []int, options RenderOptions) (outputBytes []byte, err error) + func (r *Reader) RenderPage(index int, options RenderOptions) ([]byte, error) + func (r *Reader) RenderPages(indices []int, options RenderOptions) ([][]byte, error) + func (r *Reader) Search(query string) ([]SearchResult, error) + func (r *Reader) Text(index int) ([]TextRun, error) + type Rect struct + Angle float64 + Height float64 + Width float64 + X float64 + Y float64 + type RenderOptions struct + Background color.Color + DPI float64 + type SearchResult struct + End int + Page int + Rects []Rect + Run int + Start int + Text string + type TextRun struct + Bold bool + CharDirection int + Font uint64 + FontFamily string + Glyphs []Glyph + Height float64 + Italic bool + ReadDirection int + Size float64 + Text string + Weight int + Width float64 + X float64 + Y float64