pdfKit

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(file string) string

Compress 压缩pdf

  • @param file pdf文件

func Jpg2Pdf

func Jpg2Pdf(file, path string) bool

Jpg2Pdf 将jpg转换为pdf

  • @param file jpg文件
  • @param path 保存路径

func Merge

func Merge(file1, file2 string) string

Merge 合并两个pdf文件,file1是文章的开始

  • @param file1 pdf文件1
  • @param file2 pdf文件2

func Office2Pdf

func Office2Pdf(file, path string) bool

Office2Pdf 将office转换为pdf

  • @param file office文件
  • @param path 保存路径

func Pdf2Jpg

func Pdf2Jpg(file, path string) bool

Pdf2Jpg 将pdf转换为jpg

  • @param file pdf文件
  • @param path 保存路径

func Pdf2Office

func Pdf2Office(file, officeType, path string) bool

Pdf2Office 将pdf转换为office

  • @param file pdf文件
  • @param officeType office类型 word, excel, ppt
  • @param path 保存路径

func PdfEncrypt

func PdfEncrypt(inFile, outFile, userPwd, ownerPwd string) (bool, error)

PdfEncrypt pdf加密

  • @param file pdf文件
  • @param outFile 输出文件
  • @param userPwd 用户密码(仅拥有查看的权限),若为空,则默认为userPwd
  • @param ownerPwd 所有者密码

func Split

func Split(file string) string

Split 拆分pdf,将pdf中的页面拆分成多个pdf

  • @param file pdf文件

func Watermark

func Watermark(file, imgPath string) bool

Watermark pdf添加水印

  • @param file pdf文件
  • @param imgPath 水印

Types

This section is empty.

Jump to

Keyboard shortcuts

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