Then again, definitely yes. I'm not sure what I was doing that didn't work last night (maybe I just needed some sleep) but it works today. I wrote it up on my blog, with example code. See http://hofo.com/post.cfm/creating-pdfs-that-automatically-print-via-cfpdf-and-ddx. I've only tested it on OS X with the stand-alone Acrobat Reader, so if someone could test it on Windows that'd be great! Howard
On Mon, Apr 14, 2008 at 11:40 PM, Howard Fore <[EMAIL PROTECTED]> wrote: > On Mon, Apr 14, 2008 at 9:39 PM, Peyton Todd <[EMAIL PROTECTED]> > wrote: > > > > > But an even better way would be simply to pop up the Acrobat Print > > dialog directly, already loaded with the PDF built by <cfdocument>, based > > simply on the user's pressing a button in the web page, and without the > > intermediary of opening the PDF in a child window where the user has to > > click a Print button (icon in this case) again. Do you know any way to do > > that? > > > Yes and no. It is possible to embed Javascript in a PDF that will print > the document as soon as it opens. See page 79 of the Acrobat JavaScript > Scripting Guide at > http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJSGuide.pdf. > This could easily be accomplished through DDX from Livecycle. Unfortunately > the CFPDF tag that lets you use DDX with PDF files doesn't have the > Javascript element enabled (see the livedocs on CFPDF for the list of > enabled elements). Too bad, it would've been a pretty sweet solution. On the > other hand, if your client happens to have the LiveCycle Server installed > then you could probably access it from the Java API for LiveCycle. > > > -- > Howard Fore, [EMAIL PROTECTED] > "The universe tends toward maximum irony. Don't push it." - Jeff Atwood > -- Howard Fore, [EMAIL PROTECTED] "The universe tends toward maximum irony. Don't push it." - Jeff Atwood ------------------------------------------------------------- Annual Sponsor FigLeaf Software - http://www.figleaf.com To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -------------------------------------------------------------
