Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everybody. I need to generate files with a simple table without border which should appear on top of the page. Does anyone know how to this? Recently I started learning javascript so I would prefer if the solution to this problem does not contain any other libraries such as jQuery or so...

What I have tried:

So far I discovered jsPDF script but it doesn't contain table option. Other plugins to jsPDF that I found and which include working with table, they are actually not working.
Thanks in advance.
Posted
Updated 1-May-16 8:59am

1 solution

Look also at this open-source project: PDF.js[^].

But, first of all, think at this: do you really want to generate PDF, not something more reasonable, for example, HTML.
PDF is not editable, and not so pleasant to read on a computer, this is rather a kind of electronic paper. It is totally foreign to the Web, is not a part of W3 standards. If you used HTML, your problem would be trivial, the result usable on all systems, not worse than PDF, and so on.

—SA
 
Share this answer
 
Comments
PeMaCN 2-May-16 1:35am    
Thanks for answer. Now, HTML sounds better.
Sergey Alexandrovich Kryukov 2-May-16 3:03am    
Sure. It certainly does. Are you going to accept the answer formally?
—SA
PeMaCN 2-May-16 3:35am    
Just one more question. By using pdf I can generate a document with more than one page. Is this possible with HTML and can I store that sort of document on my PC?
Sergey Alexandrovich Kryukov 2-May-16 3:40am    
Fortunately, HTML don't have pages. Pages appear only when it's rendered on a print media (including "Print Preview", of course). HTML documents are generally floating, which is good and make them real documents. Store on PC? of course, how else. Moreover, you can pack everything in one file, notably, with CSS, which would make a document with style. Notably, just for example, such documents are opened natively with, say, MS Word or Libre Office. When one clicks on HTML file, it is normally opened with the default Web browser. And so on...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900