remove pdf dependency and replace with pdftotext...

This commit is contained in:
2025-04-22 19:56:59 +02:00
parent 121f340730
commit ba8a9023ea
3 changed files with 137 additions and 170 deletions

View File

@@ -66,10 +66,7 @@ func createPreview(filePath string, ftype pb.FileType, client pb.ThumbnailServic
MaxHeight: 150,
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
defer cancel()
resp, err := client.GenerateThumbnail(ctx, req)
resp, err := client.GenerateThumbnail(context.Background(), req)
if err != nil {
log.Fatalf("Error calling GenerateThumbnail: %v", err)
}