Versions in this module Expand all Collapse all v1 v1.1.2 Nov 21, 2019 v1.1.1 Nov 10, 2019 v1.1.0 Nov 10, 2019 v1.0.0 Oct 1, 2019 Changes in this version + func AddAttachments(fileIn string, files []string, config *pdf.Configuration) error + func AddPermissions(fileIn string, config *pdf.Configuration) error + func AddWatermarks(cmd *Command) ([]string, error) + func ChangeOwnerPassword(cmd *Command) ([]string, error) + func ChangeUserPassword(cmd *Command) ([]string, error) + func Decrypt(cmd *Command) ([]string, error) + func Encrypt(cmd *Command) ([]string, error) + func ExtractAttachments(fileIn, dirOut string, files []string, config *pdf.Configuration) error + func ExtractContent(cmd *Command) ([]string, error) + func ExtractFonts(cmd *Command) ([]string, error) + func ExtractImages(cmd *Command) ([]string, error) + func ExtractMetadata(cmd *Command) ([]string, error) + func ExtractPages(cmd *Command) ([]string, error) + func ImportImages(cmd *Command) ([]string, error) + func InsertPages(cmd *Command) ([]string, error) + func ListAttachments(fileIn string, config *pdf.Configuration) ([]string, error) + func ListPermissions(fileIn string, config *pdf.Configuration) ([]string, error) + func Merge(cmd *Command) ([]string, error) + func MergeContexts(rsc []pdf.ReadSeekerCloser, config *pdf.Configuration) (*pdf.Context, error) + func NUp(cmd *Command) ([]string, error) + func Optimize(cmd *Command) ([]string, error) + func OptimizeContext(ctx *pdf.Context) error + func ParsePageSelection(s string) ([]string, error) + func Process(cmd *Command) (out []string, err error) + func ReadContext(rs io.ReadSeeker, fileIn string, fileSize int64, config *pdf.Configuration) (*pdf.Context, error) + func ReadContextFromFile(fileIn string, config *pdf.Configuration) (*pdf.Context, error) + func RemoveAttachments(fileIn string, files []string, config *pdf.Configuration) error + func RemovePages(cmd *Command) ([]string, error) + func Rotate(cmd *Command) ([]string, error) + func Split(cmd *Command) ([]string, error) + func Trim(cmd *Command) ([]string, error) + func Validate(cmd *Command) ([]string, error) + func ValidateContext(ctx *pdf.Context) error + func Write(ctx *pdf.Context) error + func WriteContext(ctx *pdf.Context, w io.Writer) error + type Command struct + Config *pdf.Configuration + Import *pdf.Import + InDir *string + InFile *string + InFiles []string + Mode pdf.CommandMode + NUp *pdf.NUp + OutDir *string + OutFile *string + PWNew *string + PWOld *string + PageSelection []string + Rotation int + Span int + Watermark *pdf.Watermark + func AddAttachmentsCommand(pdfFileNameIn string, fileNamesIn []string, config *pdf.Configuration) *Command + func AddPermissionsCommand(pdfFileNameIn string, config *pdf.Configuration) *Command + func AddWatermarksCommand(pdfFileNameIn, pdfFileNameOut string, pageSelection []string, ...) *Command + func ChangeOwnerPWCommand(pdfFileNameIn, pdfFileNameOut string, config *pdf.Configuration, ...) *Command + func ChangeUserPWCommand(pdfFileNameIn, pdfFileNameOut string, config *pdf.Configuration, ...) *Command + func DecryptCommand(pdfFileNameIn, pdfFileNameOut string, config *pdf.Configuration) *Command + func EncryptCommand(pdfFileNameIn, pdfFileNameOut string, config *pdf.Configuration) *Command + func ExtractAttachmentsCommand(pdfFileNameIn, dirNameOut string, fileNamesIn []string, ...) *Command + func ExtractContentCommand(pdfFileNameIn, dirNameOut string, pageSelection []string, ...) *Command + func ExtractFontsCommand(pdfFileNameIn, dirNameOut string, pageSelection []string, ...) *Command + func ExtractImagesCommand(pdfFileNameIn, dirNameOut string, pageSelection []string, ...) *Command + func ExtractMetadataCommand(pdfFileNameIn, dirNameOut string, config *pdf.Configuration) *Command + func ExtractPagesCommand(pdfFileNameIn, dirNameOut string, pageSelection []string, ...) *Command + func ImportImagesCommand(imageFileNamesIn []string, pdfFileNameOut string, imp *pdf.Import, ...) *Command + func InsertPagesCommand(pdfFileNameIn, pdfFileNameOut string, pageSelection []string, ...) *Command + func ListAttachmentsCommand(pdfFileNameIn string, config *pdf.Configuration) *Command + func ListPermissionsCommand(pdfFileNameIn string, config *pdf.Configuration) *Command + func MergeCommand(pdfFileNamesIn []string, pdfFileNameOut string, config *pdf.Configuration) *Command + func NUpCommand(fileNamesIn []string, pdfFileNameOut string, pageSelection []string, ...) *Command + func OptimizeCommand(pdfFileNameIn, pdfFileNameOut string, config *pdf.Configuration) *Command + func RemoveAttachmentsCommand(pdfFileNameIn string, fileNamesIn []string, config *pdf.Configuration) *Command + func RemovePagesCommand(pdfFileNameIn, pdfFileNameOut string, pageSelection []string, ...) *Command + func RotateCommand(pdfFileNameIn string, rotation int, pageSelection []string, ...) *Command + func SplitCommand(pdfFileNameIn, dirNameOut string, span int, config *pdf.Configuration) *Command + func TrimCommand(pdfFileNameIn, pdfFileNameOut string, pageSelection []string, ...) *Command + func ValidateCommand(pdfFileName string, config *pdf.Configuration) *Command