Printing part of website a.k.a. how I got my CV printed
I’ve been looking for a new job for quite some time. Sooner or later I had to make a resume or a CV. I was looking for Free CV generator google poped a bunch of results. But guess how many of them were actually free…
Of course none. After experiencing six hours of false advertising I decided that’s enough. If I can see something on a website I surely can print it, huh? After few minutes of googling it up I found this SO post.
Basically @pmtamal approach is to copy all interesting contents in to new Window and invoke Print there.
It does work, but it is a bit flawed. It does not copy styles… Let’s apply some basic JS knowledge.
And we only have to shove it into that window we created.