The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
mosliu

捏了个 word、excel、ppt 转换 pdf,并对输出的 pdf 加水印加密的小轮子

  •  
  •   mosliu ·
    mosliu · Dec 26, 2017 · 2306 views
    This topic created in 3144 days ago, the information mentioned may be changed or developed.
    工作中经常输出资料,有时候需要输出资料只供观看,不允许修改的需求
    手动有些麻烦,正好最近对 go 语言感兴趣
    就又捏了个小轮子
    求大家指教

    地址: https://github.com/mosliu/godoc2pdf
    8 replies    2017-12-26 15:35:29 +08:00
    mosliu
        1
    mosliu  
    OP
       Dec 26, 2017
    功能:
    通过 OLE 使用 OFFICE 等将 word、excel、ppt 文件转换为 pdf 并对 PDF 增加水印和修改限制等功能 常用于发布一些不希望别人修改的内容

    使用就是把要转换的东西拖进 exe 文件图标就行
    仅适用于 win 平台

    在 V 站说 win 平台 好像我又政治错误了
    hugo2lee
        2
    hugo2lee  
       Dec 26, 2017
    想要 Linux 的
    mosliu
        3
    mosliu  
    OP
       Dec 26, 2017
    @hugo2lee 那可以换个思路 不用 ole 找找网上有没有 api 调用呗。。。
    geelaw
        4
    geelaw  
       Dec 26, 2017 via iPhone
    @mosliu 上传到 OneDrive,在里面打开之后点“打印”就会得到 pdf,自动化这个过程即可做到。
    we2ex
        5
    we2ex  
       Dec 26, 2017
    用 pdf 阅读器打开不就自动转换了??
    allenlee7c9
        6
    allenlee7c9  
       Dec 26, 2017 via Android
    https://smallpdf.com ,这个在线的用过几次,感觉不错
    mosliu
        7
    mosliu  
    OP
       Dec 26, 2017
    @geelaw @allenlee7c9 谢谢

    感觉在线始终不如本地来的快。当前这个已经满足我的需求啦。
    其实本地还有 dopdf 等可以打印成 pdf 功能很多

    @we2ex
    目的主要在加水印 加密。。。
    让输出的资料不要随便的被改。。。。
    mosliu
        8
    mosliu  
    OP
       Dec 26, 2017
    @hugo2lee
    我自己没需求就懒了哈哈

    查了下思路,感觉可以使用 libreofficekit
    应该也不难。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5135 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 09:24 · PVG 17:24 · LAX 02:24 · JFK 05:24
    ♥ Do have faith in what you're doing.