thumbnailer icon indicating copy to clipboard operation
thumbnailer copied to clipboard

PDF processing

Open bakape opened this issue 6 years ago • 4 comments

bakape avatar Feb 02 '19 14:02 bakape

I have a wrapper for MuPDF here https://github.com/gen2brain/go-fitz that can be used for extracting the cover image. It uses static libraries bundled in the repo. Not sure if there is something similar that can extract Image from PDF in native Go, but here CGO is used anyway.

gen2brain avatar Mar 03 '19 09:03 gen2brain

Thanks, I'll look into integration, when I have more time for it. Does your library support building in Go modules? I've had some problems, with C sources/libs being located in a subdirectory in the past.

bakape avatar Mar 03 '19 10:03 bakape

I didn't try yet, but there should be no problems. I know there are issues when libs are in git submodule, but not sure what happens with ${SRCDIR} that is used.

gen2brain avatar Mar 03 '19 11:03 gen2brain

${SRCDIR} is exactly what I had problems with in the past. Maybe this changed with Go 1.12.

On Sun, 3 Mar 2019, 13:04 Milan Nikolic, [email protected] wrote:

I didn't try yet, but there should be no problems. I know there are issues when libs are in git submodule, but not sure what happens with ${SRCDIR} that is used.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/bakape/thumbnailer/issues/45#issuecomment-469011920, or mute the thread https://github.com/notifications/unsubscribe-auth/AHfPsKhzON5jcm9PkNWHHuK6W7at-wJ4ks5vS6w2gaJpZM4afmsz .

bakape avatar Mar 03 '19 11:03 bakape