Javascript to print slide AND hide playbar

Hi all,
I know I can use the simple javascript window.print() to print a slide, but when I do that it also prints the print button and playbar. Is there a way - I'm sure there is, I just don't know how.... to hide the playbar, hide the print button, print the page and then show the playbar or a continue button again? I want my users to be able to print just the slide content.
Oh, running CP7 64 but on a windows 8 machine.
Thanks for the help!!
  Lori

Very unusual, Here are some more questions to help nail down the issue.
Are both date text lines in form fields? What are the form field names? i.e. is this an exact copy of the existing form field? What are the settings that differentiate the two fields, i.e. Rotation, etc.?
Could the script be somehow getting run twice?
On another note, why are you naming all of the fields differently. It looks like they all get the same info. If this is true then you could simplify the script by making them all the same name. You would not need the loop to apply the date text.
Thom Parker
The source for PDF Scripting Info
www.pdfScripting.com
The Acrobat JavaScript Reference, Use it Early and Often
http://www.adobe.com/devnet/acrobat/

Similar Messages

  • Using Javascript to print and close window

    I found that I could open my document in a browser and using Javascript, automatically bring up a print dialog and send it to the printer. My problem is that this document opens in a browser that is being used as a kiosk touch screen with no address or navigation bar at the top (they are hidden).
    I would like to ave the pdf open in a new window, print and then close, making the original window viewable again. Is this possible?
    I have tried adding window.close() right after the print command, but it doesn't seem to work. Am I simply adding the close command incorrectly?
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    this.print(pp);
    window.close();

    This is what commands are allowed in Javascript for Mozilla Products. IF they haven't been touched by the user of the browser many of these are turned off by default.

  • Javascript and hide and show.

    Is there any way to hide single item on the form (not region)?
    I have tried to hide an item based on the condition.
    I have radiobutton with value 1 and 0 so I have created on click event that check its value and hides item but:
    the item that I want to hide is a date item with the datepicker option. What happens that item is hidden but label and datepicker icon stays.
    here is the code
    function HideAndShowElement(fieldName,elementNameToHide)
    if(html_RadioValue(fieldName) == 0)
    $x_Hide(elementNameToHide);
    else
    $x_Show(elementNameToHide);
    Any suggestions?
    Robert

    Hello,
    $x_Hide(elementNameToHide); will only hide the element.
    To hide label .. edit the label of the itme.eg. suppose lable is MY_LABEL make it
    [span id="my_lable_id"]MY_LABEL[span] ( replce [ and ] with < and > )
    and make ur javascript code to
    $x_Hide(elementNameToHide);
    $x_Hide('my_label_id');
    Regards,
    Shijesh

  • Change printing defaults to print a individual slides and not have a border

    It is annoying to always have to choose individual slides and turn the border off while printing. Is there a way to change this default so it is always that way?

    801878 wrote:
    1. Is there a way that print(...) method of Printable interface can send ASCII character and not graphics rendering?Not that I know of, but note that you can use the Graphics.setFont(Font) method on your Graphics/Graphics2D to cause the printing to use whatever font (or combination of fonts) you want.

  • When I watch slide show through my Apple TV version 6..2 the air play instruction box appears always on the screen and hides the photo. Is there any way to stop it.

    When I watch slide show through my Apple TV version 6..2 the air play instruction box appears always on the screen and hides the photo. Is there any way to stop it.

    Hi Sujatha vijay,
    It sounds as if your Apple TV is in Conference Room Display mode. You will need to turn this off. See this article -
    Apple TV (2nd and 3rd generation): Understanding AirPlay settings
    http://support.apple.com/kb/HT5517
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Hide Playbar In Quiz Works -- until you go back

    I have a tutorial with a few knowledge checks (quiz questions). In order to make sure the user does not just skip by the quiz question, I checked the disable playbar in quiz box. This worked like a charm, until I clicked the Back button to go back and look at the quiz question after it had been submitted.
    This quite effectively stopped both forward and backward navigation, as I cannot re-submit any responses, and the playbar is disabled, so I cannot move forward or backward.
    Any suggestions?
    Thank you!
    Jennifer
    Manager, Instructional Design

    Hi Jennifer,
    I suppose you deleted the Next button on the Question slides? Have a look at this blog post about the question slide design:
    http://forums.adobe.com/message/6024141#6024141
    If you have multiple attempts on Question level, those attempts are 'closed' when you leave the question slide. Going back to that question slide will never allow you to re-submit a question, only retaking a new attempt on Quiz level will clear all answers and allow then a new attempt when getting back to a question.
    The Next button, that doubles as a Skip button during question attempt can be confusing to the user, tempted to click on that button instead of the Submit button. Perhaps that is the reason why I recommend in the post to hide the Next button under the Clear button, but of course going back to a question will not show that Next button, only during Review the Clear button will disappear to let the Next button visible that was hidden under Clear.
    Good practice if you are hiding the Playbar is either:
    to uncheck the option 'Allow Backward movement' in the Quiz settings
    to leave the Next button on the Question slides visible (and explain the user that he has to click Submit to enter an answer)
    Lilybiri

  • Hide playbar – problem

    Hi,
    I have a project where I don’t want the playbar on the first slide where is the title of the course and the Company logo.
    I  use the Variables feature of Cp to show/hide playbar.
    But when I launch the preview or the output file .exe the playbar appears just for an instant like a flash on the first slide.
    No transition on the first slide  and  “fade in on the first slide”in Preference is unchecked.
    The same occurs if the output is swf.
    I notice that if I click on “rewind”button of the playbar during the project or at the end, the project starts again and the playbar is not visible on the first slide!
    It's annoying the flash of the playbar 
    How can I solve the problem
    I’ve Elearning suite 6 with Cp 6.0.1.240 – Windows 7 home premium 64 bit
    Anyone has an idea ?
    thanks in advance
    Elena57

    Hi Elena,
    I don't think that there is any way to avoid this "flash" unfortunately. The first slide must load completely before any events or actions are executed and therefore the playbar will load and display before the command to hide it is executed.
    Perhaps try to experiment with "Fade in" on your first slide to see if you can minimize the flashing.
    www.cpguru.com - Adobe Captivate Widgets, Tutorials, Tips and Tricks and much more..

  • Looking for java script to print slide

    Hey everyone,
    The print widget and playbar print don't always work too well. Does anyone have a java script they are willing to share with me that will print a single slide and/or a set of slides?
    Thanks!
      Lori

    Hi Lori
    I think it may depend on your browser. If the browser is Microsoft Internet Explorer, sometimes you have make adjustments to coax something like a Flash file to print. You might try clicking File > Page setup... and see if you have the option for printing Background Colors and Images.
    Cheers... Rick

  • Execute Javascript, window.print(), prints blank page in Captivate 7

    Hello,
    I'm fairly new to Captivate, and am no Javascript expert.  I've been trying to figure out how to print the last slide in project, which has a custom certificate.  I initially tried the print widget that comes with Captivate 7, but the scaling is off when printed.  There are no options to change the scale of the printed slide on the widget properties, so that seemed to be a bust.  I then tried to create a button to execute javascript when clicked.  In the script window I put, window.print(); now this works to bring up the print box, but only prints a blank page.  I'm not sure if it's something I'm doing wrong with javascript.  I've been reading other forum posts, and this function seems to work for others using different versions of Captivate.
    I know there is a cool print widget that someone has made, but I'd actually prefer to just do this with javascript.  I haven't tried the buyable print widget yet, but I am trying not to use widgets so that the html can be scalable. 
    I'm publishing my projects and uploading them to GoogleDrive, where I then preview the html output.
    I'd appreciate any help.  Thanks!
    Kailey

    Wow, thank you for such a speedy response Rick.  I've actually been using Firefox and Google Chrome, because IE isn't updated enough to work with Google Drive properly (and I don't want to go through the whole process to get privileges to update on work computer).  But I did check this box in Firefox.  Instead of printing the objects on my slide, it printed a big square light grey background.  It's almost like the the browser can't see the project.
    I would think this was a browser problem, but I had previously downloaded a trial of Articulate (trying to decide between the two), which has the same execute javascript function as Captivate.  Putting in window.print();, publishing, and uploading to Google Drive, printed just fine.  Not sure if something in the code in Captivate isn't coming through, but is in Articulate.  I'm not versed in html or javascript enough to compare the two html files. 
    Back to the drawing board!  Thanks for your help.
    Kailey

  • Auto-hide playbar

    Hi,
    Is there a way to autohide the playbar in the published files? I would like the playbar to appear only when the mouse is over the area where the playbar should be, something similar to 'auto-hide the taskbar' on the desktop.

    Some confusion with Vish, he did not see I was answering and also preparing a blog post. Here is the work flow in short, will post the link to the blog post where I will have an example and screenshots, when it is published.
    First, grab a copy of Chris Dorna's widget to hide the close button on the slidelet, it is free:
    HideSlideletClosebox
    Configure the playbar and the borders so that the playbar is in overlay mode (will be on top of the slide instead of below the slide) and that no borders are showing.
    for the first slide, on Enter Side attach the action  Assign cpCmndShowPlaybar with 0 to hide the playbar
    insert two rollover slidelets: make sure that the stroke is set to 0 and that the color is set to the color of the background or configure its style in the Object style manage so that no border, nor runtime border is shown
    size the first rollover slidelet to approximate the size of the playbar, the second you put little bit higher and attach the rollover actions to change the variable to 1 for the first, to 0 for the second
    insert Chris' widget and configure it to hide the close button for both slidelets
    You have to repeat the last 3 actions for all the slides, easy with copy/paste but you'll have to edit the HideSlideletClosebox properties to adapt to the new ID of the slidelets.
    Lilybiri

  • How to make vintage prints slide show one photo at a time?

    Does anyone know to program the vintage prints slide show to display only one photo at a time?

    The slideshow templates are fixed and can't be changed.
    Alternatives to iPhoto's slideshow include:
    iMovie, on every Mac sold.
    Others, in order of price: PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Express  $199
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Express is the most capable app of them all. You get what you pay for.
    Regards
    TD

  • How can I allow the user to pause the audio of a slide (and restart it) before continuing on to the

    Most of my slides have a combination of test/graphics and voiceover.  I would like to allow the user to pause, resume, and replay the audio of each slide.  I know, as a learner, I sometimes need to go back and hear something again -- or pause until a distraction has passed.
    How can I tie audio to a playbar or set of buttons?  I know if it's video, it can be done.  How do I give them control of the audio? 
    I am in Captivate 7.  My files are .mp3 files.
    Thanks - TL

    You cannot add extra buttons to the playbar but you could add a Replay button to the slide and have this button execute a Standard Advanced action with a Jump to Slide action that points to the same slide you are currently on.  This should effectively jump your user back to the beginning of the same slide.

  • HT201322 swipe and hide app options doesn't work on my ipad2, how can I get it to work?

    I have followed the directions to swipe and hide apps from the purchased apps history on my ipad2 but when I swipe the app in the list nothing happens, any help please?
    I have managed to hide purchased app in itunes on my PC but that hasn't synced with my ipad!

    If you can't find it on any of your homescreens or app folders, and you can't find it via the spotlight search screen (swipe your first home screen to the right), then is it hidden by Settings > General > Restrictions > Installing Apps being set 'off' ?
    If not then have you tried a reset to see if you can find it after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. You could also do Settings > General > Reset > Reset Home Screen Layout which will re-arrange your apps and might make it easier to find

  • Page Layout when Printing slides from Keynote

    I don't often print my Keynote presentations, but I would like to be able to print FOUR slides on one sheet (landscape format) with one slide in each quadrant or corner. All I can select --as far as I can tell-- is a single column with all 4 slides minutely scaled down the page. The slides are far toooooooo small to read. CAN I CHANGE THE LAYOUT FOR PRINTING SO THAT HAVE 2 COLUMNS OF 2 SLIDES EACH? Many thanks for your suggestions!

    When I do Print > Handouts > 4 slides per page, it puts the slides stacked on top of one another (ie 1 column of slides, 4 rows). I assume you would want to have 2 columns of slides and two rows. I don't know how to do this in Keynote, but if you are in Keynote, just do a File > Export > PDF. If you are printing in color, I'd select Image Quality > Best. Once you have the PDF of the presentation, open it with Preview. From Preview, do a File > Print. When the Print "window" comes up, you select your landscape orientation. At the bottom of the window, you will see a dropdown option that says "Images per page" and select 4. This should do the trick.
    Be careful when you do the export from Keynote to PDF. There are a lot of options to include or exclude page numbers, builds, etc. in the PDF.
    Hope this helps.

  • PDF and PowerPoint 2007, strange slides and handouts

    I'm getting strange output when I create a presentation in PowerPoint and print to Acrobat. The problems happen whether I print Slides or Handouts.
    -- On some slides, the slide title is partially or completely missing.
    -- In grayscale mode, some graphics show up in color.
    -- Solid-color shapes (boxes) show up cross-hatched.
    -- For handouts only, some slides have headers and footers, and others do not.
    I'm using PowerPoint 2007, up to date, and Acrobat Professional 9.1.3.
    I've used PowerPoint and Acrobat for many years and only recently began to have these problems. I've tried changing some of the endless printing options in Acrobat, but nothing I've found so far has made a difference.
    Those problems (with the possible exception of the color graphics in grayscale mode, I don't remember) do not happen when I print to Microsoft's XPS format.
    Any ideas?
    Thank you!

    Thank you! That's helping a lot. I don't see how to get grayscale in that route, but at least I'm getting proper color handouts, no errors. Plus it outputs much faster. Hmmm. I haven't tried saving in PPT format instead of PPTX. And then there's an Excel spreadsheet that takes several minutes to output 14 pages via print to Adobe PDF printer (it used to be much faster, I don't know why it suddenly slowed down, I didn't change the spreadsheet), I wonder if that would be faster if I saved in PDF format rather than printing to the Adobe PDF printer.
    Again, thank you. You have helped, plus you gave me leads to follow.
    ATB,
    Mark

Maybe you are looking for

  • Remote for only Macbook but not dock

    hello everbody, is there any way that use the remote control only MacBook but not ipod dock? because when i push the play button, i got my ipod and macbook react in the same time. thanks for your help.

  • Hi by mistake i deleted my viber messages how to get them back

    Hello i deleted my messages by mistake ...is there any way that i get my messages back thankyou

  • Combining music files

    I want to either combine two music files into one or pair two files so that they are always played in sequence even when using a playlist that is random. For example, We Will Rock You/We Are the Champions by Queen. The songs are actually seperate tra

  • Image anomalies in mp4

    I have created a subtitled video from a .mov source, exported in mp4. It plays fine on all media players except QT, where there are several errors in the image. Any way around this? (Source & export both in AVC1 / h.264).

  • QT 7.2.1 Will Not Show Help

    I just installed Mac OS X 10.5.8 Leopard.  I have QuickTime 7.2.1.  When I tried to access the underlined subjects in QuickTime Help, not a one launches. What should I do to access items in QT Help?  Enclosed please find attachment.