Git Product home page Git Product logo

html-export-pdf-cli's Introduction

Hi, I am CondorHero! 👋

Base Info Dashboard Data
1. A Web developer.

2. Have worked in a startup company for more than three years so far.

3. My Email: [email protected]

4. Leave me a word: Click Here or Email
github-readme-stats github-readme-stats

I'm working on:

寻找工作

目前(2024-01)在一家公司从事「前端开发工作」工作近四年,技术栈主要以 React 为主,求职地是上海,你可以查看我的在线简历 了解我。

My motto

This too shall pass

-- CondorHero

html-export-pdf-cli's People

Contributors

avagner avatar bendavis78 avatar bikebilly avatar condorheroblog avatar fchasen avatar incymbalis avatar michaelva avatar stavnycha avatar thatbudakguy avatar tobiasfuhlroth avatar valentinschabschneider avatar zjvandeweg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

michaelva

html-export-pdf-cli's Issues

Use new headless mode

https://developer.chrome.com/articles/new-headless/

 Puppeteer old Headless deprecation warning:
    In the near feature `headless: true` will default to the new Headless mode
    for Chrome instead of the old Headless implementation. For more
    information, please see https://developer.chrome.com/articles/new-headless/.
    Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
    If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/ch.

image

Feature Request: Specify an outline container selector

Getting Started | VitePress

The page outline is generated using h1-h6 tags, but if there are interfering elements on the page, such as the untimely use of title tags in the sidebar of the VitePress official website, it is necessary to specify which range of container selectors the outline should be used to generate.

Getting Started | VitePress | PDF

This problem can now be solved by --additional-scripts and --additional-styles, but it would be better to provide an interface directly.

Why abandon Paged.js

html-export-pdf-cli is a PDF that can generate an outline from an HTML file. But in this commit [Drop Paged.js](a16a3ed#diff-7ae45ad102eab3b6d7e7896acd08c427a9b585b346470d7b56 5) Removed support for it. why is that?

First of all, Paged.js is a paging engine implemented using JavaScript, which can convert HTML and CSS tags into paginated documents, so that the content on the Web can be displayed in print or PDF output Realize pagination effect.

html-export-pdf-cli mainly uses its layout effect and then uses document.querySelectorAll("h1,h2,h3,h4, h5,h6") to generate an outline.

If the layout and resulting PDF are not uniform, other interfering text may prevent outline acquisition and generation.

image.png

Because Paged.js will change the style and layout of the webpage, which is different from the default one. After thinking about it, it was removed. If necessary, it can be introduced through Additional Scripts and Additional Styles.

In addition, in addition to the easy-to-use Paged.js, you can also choose vivliostyle.js to achieve your own printing Layout and other effects.

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.