Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=Rapido] Hi! I'm in need of some help! I'm trying to make htm2pdf with a toolbar button and to work similar as this: [url=http://kmeleon.sourceforge.net/forum/read.php?9,105639,105639#msg-105639]web2pdf[/url] but i'm not to good with macros. This is how the macros look like: [b]# ---------- htm2pdf --------------- # convert webpages or raw html code into PDF documents # macro by Matt # http://www.htm2pdf.co.uk/ [b]htm2pdf{ menugrayed=(hostname($URL)==""); $OpenURL="http://www.htm2pdf.co.uk/?url=".$URL; $ExecMacros="OpenURL_InNew"; &ExecMacros_Frames; } htm2pdf2{ menugrayed=(hostname($LinkURL)==""); $OpenURL="http://www.htm2pdf.co.uk/?url=".$LinkURL; $ExecMacros="OpenURL_InNew"; &ExecMacros_Frames; } htm2pdf3{ $htm2pdf = prompt("Enter URL you want convert into PDF:", "Convert webpages into PDF", "http://"); $htm2pdf == "" ? "" : opentab("http://www.htm2pdf.co.uk/?url=" .$htm2pdf); } htm2pdf_BuildMenu{ setmenu("&Edit",macro,"Convert to PDF",htm2pdf,4); setmenu("Web Document",macro,"Convert to PDF",htm2pdf2); setmenu("Web Services",macro,"PDF Converter",htm2pdf3); setmenu("Extra Services",macro,"Save As PDF",htm2pdf); setmenu("Web Document",macro,"Save As PDF",htm2pdf2); setmenu(OpenSave,macro,"Save As PDF..",htm2pdf,4); } htm2pdf_BuildToolbar{ $htm2pdf_Tooltip=_("Save As PDF"); pluginmsg(toolbars,"AddToolbar","htm2pdf,16,16",""); $htm2pdf=(pluginmsg(toolbars,"AddButton","htm2pdf,htm2pdf,macros("."htm2pdf"."),"." . ".",".$htm2pdf_Tooltip.",16,16,"."htm2pdf.bmp[1],htm2pdf.bmp[0]","")); } $OnInit=$OnInit."htm2pdf_BuildMenu;"; # --------------------------------------------------------------------- $macroModules=$macroModules."htm2pdf;";[/b][/b] And this: [b]# ----------web dev popup menu----------------------- wservmenu_BuildMenu{ setmenu(WebServices,popup, "Web Services",); } $OnInit=$OnInit."wservmenu_BuildMenu;"; # --------------------------------------------------------------------------- $macroModules=$macroModules."wservmenumenu;";[/b] And this: [b]# ----------link popup documents----------------------- linkdocmenu_BuildMenu{ setmenu(LinkSave,inline,Web_Document); setmenu(Web_Document,popup, "Web Document"); } $OnInit=$OnInit."linkdocmenu_BuildMenu;"; # --------------------------------------------------------------------------- $macroModules=$macroModules."linkdocmenu;";[/b][/b][/b] I'ts obviously something wrong since i don't get a toolbar button so please advice. I should say that web2pdf extension doesn't work properly anymore so that is why i'm trying to manipulate this to work similar as that extension. Yours: Rapido[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development