Giter VIP home page Giter VIP logo

hello-world's Introduction

hello-world

learning about git Adding additional text to test editing and committing change to branch. Second text add. More text (3)

hello-world's People

Contributors

zigm avatar

hello-world's Issues

test1

#!/bin/bash

Footer layout: [pageNumber / totalPages]
footerTemplate='

<style type="text/css"> .footer { background-image: url("https://homepages.cae.wisc.edu/~ece533/images/airplane.png"); background-size: cover; background-color: #ffffff; width:100%; margin-right:0.3in; direction: ltr; white-space:nowrap; overflow:hidden; text-overflow:clip; text-align:right; font-size:10px; } </style>
/
'

Header layout: [date][title]
headerTemplate='

<style type="text/css"> .header-left { width:14%; margin-left:0.3in; direction:ltr; white-space:nowrap; overflow:hidden; text-overflow:clip; text-align:left; font-size:10px; } .header-right { width:86%; margin-right:0.3in; direction: ltr; white-space:nowrap; overflow:hidden; text-overflow:clip; text-align:center; font-size:10px; } </style>
'

Optional: join lines
headerTemplate=${headerTemplate//$'\n'/}
footerTemplate=${footerTemplate//$'\n'/}

url='file:///G:/chrome-headless-render-pdf-master/chrome-headless-render-pdf-master/cli/20180730-0000011-newsletters-john.brave-20th_anniversary_of_Harry_Potter.htm'

set -x
node.exe chrome-headless-render-pdf.js --url "$url" --pdf test.pdf --display-header-footer --header-template "$headerTemplate" --footer-template "$footerTemplate"

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.