phantom-tester-app

1.0.0 • Public • Published

PHANTOM TESTING APP (v1.9.8)

Installation

  1. Installs dependencies

    npm run build
    
  2. Start server

    grunt dev
    
  3. Preview

    localhost:3040/
    
  4. PDF file

    ./preview.pdf
    
  5. Info

    * Header and footer is in ./views/index.ejs -> place there all additional scripts and styles
    
    * PDF content is in ./views/layout.ejs
    
    * Write styles in SASS (./public/scss/styles.scss) - it will automatically convert to ./public/css/styles.css file
    
    * Write javascript in ./public/javascipts/scripts.js
    
    * If you want to change:
        - PDF orientation: 
            ./phantom/pdfize.js -> orientation: 'landscape'/'portrait'
        - PDF borders: 
            ./phantom/pdfize.js -> border: { 'top': '1cm', 'left': '1cm', 'right': '1cm', 'bottom': '0.5cm' }
        - PDF footer:
            ./phantom/pdfize.js -> footer: height && contents
    

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i phantom-tester-app

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • waclabdev