mooonpdf

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

mooonpdf 依赖开源的 pdf 库 go-fitz,而 go-fitz 又依赖开源的 c 库 mupdf,对 ld 版本要求,2.23 版本的 ld 编译报错:

go/pkg/mod/github.com/gen2brain/go-fitz@v1.22.2/libs/libmupdf_linux_amd64.a(colorspace.o): unrecognized relocation (0x2a) in section `.text.fz_find_icc_link'

需要将 ld 升级到 2.28 版本。ld 在开源的 binutils 中,下载地址:

https://ftp.gnu.org/gnu/binutils/

另外种方式从重新编译 mupdf 开始:

https://github.com/ArtifexSoftware/mupdf

而 mupdf 又依赖 ghostpdl:

https://github.com/plangrid/ghostpdl/tree/master

所有最好是通过升级 binutils 的方式解决。

Documentation

Overview

Package mooonpdf Wrote by yijian on 2024/10/24

Package mooonpdf Wrote by yijian on 2024/10/24

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Jpg2Png

func Jpg2Png(jpgFilepath string) (string, error)

Jpg2Png 将 jpg 文件转为 png 文件

func Pdf2Jpg

func Pdf2Jpg(pdfFilepath string) ([]string, error)

func Pdf2Png

func Pdf2Png(pdfFilepath string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL