Code Monkey home page Code Monkey logo

Comments (7)

BlueMatthew avatar BlueMatthew commented on July 17, 2024

chrome是可以直接把网页打印成pdf的,不知道你试过没有,不过不确定格式方面是不是有问题。不知道你试过没有,如果有问题,可以反馈给我

from wechatexporter.

Seifon avatar Seifon commented on July 17, 2024

chrome是可以直接把网页打印成pdf的,不知道你试过没有,不过不确定格式方面是不是有问题。不知道你试过没有,如果有问题,可以反馈给我

但是太多页了,一页一页打印很麻烦的,希望大神能集成mdout:https://github.com/JabinGP/mdout 这款软件,支持命令行导出pdf

from wechatexporter.

BlueMatthew avatar BlueMatthew commented on July 17, 2024

chrome是可以直接把网页打印成pdf的,不知道你试过没有,不过不确定格式方面是不是有问题。不知道你试过没有,如果有问题,可以反馈给我

但是太多页了,一页一页打印很麻烦的,希望大神能集成mdout:https://github.com/JabinGP/mdout 这款软件,支持命令行导出pdf

chrome不是能把所有页都打印成pdf的吗?我唯一担心格式是不是不好

from wechatexporter.

BlueMatthew avatar BlueMatthew commented on July 17, 2024

测试了一下,确实如果聊天记录比较多的话,打印成pdf非常慢。。

from wechatexporter.

BlueMatthew avatar BlueMatthew commented on July 17, 2024

chrome是可以直接把网页打印成pdf的,不知道你试过没有,不过不确定格式方面是不是有问题。不知道你试过没有,如果有问题,可以反馈给我

但是太多页了,一页一页打印很麻烦的,希望大神能集成mdout:https://github.com/JabinGP/mdout 这款软件,支持命令行导出pdf

最近在看怎么利用chrome,chrome也支持命令行的方式导出pdf
chrome --headless --disable-gpu --print-to-pdf="导出的pdf文件名" --print-to-pdf-no-header [html文件名]

MS Edge也是一样的命令,
msedge --headless --disable-gpu --print-to-pdf="导出的pdf文件名" --print-to-pdf-no-header [html文件名]

我已经在主分支集成了进来,不过还存在两个问题,一个是原有的进度不准确了,需要重新调整,第二个是转pdf还是比较慢的,看怎么改成多线程/进程处理。

你可以先尝试用这个命令行来转。

from wechatexporter.

BlueMatthew avatar BlueMatthew commented on July 17, 2024

1.8.0程序输出了pdf转换的批量命令行,可以试试。

from wechatexporter.

BlueMatthew avatar BlueMatthew commented on July 17, 2024

pdf已经实现,关闭issue

from wechatexporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.