@@ -60,6 +60,7 @@ func ChangeOwnerPassword(cmd *Command) ([]string, error) {
6060// ListPermissions of inFile.
6161func ListPermissions (cmd * Command ) ([]string , error ) {
6262 return api .ListPermissionsFile (* cmd .InFile , cmd .Conf )
63+ // TODO turn struct into []string
6364}
6465
6566// SetPermissions of inFile.
@@ -161,6 +162,7 @@ func ExtractMetadata(cmd *Command) ([]string, error) {
161162// ListAttachments returns a list of embedded file attachments for inFile.
162163func ListAttachments (cmd * Command ) ([]string , error ) {
163164 return api .ListAttachmentsFile (* cmd .InFile , cmd .Conf )
165+ // TODO turn struct into []string
164166}
165167
166168// AddAttachments embeds inFiles into a PDF context read from inFile and writes the result to outFile.
@@ -181,6 +183,7 @@ func ExtractAttachments(cmd *Command) ([]string, error) {
181183// Info gathers information about inFile and returns the result as []string.
182184func Info (cmd * Command ) ([]string , error ) {
183185 return api .InfoFiles (cmd .InFiles , cmd .PageSelection , cmd .Conf )
186+ // TODO turn struct into []string
184187}
185188
186189// CreateCheatSheetsFonts creates single page PDF cheat sheets for user fonts in current dir.
@@ -191,6 +194,7 @@ func CreateCheatSheetsFonts(cmd *Command) ([]string, error) {
191194// ListFonts gathers information about supported fonts and returns the result as []string.
192195func ListFonts (cmd * Command ) ([]string , error ) {
193196 return api .ListFonts ()
197+ // TODO turn struct into []string
194198}
195199
196200// InstallFonts installs True Type fonts into the pdfcpu pconfig dir.
@@ -201,6 +205,7 @@ func InstallFonts(cmd *Command) ([]string, error) {
201205// ListKeywords returns a list of keywords for inFile.
202206func ListKeywords (cmd * Command ) ([]string , error ) {
203207 return api .ListKeywordsFile (* cmd .InFile , cmd .Conf )
208+ // TODO turn struct into []string
204209}
205210
206211// AddKeywords adds keywords to inFile's document info dict and writes the result to outFile.
@@ -216,6 +221,7 @@ func RemoveKeywords(cmd *Command) ([]string, error) {
216221// ListProperties returns inFile's properties.
217222func ListProperties (cmd * Command ) ([]string , error ) {
218223 return api .ListPropertiesFile (* cmd .InFile , cmd .Conf )
224+ // TODO turn struct into []string
219225}
220226
221227// AddProperties adds properties to inFile's document info dict and writes the result to outFile.
@@ -236,6 +242,7 @@ func Collect(cmd *Command) ([]string, error) {
236242// ListBoxes returns inFile's page boundaries.
237243func ListBoxes (cmd * Command ) ([]string , error ) {
238244 return api .ListBoxesFile (* cmd .InFile , cmd .PageSelection , cmd .PageBoundaries , cmd .Conf )
245+ // TODO turn struct into []string
239246}
240247
241248// AddBoxes adds page boundaries to inFile's page tree and writes the result to outFile.
@@ -256,6 +263,7 @@ func Crop(cmd *Command) ([]string, error) {
256263// ListAnnotations returns inFile's page annotations.
257264func ListAnnotations (cmd * Command ) ([]string , error ) {
258265 _ , ss , err := api .ListAnnotationsFile (* cmd .InFile , cmd .PageSelection , cmd .Conf )
266+ // TODO turn struct into []string
259267 return ss , err
260268}
261269
@@ -268,6 +276,7 @@ func RemoveAnnotations(cmd *Command) ([]string, error) {
268276// ListImages returns inFiles embedded images.
269277func ListImages (cmd * Command ) ([]string , error ) {
270278 return api .ListImagesFile (cmd .InFiles , cmd .PageSelection , cmd .Conf )
279+ // turn struct into []string
271280}
272281
273282// Dump known object to stdout.
@@ -286,6 +295,7 @@ func Create(cmd *Command) ([]string, error) {
286295// ListFormFields returns inFile's form field ids.
287296func ListFormFields (cmd * Command ) ([]string , error ) {
288297 return api .ListFormFieldsFile (cmd .InFiles , cmd .Conf )
298+ // TODO turn struct into []string
289299}
290300
291301// RemoveFormFields removes some form fields from inFile.
0 commit comments