Documentation
¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Merge ¶
Merge 合并两个pdf文件,file1是文章的开始
- @param mergeFilePath 要合并pdf文件路径
- @param dividerPage 分隔页
- @param outFilePath 输出文件
func Pdf2Office ¶
Pdf2Office 将pdf转换为office
- @param file pdf文件
- @param officeType office类型 word, excel, ppt
- @param path 保存路径
func PdfEncrypt ¶
PdfEncrypt pdf加密
- @param file pdf文件
- @param outFile 输出文件
- @param userPwd 用户密码(仅拥有查看的权限),若为空,则默认为userPwd
- @param ownerPwd 所有者密码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.