Trusted function not reffered in PDF file - Adobe reader.

Am failry new to Adobe scripting.
I am trying to generate a jasper report of PDF file format from an online web application
MY intension is to automatically save the generated report into my user's hard drive location say /C/Sample/sample.pdf
I have created the trusted function and made it copied to the folder C:\Program Files\Adobe\Reader 11.0\Reader\Javascripts
Trusted function code mySaveAs.js
var mySaveAs = app.trustedFunction( function(oDoc,cFile)
app.beginPriv();
// Ensure path has trailing "/" cPath = cPath.replace(/([^\/])$/, "$1/");
try{
  oDoc.saveAs(cFile);
}catch(e){
  app.alert("Error During Save");
app.endPriv();
And am invoking the script from the Jasper api which will be a part of the PDF script like below
exporter.setParameter(JRPdfExporterParameter.PDF_JAVASCRIPT,
     " if(typeof(mySaveAs) == 'function') { " +
     " mySaveAs(this,'/C/Sample/sample.pdf');"+
     " } else { " +
     " app.alert('Missing Save Function\n Please contact forms administrator')" +
its just Equivalent of
if(typeof(mySaveAs) == 'function') {
      mySaveAs(this,'/C/Sample/sample.pdf');
} else { 
  app.alert('Missing Save Function\n Please contact forms administrator')}
but am not able to get the file saved in my client machine.
Kindly suggest me a better approach or any where if am missing something.
Am failry new to Adobe scripting.

Am currently using Adobe reader 11 I am not getting any alert .
But the same saveAs() works well in XP even with out making it as a trusted function, We have just placed the script inside the PDF itself. But its not working in Windows 7.
Below code works fine in Win XP
try
     this.saveAs('/C/Sample/sample.pdf'');
    catch(e)
    { app.alert(e);}

Similar Messages

  • Only first page prints PDF files Adobe Reader 9 kb40558 fix Chinese version

    We have been having a problem with Acrobat and Adobe Reader 9 only print the first few pages of multi-page PDF documents. This is fixed with kb40558 for our English versions but the students and I can not find where to make the change to Font and Resource Policy" dropdown to "Send for Each Page" in the Chinese version.
    Can someone help - A Chinese language version of the KB or a screen shot of the location where the change is required would be most helpful

    All I can suggest is that you go to the original article http://www.adobe.com/go/kb405589 and copy/paste the instructions with the appropriate options into http://translate.google.com/

  • Missing component to access (read) a PDF file Adobe reader 8

    When I try to open a PDF file it says there are some missing components to complete the operation and it sends me to the Adobe Web page (Adobe Acrobat plug in Finder) I already asked to the author of the file and followed his installation instructions but the problem remains. If I try to open it in some other computer the error message specifies the component filter/MBAS:ash is missing.

    I am getting the same message, "Filter/MBAS:Ash:", that you posted on Adobeforums.com. Did you find out where to get the missing component? If so, I would appreciate your help.
    Norm

  • Slow opening of .pdf files - Adobe Reader XI

    I have Adobe Reader XI - when I go to open a .pdf file (small file sizes like 17KB even) - the file takes about 45 seconds to open.  How do I get it to open faster?  I tried uninstalling and reinstalling the reader but that didn't work. 

    See if you have anything on your system slowing things down. Try turning off your virus protection. If you have no protection, install some and have it look for virus or spyware. Those are the most common things to slow a computer down.

  • Can I insert a pdf file (Adobe Reader 8) into an Outlook 2007 message body

    I don't want to attach it to the e-mail but want it to show up as the body of the e-mail.  Is there a way to do this?
    Thank you
    Paula

    mcacbat wrote:
    Hello,
    As this an Adobe Reader question, I've moved your post over the Reader (as opposed to the Acrobat.com) forums. Good luck!
    Michelle
    And how is the poster going to find her post again...?

  • Cannot Print PDF Files on Reader 9.4.0!

    I recently updated the drivers on my Brother MFC-420CN printer to the Vista drivers so I could scan multiple pages at once, however, now I can no longer print PDF files!!!!
    I tried to roll-back to the old drivers and it still doesn't work, I can print other types of files so it makes me believe that this is an Adobe Reader issue and not a system issue.
    In addition, I tried the following steps:
    1. Under advanced settings I chose "Print as Image" - did NOT work
    2. I uninstalled Reader and re-installed - did NOT work
    Here is my setup:
    OS: Windows Vista Home Premium Service Pack 1, 32-bit
    Model: HP Pavilion dv2700
    Processor: AMD Turion 64 X2 TL-58 1.90GHz(I am aware this is a 64bit processor with a 32-bit OS)
    Printer: Brother MFC-420CN
    Driver Version: 6.0.6000.16386(This is the previous driver that I rolled back to which used to print PDF files)
    Adobe Reader v9.4.0
    Any advice on how to get this working again would be greatly appreciated, thanks in advance!

    Had you managed to print the same files, or are you talking about files you hadn't attempted to print? Are these PDF files forms that you are trying to fill and print in Reader?

  • I can not print a pdf file that was sent in an email.  I get the error message that adobe could not

    I can not print a pdf file that was sent in an email.  I get an adobe error message that it can not print with an ok to check and when i do I get another adobe error message that says I did not select a page to print. I have downloaded the latest adobe download.  I forwarded the email to my husband and he printed the document just fine.

    This first question which comes to mind is how do you display the pdf file in the browser?
    For this the browser uses a plug in (e.g. adobe reader) which already has the ability to print the pdf file. Depending on the version of your plug in, printing is started differently.
    Timo
    Ps: which jdev version do you use?

  • I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    I have a pdf file with the added sounds, so I can not run the sound in adobe reader XI on my tablet samsung galaxi pro (android)

    Thanks for writing to us. Unfortunately, such advanced javascript support is currently not provided by Adobe Reader for Android.
    Thanks,
    Adobe Reader Team

  • Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files in SQL server database

    hi all
    I need your help
    i have this asp.net site which works with sql server
    it searches a specific word in the database with full text search
    in my database i have a column of type image that holds a PDF file
    i want my SP to search for given word in my file
    so i installed the Adobe Ifilter
    configured it and every thing worked fine
    but after i moved to production Server and installed every thing the same way ...it did not create the index for the pdf files
    i can search for doc and docx and even for xml but not pdf
    i know i installed it correctly since it is working great in the testing environment
    i used this link for the configuration
    http://www.adobe.com/special/acrobat/configuring_pdf_ifilter_for_ms_sql_server_2005.pdf
    the only difference i see between my Testing environment and my Production environment  is that
    my testing has
    windows sever 2003 sp2 with Sql server 2005 64 bit std sp2   -- works fine
    my production  has
    windows sever 2003 R2sp2 with Sql server 2005 64 bit ent sp3  --does not work, does not index my pdf files
    can you tell me if there are problems with some environments ?
    are there any known problems with this Ifilter ?
    what should i do ..

    Thank you
    I opened it in the Acrobat Windows forum
    http://forums.adobe.com/message/2557155#2557155
    meidad Evyoni

  • After the last update that was pushed out by Adobe, my Acrobat 9 Pro will not generate a PDF file fr

    After the last update that was pushed out by Adobe, my Acrobat 9 Pro will not generate a PDF file from; [right click], Combine files into one PDF multiple files chosen in the explorer.  A message pops up asking if I want to run repair.  Answering in the afirmative results in another message stating files are missing.  And we are back at square one.

    What is the exact error?  Else you could always reinstall your software.

  • Adobe Reader could not open a pdf file - either not supported file type or file damaged

    On March 5th, I started getting the Adobe Reader error message "Adobe Reader could not open a pdf file because it is either not supported file type or the file has been damaged.
    I get this when I try to open the pdf file as an attachment in Outlook 2013 from my G-Mail account.  If I save the attachment and then try to open the pdf document, I get the same error4.
    I get this error message with every pdf file that now comes to me in Outlook.
    If I log on to my G-Mail I am able to open the pdf document.  If I also save the attachment to my computer, I do not get the error message when I open the pdf file. This would suggest the file is okay
    This would lead me to believe the problem maybe with Outlook.
    I'm using Adobe Reader XI v11.0.10
    I'm using Windows 8.1
    Is anyone encountering this same issue with outlook?

    I copied it again.  Do you see it?  BTW, how do I set privacy?  (I'm new at this)
    I opened with two different notepads and got different information.here it is from Windows Notepad.  First few lines are:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
    >
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">td img {display: block;}</style>
    </head>
    Here it is from MS Notepad:
    <HTML><HEAD><style>.ending {font-family: Calibri; font-size: 18px;}</style><BODY><TABLE><TR><TD colspan=100%><a href="http://www.trulynolen.com/questionnaire?l=14115468&o=141050070&z=85087-7515"><img src=http://newsletter.tnolen.com/email/service.png border=no></a></TD></TR><TR><TD align=center class="ending">If you would not like to receive email communication from Truly Nolen in the future, please <a href="http://newsletter.tnolen.com/unsubstart.asp?b=14115468&z=85087-7515&e=[email protected]/unsubstart.asp?b=14115468&z=85087-7515&e=[email protected]">click here</a></TD></TR></TABLE></BODY></HTML>

  • I loaded adobe reader and I can not open a pdf file.  It keeps telling me I need adobe acrobat.

    I loaded adobe reader and I can not open a pdf file.  It keeps telling me I need adobe acrobat.

    What is your operating system?
    You don't need Acrobat to view PDF files; can you post a screenshot of that message?
    Also, is this a local or online PDF?  If online, in what browser?

  • Adobe reader not associating with pdf files

    i've installed adobe reader X after reinstalling windows, but reader is not associating with pdf files and also not showing in "open with.." list, even after browsing and try to associate it manually it's not visible in recommended program list and in other program list. to open pdf files i've to open adobe reader and then open files.

    Please use the "Adobe Reader and Acrobat Cleaner Tool" from http://labs.adobe.com/downloads/acrobatcleaner.html and remove any traces of Adobe Reader already on your system.
    Post successfully removing the application, please re-install Adobe Reader from: http://get.adobe.com/reader
    Hope this helps
    Ankit

  • Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files with Digital Sign

    Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files with Digital Sign, why?

    hi  Phillip
    i am not sure what you mean
    I downloaded the ifilter and installed it
    then configured everything as shown in the pdf file
    I tried indexing from scratch exactly as i did successfully in the other computer
    and got some errors in the log file
    i checked the sql server log and the event viewer logs and got :
    Error '0x80004005' occurred during full-text index population for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'), full-text key value 0x0000027A. Attempt will be made to reindex it.    
    The component 'PDFFilter.dll' reported error while indexing. Component path 'C:\Program Files\Adobe\Adobe PDF iFilter 9 for 64-bit platforms\bin\PDFFilter.dll'.   
    Informational: Full-text retry pass of Full population completed for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'). Number of retry documents processed: 1. Number of documents failed: 1.
    Changing the status to MERGE for full-text catalog "Pirsumim_ext_catalog_ck" (5) in database "Pirsumim_ext_ck" (14). This is an informational message only. No user action is required.
    Informational: Full-text Auto population initialized for table or indexed view '[Pirsumim_ext_ck].[dbo].[T_PUBLICATIONS]' (table or indexed view ID '2073058421', database ID '14'). Population sub-tasks: 1
    the same dll worked fine in another computer...
    how can i see more details what is wrong with this dll  ?
    meidad

  • Is it still possible to attach sticky notes to a pdf file? Which Adobe product will enable this?

    Is it still possible to attach sticky notes to a pdf file? Which Adobe product do I need to do this?

    Both Acrobat and Reader 10/11 can, and previous versions of Reader can if the document is enabled to allow it. Mobile versions of Reader can too.

Maybe you are looking for

  • Disappearing Application Windows?

    Hi, I am running mac os x 10.5.5 on a 3.06 24inch imac with 4gb ram. recently I have a worsening issue with application windows disappearing. It seems to happen with all applications intermittently & i cant pin down why it is happening. I do use spac

  • Will frequent removal of headphones from the headphone jack damage the jack

    As said in the subject. Will it damage? Thanks!

  • Email accounts/addresses

    When I compose an email on the iPhone, in the 'from' field it lists several email addresses I own. How to I manage these because some of the email addresses are not listed in my email accounts settings.

  • Why no response to my questions creat

    I uninstall then re-install my drivers and software,also I place the card onto a different pci slot .Still when I do a dxiag sound test they say my card don't support software buffering !what gives?.Also i dont get my 5. sourround sound work like it

  • How to respond

    I received a response from MattAUSupport and have no idea how to answer him nor get back to see if anyone else responded