From d6e1cb61da7a9155023ce9dece96da79c7246790 Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 11 Mar 2022 10:17:24 +0000 Subject: Name PDF extracted images so they sort correctly --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 14f0053..83153c6 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -376,7 +376,7 @@ func extractPdfImgs(ctx context.Context, path string) (string, error) { continue } - fn := fmt.Sprintf("%s-%04d.jpg", k, pgnum) + fn := fmt.Sprintf("%04d-%s.jpg", pgnum, k) path := filepath.Join(tempdir, fn) w, err := os.Create(path) defer w.Close() -- cgit v1.2.1-24-ge1ad