1.0.0 • Published 7 years ago

phantom-tester-app v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
7 years ago

PHANTOM TESTING APP (v1.9.8)

Installation

  1. Installs dependencies

    npm run build
  1. Start server

    grunt dev
  2. Preview

    localhost:3040/
  3. PDF file
    ./preview.pdf
  4. 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