Re: Print HTML to PDF via Konqueror

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/12/27 Ryo Furue <furue@xxxxxxxxxx>:> I've been watching this thread with interest because I also like to do> things like that.  I've been looking around and seen some potential> solutions.  The general theme I'm pursuing is, how to script> applications?>> One possibility (though I haven't confirmed that it works) is to use> the plugin "iMacros" on FireFox.  For example, the framework includes> a command to print the current webpage:>>   http://wiki.imacros.net/Demo-Print>> I suppose you can edit your macro locally.> It also seems that macros can be run via URLs:>>   http://wiki.imacros.net/iMacros_for_Firefox>> So, basically, I guess you can use them from the command line as>>  #!/bin/sh>  macro=.firefox/iMacros/print-url.iim>  sed -i s[URL-TO-PRINT][http://url.com/to/print/index.html] $macro>  firefox -new-window "http://your.macro.host.net/print-url.iim";>> I'm afraid I don't know how easy or hard this is (or even> whether it's really possible).>> Another possibility is XUL, which seems to be a general> framework of controlling existing applications through scripting.> For example, mozilla-xremote-client seems to be using this> framework.  But, this is very speculative on my part.  I may> be totally wrong.>> On a related note, I want this kind of stuff (controlling apps> through scripting) to be more readily available on Linux.> I heard that Microsoft applications can be controlled from> Visual Basic, like so>>  Set xlObj = CreateObject("Excel.application")>  xlObj.Workbooks.Open "C:\somefile.xls">  xlObj.Do things . . .>  xlObj.Quit>> (taken from some website).  I also heard that Mac apps can> be controlled form Apple Script or Objective C or something.> How nice.>> Regards,> Ryo>
The best two solutions that I have found are gnome-web-print and thisFirefox extension:http://torisugari.googlepages.com/commandlineprint2
-- Dotan Cohen
http://what-is-what.comhttp://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-תا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-يА-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Яа-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-яä-ö-ü-ß-Ä-Ö-Ü___________________________________________________This message is from the kde mailing list.Account management:  https://mail.kde.org/mailman/listinfo/kde.Archives: http://lists.kde.org/.More info: http://www.kde.org/faq.html.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux