diff --git a/pages.go b/pages.go index 333d27b..288d8d1 100644 --- a/pages.go +++ b/pages.go @@ -40,8 +40,11 @@ func ConvertPages(input io.Reader) (string, map[string]string) { archiveInfoData, err := ioutil.ReadAll(io.LimitReader(bReader, archiveLength)) archiveInfo := &TSP.ArchiveInfo{} err = proto.Unmarshal(archiveInfoData, archiveInfo) - fmt.Println("archiveInfo:", archiveInfo, err) + } else if f.Name == "QuickLook/Preview.pdf" { + rc, _ := f.Open() + defer rc.Close() + return ConvertPdf(rc) } }