GithubHelp home page GithubHelp logo

csv-to-pdf-mail-envelope's Introduction

CSV to PDF Mailing Envelope Converter

This program converts a input CSV file of mailing addresses and generates a single PDF file with one page per address.

Example CSV input

Response,Mailing Line 1,Mailing Line 2,City,State,Zip Code
John Smith,123 Main St,APT 10,New York City,NY,10001
Test Name,Test Line 1,Test Line 2,City Name,ST,12345

Example PDF output

Example PDF output

Installation

  1. Download & install wkhtmltopdf. See https://wkhtmltopdf.org/ for directions.
  2. Run npm install inside this folder to install node dependencies

Usage

npm run convert input.csv output.pdf

Configuration

  • To edit paper size & CSV column fields, modify index.js
  • To update design of the page, edit style.css file

Printing tips

  • Ensure printer drivers are installed on computer from factory
  • Ensure printer has set correct paper size
  • Selected the same paper size on the printing preferences

Troubleshooting

  • To debug HTML/CSS formatting issues, open tmp/output.html in a web browser
  • To debug wkhtmltopdf run program directly on tmp/output.html to see full output

csv-to-pdf-mail-envelope's People

Contributors

alvinsng avatar getaaron avatar

Stargazers

Panagiotis PJ Papadomitsos avatar Marcelo Terreiro Prado avatar

Watchers

 avatar

Forkers

getaaron

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.