I'm answering only because no one else has ... and its an interesting question.
If you just take the type="text/javascript" out of your code, TW will (apparently) recognize it as being javascript. My guess is that you could put the button on any of your menus or at the bottom of a tiddler that will be included in the print out. Wherever you put it, its the page that the system will hopefully capture and convert. The reason I'm saying this so passively, is that I'm unwilling to try myself. My understanding is that when you embed url javascript in this manner, that code has as much permission to do things as any code that you had embedded in the html page yourself. And when you're using TW locally (as most of us are probably doing) then you have probably already told FireFox that its OK for the script to do "dangerous" things. Which means that someone else's script is controlling your browser, and may be able to scan your disk, write out files, etc. Ok, so maybe I'm just a little too paranoid ... -- Mark On Feb 6, 7:27 am, Måns <[email protected]> wrote: > Hi > I've been fiddling around with the Web2pdf javascript (http:// > web2.pdfonline.com) - and I don't know where to put the code? > Is it in the MarkupPrehead tiddler? > > It looks like this: <!-- START: PDF Online Script --> > <script type="text/javascript"> > var authorId = "some numbers"; > var pageOrientation = "0"; > var topMargin = "0.5"; > var bottomMargin = "0.5"; > var leftMargin = "0.5"; > var rightMargin = "0.5"; > </script> > <script type="text/javascript" src="http://web2.pdfonline.com/ > pdfonline/pdfonline.js"> > </script> > <!-- END: PDF Online Script --> > > I'm using the snapshotPrintPlugin already - and it would be marvelous > if I could integrate a print to pdf on the generated htmlpage for > printing online.. > > Regards Måns (Denmark) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

