package
0.1.14
Repository: https://github.com/trussworks/pdfcpu.git
Documentation: pkg.go.dev

# Functions

AddAttachments embeds files into a PDF.
AddAttachmentsCommand creates a new AddAttachmentsCommand.
AddPermissions sets the user access permissions.
AddPermissionsCommand creates a new AddPermissionsCommand.
ChangeOwnerPassword of fileIn and write result to fileOut.
ChangeOwnerPWCommand creates a new ChangeOwnerPWCommand.
ChangeUserPassword of fileIn and write result to fileOut.
ChangeUserPWCommand creates a new ChangeUserPWCommand.
Decrypt fileIn and write result to fileOut.
DecryptCommand creates a new DecryptCommand.
Encrypt fileIn and write result to fileOut.
EncryptCommand creates a new EncryptCommand.
ExtractAttachments extracts embedded files from a PDF.
ExtractAttachmentsCommand creates a new ExtractAttachmentsCommand.
ExtractContent dumps "PDF source" files from fileIn into dirOut for selected pages.
ExtractContentCommand creates a new ExtractContentCommand.
ExtractFonts dumps embedded fontfiles from fileIn into dirOut for selected pages.
ExtractFontsCommand creates a new ExtractFontsCommand.
ExtractImages dumps embedded image resources from fileIn into dirOut for selected pages.
ExtractImagesCommand creates a new ExtractImagesCommand.
ExtractPages generates single page PDF files from fileIn in dirOut for selected pages.
ExtractPagesCommand creates a new ExtractPagesCommand.
ListAttachments returns a list of embedded file attachments.
ListAttachmentsCommand create a new ListAttachmentsCommand.
ListPermissions returns a list of user access permissions.
ListPermissionsCommand create a new ListPermissionsCommand.
Merge some PDF files together and write the result to fileOut.
MergeCommand creates a new MergeCommand.
Optimize reads in fileIn, does validation, optimization and writes the result to fileOut.
OptimizeCommand creates a new OptimizeCommand.
ParsePageSelection ensures a correct page selection expression.
Process executes a pdfcpu command.
Read reads in a PDF file and builds an internal structure holding its cross reference table aka the PDFContext.
RemoveAttachments deletes embedded files from a PDF.
RemoveAttachmentsCommand creates a new RemoveAttachmentsCommand.
Split generates a sequence of single page PDF files in dirOut creating one file for every page of inFile.
SplitCommand creates a new SplitCommand.
Trim generates a trimmed version of fileIn containing all pages selected.
TrimCommand creates a new TrimCommand.
Validate validates a PDF file against ISO-32000-1:2008.
ValidateCommand creates a new ValidateCommand.
Write generates a PDF file for a given PDFContext.

# Structs

Command represents an execution context.