pdfcomment

package module
v0.0.0-...-c208576 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2020 License: AGPL-3.0 Imports: 7 Imported by: 6 modules, 4 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.

README

pdfcomment

get pdf comments out of doc / construct flattened versions

Why

Since editors don't respect read-only settings, we need to flatten text annotations

Formatting

for a proper sticky note ...

// NewParagraph creates a new text paragraph.
// Default attributes:
// Font: Helvetica,
// Font size: 10
// Encoding: WinAnsiEncoding
// Wrap: enabled
// Text color: black
func (c *Creator) NewParagraph(text string) *Paragraph {
	return newParagraph(text, c.NewTextStyle())
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawComment

func DrawComment(c *creator.Creator, comment Comment, label string, X, Y float64)

func DrawMarker

func DrawMarker(c *creator.Creator, comment Comment, label string)

func DrawText

func DrawText(c *creator.Creator, comment Comment, label string, X, Y float64)

Types

type Comment

type Comment struct {
	Pos  geo.Point
	Text string
	Page int
}

type Comments

type Comments map[int][]Comment

func GetComments

func GetComments(reader *pdf.PdfReader) (Comments, error)

func (Comments) GetByPage

func (c Comments) GetByPage(page int) []Comment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址