Discover Packages
github.com/xingcxb/goKit
plugin
pdfKit
package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Apr 21, 2025
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Compress(file)
Jpg2Pdf(filePath, outPath)
Merge(mergeFilePath, dividerPage, outFilePath)
Office2Pdf(file, path)
Pdf2Jpg(file, path)
Pdf2Office(file, officeType, path)
PdfEncrypt(inFile, outFile, userPwd, ownerPwd)
Split(file)
Watermark(file, imgPath)
Types
Source Files
Documentation
Documentation
¶
func Compress(file string) string
func Jpg2Pdf(filePath []string, outPath string) error
func Merge(mergeFilePath []string, dividerPage bool, outFilePath string) error
func Office2Pdf(file, path string) bool
func Pdf2Jpg(file, path string) bool
func Pdf2Office(file, officeType, path string) bool
func PdfEncrypt(inFile, outFile, userPwd, ownerPwd string) (bool, error)
func Split(file string) string
func Watermark(file, imgPath string) bool
Jpg2Pdf 将jpg转换为pdf
@param file {[]string} jpg文件
@param path {string} 保存路径
Merge 合并两个pdf文件,file1是文章的开始
@param mergeFilePath 要合并pdf文件路径
@param dividerPage 分隔页
@param outFilePath 输出文件
Office2Pdf 将office转换为pdf
@param file office文件
@param path 保存路径
Pdf2Jpg 将pdf转换为jpg
@param file pdf文件
@param path 保存路径
func Pdf2Office(file, officeType, path string ) bool
Pdf2Office 将pdf转换为office
@param file pdf文件
@param officeType office类型 word, excel, ppt
@param path 保存路径
PdfEncrypt pdf加密
@param file pdf文件
@param outFile 输出文件
@param userPwd 用户密码(仅拥有查看的权限),若为空,则默认为userPwd
@param ownerPwd 所有者密码
Split 拆分pdf,将pdf中的页面拆分成多个pdf
Watermark pdf添加水印
@param file pdf文件
@param imgPath 水印
Source Files
¶
Click to show internal directories.
Click to hide internal directories.