TWC: Sending a tiddler to pdf directly?

75 views
Skip to first unread message

Shankar

unread,
Jan 11, 2016, 5:48:29 PM1/11/16
to TiddlyWiki


Is there a way to send a tiddler pdf directly.  Here is the problem I am trying to solve:

I have a dynamically created table with each cell displaying a JPG file.  The table itself is created by a JavaScript in real time and rendered as a tiddler.   Right now, to accomplish what I need, I will have to use the browser's print button and save it as a pdf. 

I am wondering if there is a way I can add additional JavaScript code so that when I create the table, instead of displaying it, I can directly print to pdf.

Thanks for your time and help!

Cheers; 'best,
shankar

Shankar

unread,
Jan 11, 2016, 11:28:24 PM1/11/16
to TiddlyWiki

I reached over to here too fast :-(

A more elaborate Internet search revealed: window.print()  command which is more or less what I wanted.

Thanks.

Cheers; 'best,
shankar

okido

unread,
Jan 14, 2016, 1:50:08 PM1/14/16
to TiddlyWiki
Hi Shankar,

You might consider jsPDF.
Load to .js file in a tiddler and tag it with systemConfig.
Execute the example code with inlinejavascript plugin, the pdf is than created in the download folder.

Regards, Okido
Reply all
Reply to author
Forward
0 new messages