We recently added invoices to Browserling. I thought I'd share how we did it as it's another interesting story.

Our customers keep asking for invoices all the time so we made it simple to create them. They can now just go to their Browserling accounts and download them. Here's how an invoice looks like:

Example invoice. (Download example.)

And here are the implementation details.

We use a node module called invoice. The invoice module takes a hash of invoice details, internally spawns pdflatex that creates a pdf invoice, and then calls a callback with the path to the pdf file, like this:

var invoice = require('invoice');
        template: 'browserling-dev-plan.tex',
        from: "Browserling inc\\\\3276 Logan Street\\\\Oakland, CA 94601\\\\USA",
        to: "John Smith\\\\Corporation Inc.",
        period: "2/2013",
        amount: "$20"
    function (err, pdf) {
        if (err) {
            console.log("Failed creating the invoice: " + err);
        console.log("Pdf invoice: " + pdf);

The browserling-dev-plan.tex latex template contains %to%, %from%, %period%, and %amount% place holders that the invoice module simply replaces with the given data:




\Large{\textbf{Invoice}} \\
\large{Subscription to Browserling's Developer Plan}


\section*{Invoice from:}

\section*{Invoice to:}




Once the pdf invoice is generated, we create a token that maps to the pdf file, and once it's requested, we send it to the customer as an application/pdf.

Until next time!


February 27, 2014, 17:12

Did you put the all important Invoice # on the actual invoices?

I guess I could login and check but it's more fun to be the first to comment.

February 27, 2014, 19:33

Hmm, no I don't. All these payments are automatic so we can track what's been paid. I guess it would matter if the invoices were paid by check. Then it would be harder to track, which payment is for which invoice. Is that right?

April 08, 2014, 10:12

Very nice Idea...I really want to learn more about that.
Proweb365 is a Minneapolis web design firm!

dasf Permalink
May 20, 2014, 12:58

I'm interested in reading this article once more later on. Extreme PC It is a lot for me personally to absorb, nevertheless it's very interesting and I want to understand.

Audi Permalink
May 23, 2014, 12:23

I will return and review your article later on to explore the perfect landscapes you have mentioned. Dermaslim for weight lose and deit plans.

July 09, 2014, 11:24

I just read through the entire article of yours and it was quite good. This is a great article thanks for sharing this informative information.

Tim Permalink
October 30, 2014, 12:53

I'm going to subscribe this website for providing me good information every time .visit mine www.vinitysoft.com for fleet software.

bloger king Permalink
May 13, 2014, 20:49
October 03, 2014, 09:53
December 07, 2014, 05:33

Usefull Infomation -

To Admins - To Users - Thanks to All - Visit my Site Once helpfull to u

Second Link : Click Here For More.

May 21, 2014, 19:44

Recover Ur File

June 03, 2014, 10:43

Nice Post i love reading it :)
Paid Android Apps For Free
Thanks for awesome post

November 16, 2014, 08:38

Nice Post i love reading it :)
orthogonal and oblique cutting.
Thanks for awesome post

June 13, 2014, 13:38


September 03, 2014, 09:33

Hello there,
I discovered your blog this afternoon
and I want to congratulate you for the work
Congratulations and good luck

September 04, 2014, 07:10

Nice article thanks to share with us. Recruitment Very helpful with me

September 20, 2014, 07:42


September 20, 2014, 07:43


November 13, 2014, 11:34

Thanks for telling how to add invoices to Browserling. Now I can find them in Browserling accounts and download them.

November 20, 2014, 18:31

Thanks for add new invoices i love it.. thanks admin

November 23, 2014, 06:23

Nice article thanks to share informative article.

November 26, 2014, 07:06

Thanks that awesome artical

Jacksmith Pinto Permalink
November 27, 2014, 06:51

This is really a nice idea to make our work easier using browserling. So i have a .md file format of SBI Bank details like IFSC Code and MICR Code of Kadapa Dist, how can i convert and put in to Browserling accounts to download for others here is the file.

Kaur deep Permalink
December 04, 2014, 03:08

Excellent and knowledgeable links and post.thanks for sharing.
Now, The Time has come for the Happy New Year 2015. It wil bring a lot fo happinesin our life.
Happy New Year 2015
And I am sure, You wil anjoy this new year day with yoru fiends and wil send some images wishes,
New Year 2015

Happy New Year 2015 Wishes
Greetings to yoru close ones, Your friends, You lover, etc..
Happy New Year 2015 Images
Even I am waititng for that day, because it just changes our life.
Happy New Year 2015 Greetings

Happy New Year 2015 SMS
So, That's why I am commenting here to wish you a very happy new year.
Happy New Year 2015 Messages
I hope this New year 2015 wil bring success to your website. But before that Merry Christmas is coming.
Merry Christmas Quotes
It is also a big event for everyone.
Merry Christmas Pictures
Everyone knows that Christmas is a day when People seems to be very happy, they just leave all sadness behind.
Merry Christmas Wallpapers
And I am sure, you also enjoy this Merry Christmas day of 2014.
Christmas day Images

Christmas stocking
But if you are not looking out to enjoy this christmas, then you are missing out on a big thing, because it really brings happiness.
Merry Christmas Images

Merry Christmas 2014
So, what you are waiting for?
Merry Christmas 2015
Enjoy This Merry Christmas day. Cheers :).

Jerry Permalink
December 04, 2014, 08:28

I honestly enjoy fascinating content like this. This is a great post. The points are presented in a special fashion and also the material is very nicely written. I genuinely loved reading about Fleet Management Software at vinity soft inc. the best company for software development.

Harishkumar Permalink
December 05, 2014, 00:29

Hey this really cool stuff, if we have small amount of data which needs to be converted into invoice we can use this..!

If we have something more information for invoice how can we do it.? and can we able to reduce the sizeof that pdf which comes on console.!! please do reply.. and at the same time find the major utilities like Electricity and Water, how does it leads to a revenue loss for more information Click here.

December 07, 2014, 13:32

Nice information and it very useful for me.

Diana Permalink
December 17, 2014, 15:52

This article is quite helpful and informative too. I enjoyed a lot. Thanks for sharing such a great article.

Beautiful Christmas Quotes for your friends and family...
christmas quotes
Christmas Messages for Whatsapp

Best Christmas Greetings for your friends and family...
christmas greeting
christmas wishes

What to Write in Christmas Card....... Check out best Christmas Greeting Card Words
What to Write in Christmas Card

Get Beautiful and Unique Christmas Wallpapers for free
free christmas wallpaper
christmas tree decorating ideas

Thanks for sharing such a great article.

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "antispam_415": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.