PDFING NEWSLETTER NO 14 - May 2005 ================================== The latest version of PDFing (V3.0.0.17) is now available from: http://www.pdfing.com/down We offer our apologies to all "Lua for PDFing" users. Please upgrade to PDFing v3.0.0.17 as soon as possible, because previous versions of this .dll suffer from a "memory leak". The "leak" was not obvious to interactive users, but could badly affect the reliability of the NT service version. This letter is so very brief, because Jane and I want the release out as soon as possible, then we can go our holiday in Nova Scotia! The main story is that PDFing can now print its PDF files. This is dicussed in depth below our signature, so please read on. Regards David Fowle and Jane Hearn In this letter: --------------- PDFing release v3.0.0.17 Printing a PDF Lua for PDFing Requests for Enhancements PDFing release v3.0.0.17 ------------------------ Apart from its ability to print PDF files, as discussed below, there are few signicant changes to this program's features or appearance. However peformance is (slightly) faster, the NT Service version is much more robust and the service client (PDFingCntrl.exe) is easier to deploy. For more detail on changes to PDFing, please see: http://www.pdfing.com/releasehist.html Printing a PDF -------------- PDFing V3.0.0.17 now allows you specify that each PDF be printed automatically. This feature only works when you have also installed third-party software from: http://www.pdf-tools.com You will find "3-heights PDF printer Shell Tool", available to down-load a "freeware" version for tesing. After testing, you may want to install the full version, which (at this date) costs 200.00 USD. I regret to say our web site and help-files have been updated, as yet. Please see the new controls labelled "Printer" and "Copies" on the configuration form. These allow you to specify the printer-name (leave blank to use a default printer) and the number of copies to be printed (0 specifies no printing). There is a new OS400 tag "EPC=n" for spooled-files, here "n" specifies the number of copies. If you are using "mail-lists" and want to specify that a document with a particular code is to be printed, then the code should have its corresponding address value set to :P or :Pn where n is the number of copies. The interface of PDFing with "PDF printer" is managed by a "Lua for PDFing" script, discussed below. If you have not yet created a "Lua for PDFing" script, you can pick-up a pre-built script at: http://www.pdfing.com/down/printscript.zip Lua for PDFing -------------- If you already have a script, you can just copy the following code into file: \Markup\PDFingScript.lua --------------------------------------------------- -- Event Function (called before PDF is secured) function Event.OnBeginSecure(Page, Message, Job) -- If printing required - if (Job.printcopies and Job.printcopies > 0) then -- Provide location of printer shell tool local appnam = "D:\\Inet\\Prns\\bin\\pdprint.exe" local cmdlin = "" -- Add selected printer-name to command line if (Job.printername and Job.printername ~= "") then cmdlin = cmdlin .. "-p \"" cmdlin = cmdlin .. Job.printername cmdlin = cmdlin .. "\"" end -- Add number of copies to print cmdlin = cmdlin .. " -cm 1 -c " .. Job.printcopies -- -- Add parameters to fit pdf to page using automatic orientation cmdlin = cmdlin .. " -f -o -2 " -- Add name of pdf to be printed cmdlin = cmdlin .. Job.pathpdf -- run the tool runprocess(appnam, cmdlin) -- could be useful ? print("PDF file printed to: " .. Job.printername) end end --------------------------------------------------- Please make sure the code above is inserted in the "main-line" of your script, and never into code that defines another function. The value assigned (in line 5) to variable: appnam must be set to the location where you installed program: pdprint.exe" Please note the use of the "escape" "\" character before back-slashes. Requests for Enhancements ------------------------- The only outstanding requests are: 1) Merging multiple PDF files into one PDF. 2) Fax