JavaScript dosent work with PDF

Hei,
I have put javascript in my pdf form. I have included it in button, but when I push the button nothing happend (Eny error message dosent occure javascript itself). Does enyone know why so? Have I configurate something in my pdf form...
Thank you for your help.

See:
How to save a PDF with Acrobat JavaScript by Thom Parker
http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
For Acrohat X version 10.1.1 see
User JavaScript Changes for 10.1.1 (Acrobat | Reader)
http://kb2.adobe.com/cps/915/cpsid_91534.html

Similar Messages

  • How to work with PDF forms filled up by the user?

    I would appreciate any help regrading work with PDF Forms.
    I present a PDF form to users with several fields that they need to fill up.
    My problem is to receive the values of these fields back.
    In PDF forms you can add a "Submit" button that sends the fields to a given servlet.
    That, however, takes me out of my session and out of JSF navigation model.
    I can't find a way to go back.
    The PDF form is shown in an iframe, so Java Script outside of the iframe cannot know about the "Submit" button action.
    Thanks for any help or reference on this subject.

    Hi Sridhar
               Thanks for ur reply. but iam not getting any clear idea on forms.
    just i will tell u , wat i understood,if i am wrong pls correct me. in pe51 we create form layout
    and specify fields in required format, later run the program RPCEDTU0.wat is the program  for indian payroll?
    thanks in advance.

  • I am new to working with pdf.  I am trying to fill out a form that was attached to a web site.  I have a Macbook Pro.  I am just learning Acrobat.  How do I get the form to accept input?

    I am new to working with pdf.  I am trying to fill out a form that was attached to a website.  I have a Macbook Pro and I am trying to learn Acrobat.  How do I get the form to accept my input?

    If there are Acrobat PDF form fields, not jus a space for a form field, then you will have to add them. It would be better to ask the provider of the form to add the fields. If you cannot add the fields, then you can use the add text feature.
    Have you looked in the "Tools" panel for the "Forms" category?
    Try Acrobat Users Community Tutorials , http://acrobatusers.com/tutorials.
    See Adobe TV - Acrobat, http://tv.adobe.com/channel/how-to/acrobat-xi-tutorials/.

  • Working with .pdf files and JAVA

    Hi,
    does anyone have an answer to how I can find more information on .pdf files?
    I would like to convert .pdf files to textfiles and/or xml files. I can not find it in the j2se Edition, and someone told me it can be found in the j2ee edition, but I can not find anything there either. Please help..
    thanks,
    R.

    thanks for your reply. What tools do you mean? I know lots of tools for converting text to a .pdf file, but no tools for the other direction. There is an API available (commercial), that lets you work with PDF in JAVA, but i am interesting in the other possibilities.
    Regards

  • Update JavaScript to work with Acrobat 8

    A predecessor created the following JavaScript to add a menu i
    tem that inserts a background image.  This works in Acrobat 7 but only in Acrobat 8 if Acrobat 7 is or was installed previously, clean installs of Acrobat 8 and the script does nothing.
    Is there anything that needs to be changed in the script for it to work with new installs  of Acrobat 8?
    //add background function
    background=app.trustedFunction (
    function ()
    app.beginPriv();
    this.addWatermarkFromFile({
    cDIPath: "/c/invoice/invoice.pdf",
    bOnTop: false,
    nHorizAlign: app.constants.align.center,
    nVertAlign: app.constants.align.middle,
    nOpacity:100;
    app.endPriv();
    //Add functions to menu
    app.addMenuItem({cName: "Add invoice background", cParent: "Document", cExec: "background()",cEnable: true, nPos: 1});
    Thanks

    There is an error which mentions "missing { after property list".  Anyway, I changed the following in the script and it now functions as expected:
    nOpacity:100;
    to
    nOpacity:1.0
    Thanks

  • Full-Text search is not working with PDF files - SQL Server 2012 64 bit

    Hi,
    We are in the process of storing PDF files in SQL Server 2012 with Full-Text search capability.
    I followed the steps as below and it works fine with word document but not for PDF files. I tried with PDF ifiler 11 & 9 and both are unsuccessful.
    Server/DB Level Settings:
    1)
    Enable FileStream
    2)
    Install Full-Text
    then restart
    3)
    Use [specific db]
    alter
    database [db name]
    add
    filegroup Files
    contains filestream;
    alter
    database [db name]
    add
    file (
    name = N'Files',
    filename =
    N'D:\SQL\DATA') to
    filegroup [Files];
    3)
    Database level
    Settings:
    FileStream:
    FileStream
    Directory name:
    [Set the name]
    FileStream
    non-transacted
    Access: [set Appropriate]
    3a)
    Add a
    datafile to DB
    with filestreamdata
    filetype.
    4)
    Share D:\SQL\DATA
    directory and
    add specific accounts
    with read/write
    access
    5)
    Give bulkadmin
    access to those
    specific accounts
    at server
    level
    6)
    From the
    page (link)
    download and
    install the *.pdf
    IFilter for
    FTS. Link:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542
    7)
    To the
    PATH global system
    variable add
    path to the
    catalog,
    where you installed
    the plugin.
    Default for
    this version is:
    C:\Program
    Files\Adobe\Adobe
    PDF iFilter 9
    for 64-bit
    platforms\bin
    8)
    From the
    page (link)
    download a
    FilterPackx64.exe
    and install
    it. Link:
    http://www.microsoft.com/en-us/download/confirmation.aspx?id=20109
    9)
    Now from
    SSMS execute the following
    procedures:
    -sp_fulltext_service
    'load_os_resources',1
    -sp_fulltext_service
    'verify_signature', 0
    EXEC
    sp_fulltext_service
    'update_languages';
    -- update language list
    EXEC
    sp_fulltext_service
    'restart_all_fdhosts';
    -- restart daemon
    reconfigure
    with override;
    10)
    Restart the
    server
    11)
    select document_type,
    path from
    sys.fulltext_document_types
    where document_type
    = '.pdf'
    -select
    document_type,
    path from sys.fulltext_document_types
    where document_type
    = '.docx'
    12) Results are OK.
    Following is my Table /Index/ catalog script:
    CREATE
    TABLE dbo.DocumentFilesTest
    DocumentId  INT
    IDENTITY(1,1)
    NOT NULL
    PRIMARY KEY,
    AddDate datetime
    NOT NULL,
    Name nvarchar(50)
    NOT NULL,
    Extension nvarchar(10)
    NOT NULL,
    Description nvarchar(1000)
    NULL,
    FileStream_Id UNIQUEIDENTIFIER
    ROWGUIDCOL NOT
    NULL UNIQUE DEFAULT
    NEWSEQUENTIALID(),
    FileSource varbinary(MAX)
    FILESTREAM DEFAULT(0x)
    go
    --Add default add date for document   
    ALTER
    TABLE dbo.DocumentFilesTest
    ADD CONSTRAINT
    DF_DocumentFilesTest_AddDate
    DEFAULT sysdatetime()
    FOR AddDate
    EXEC
    sp_fulltext_database
    'enable'
    GO
    IF
    NOT EXISTS
    (SELECT
    TOP 1 1 FROM sys.fulltext_catalogs
    WHERE name
    = 'Ducuments_Catalog_test')
    BEGIN
    EXEC sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'create',
    'D:\SQL\PDFBlob';
    END
    --EXEC sp_fulltext_catalog 'Ducuments_Catalog_test', 'drop'
    DECLARE
    @indexName nvarchar(255)
    = (SELECT
    Top 1 i.Name
    from sys.indexes
    i
    Join sys.tables
    t on 
    i.object_id
    = t.object_id
    WHERE t.Name
    = 'DocumentFilesTest'
    AND i.type_desc
    = 'CLUSTERED')
    PRINT @indexName
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'create',
    'Ducuments_Catalog_test', 
    @indexName
    EXEC
    sp_fulltext_column
    'DocumentFilesTest',
    'FileSource',
    'add', 0,
    'Extension'
    EXEC
    sp_fulltext_table
    'DocumentFilesTest',
    'activate'
    EXEC
    sp_fulltext_catalog
    'Ducuments_Catalog_test',
    'start_full'
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    ENABLE
    ALTER
    FULLTEXT INDEX
    ON [dbo].[DocumentFilesTest]
    SET CHANGE_TRACKING
    = AUTO
    ALTER
    FULLTEXT CATALOG
    Ducuments_Catalog_test REBUILD
    WITH ACCENT_SENSITIVITY=OFF;
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'pdf'
    'BOL12006553.pdf'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\BOL12006553.pdf',
    SINGLE_BLOB)
    AS BLOB;
    GO
    INSERT
    INTO DocumentFilesTest(Extension,
    Name,
    FileSource)
    SELECT
     'docx'
    'test.docx'
    * FROM
    OPENROWSET(BULK
    'd:\SQL\PDFBlob\test.docx',
    SINGLE_BLOB)
    AS Document;
    GO
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'BILL')
    Returns nothing. it should come from PDF file
    SELECT
    d.*
    FROM dbo.DocumentFilesTest
    d WHERE
    Contains(d.FileSource,
    'TEST')
    Returns from word document as follows:
    2           2014-06-04 10:11:41.393            test.docx docx           
    NULL   [BINARY Value]  [Binary Value]
    Any help is appreciated. Its been a long wait.
    Thanks,
    Vel
    Vel Thavasi

    Hello,
    Did you check the fulltext log files for more details about the errors. If the filter isn’t working, there should be errors in the error log file.
    The following thread is about similar issue, please refer to:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/69535dbc-c7ef-402d-a347-d3d3e4860d72/sql-server-2008-64bit-fulltext-indexing-pdf-not-working-cant-find-ifilter
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • Zoom to fit doesn't work with Jpegs (works with pdfs)

    Note: we are not talking about zoom to fit for pdf, etc but ONLY about zoom to fit for jpegs and similar graphics files.
    The problem: starting with Snow Leopard if you have a small picture in actual size but expand the window then click zoom to fit the picture will not expand to fit the larger window (yes it reduces resolution). Please don't tell me it works fine for PDFs, we know it does but talking about jpegs and similar graphics. Dozens have reported this problem but the response was to disregard the postings and then archive them. Does everyone have the same problem with JPEGS under Snow Leopard (with Jpegs only)? Anyone have a solution? A year ago someone posted and had dozens reply. Here is the posting a year ago:
    "Hello, just checking to see whether other people are having the same problem with Snow Leopard. In Preview, if you resize the window and then click View --> Zoom to Fit, it simply resets to actual size. In Leopard, it would resize the picture to fit the window.
    Is this broken for others? "

    baltwo wrote:
    If you want Apple's engineers to address your issue, then you'll have to take the time to register and report it via its bugreporter system; otherwise, your complaints are just rants and won't be addressed. Here's a quote from an Apple employee that worked with AppleScript:
    +"Even if we already know about the issue, bug reports help guide prioritization and may provide more information to help us reproduce a problem or help ensure an enhancement meets your specific needs.+
    +When reporting bugs, please provide detailed steps. In the case of AppleScript, a sample script that reproduces or illustrates the issue and which is as short and clear as possible helps immeasurably. (The ideal case is when the problem can be reproduced by running a script in Script Editor, without using any additional applications. If the problem requires sending events to another application, be sure to note whether the problem only occurs with that application.+
    +For enhancement requests, it helps to include a description of your general needs, not just specific UI or behavioral changes. It helps us to understand how you wish to use the software, which helps guide larger design changes."+
    If the process isn't worth your while or you don't think they're doing it correctly, then these forums are not the place to voice your objections.
    What isn't worth my while is responding to your continual posts telling me to jump through a million hoops, in territory completely foreign to me, just to describe a simple problem. Applescripts, larger design changes, sample scripts, my general needs? Come on man, one feature of a basic program is not functioning properly, this is not rocket science, nor does it entail a great deal of complicated & detailed data! And really, if these forums are not the place to voice problems with the functioning of Apple's basic software, what are they for?
    < Edited by Host >

  • External Javascript not working with C# and XAML windows phone app

    I've added a WebView into my project. If I navigate to the html file that contains external javascript files they don't work. Bit if I write the javascript code hardcoded into the html file it works properly.
    Here is the html portion:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="testjs.js"></script>
    </head>
    <body>
    <div id="abcd"></div>
    <br/>
    hello! this is a simple html block.
    </body>
    </html>
    Here is the javascript portion:
    document.getElementById("abcd").innerHTML = "New text!";
    When I open the webview it shows
    hello!
    this is a simple html block.,
    but if the javascript code worked it would show
    New
    Test! hello! this is a simple html block.
    And in the C# code the uri is called this way:
    url = onlineTestWebView.BuildLocalStreamUri("myUrl", "problem_page/test.html");
    StreamUriWinRTResolver myResolver = new StreamUriWinRTResolver();
    onlineTestWebView.NavigateToLocalStreamUri(url, myResolver);

    I assume this is because you are using NavigateToString. Please see
    http://blogs.msdn.com/b/wsdevsol/archive/2014/06/20/a-primer-on-webview-navigatetolocalstreamuri.aspx
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Work with PDF created from scan

    Hi, how can I edit or work with text (highlight, copy...) in document which was created as PDF by scaning from the book?

    rudla wrote:
    Hi, how can I edit or work with text (highlight, copy...) in document which was created as PDF by scaning from the book?
    Perhaps, you could load the scanned document in photoshop, photoshop elements or even in Corel's Paintshop Pro.  All of these programs can be downloaded for trial use for 30 days and you never know you could be tempted to buy them because they are so good that you would want them to do wonderful things with them.
    Good luck.

  • How can i get javascript to work with version 18 - all boxes ticked but still problem

    I have WINDOWS 8 (for 2 weeks) , Firefox v18. I try to use a banking site that demands javascript but when I try to use the site, I get "javascript not working (or available).
    If I go into Youtube , any video I pick fails to run - instead I get flashing video screen
    I have set Javascript enabled but no difference.
    can anyone point me in right direction .
    I have reloaded Firefox and reset it - problem still exists

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Hp 6500A plus wireless printer = hp eprint not working with pdf

    I have a brand new HP 6500 A plus wireless printer.
    I tried to print using hp eprint center by sending a pdf as attachement to printers email address.
    But the printer doesn't like the pdf and prints a error page instead with below message.
    =======
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to latest version of Adobe Reader for windows, Mac, or lInux by
    visiting blah blah blah..
    =======
    I see that i have recent version of adobe reader - Adobe Reader X - Version 10.1.0
    Please help and let me know if someone already had a solution. 
    HP Customer Support - ?
    Thanks
    Antony.
    This question was solved.
    View Solution.

    Oh..Yes. It worked. !!
    Thanks Jack for your inputs, that helped a lot.
    The issue was not with the printer, but that the PDF document itself was a secured PDF document.
    I tried copying the document from my pc to mac and tried to open the document and what i saw was exactly what got printed earlier in my first post.  Tried attaching to my email and when downloaded, the document had just those text that got printed (also pasted below).
    Finally got it working when directly printed from the pc over wireless(or wired). Looks good now . 
    =======
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to latest version of Adobe Reader for windows, Mac, or lInux by
    visiting blah blah blah..
    =======
    Thanks
    Antony.

  • Javascript not working with 'Display as Text (does not saves state)'

    Hi,
    We have these following items in P3 of our application,
    P3_EDIT_ACCOUNT Display as Text (saves state)
    P3_USEFUL_LINKS Display as Text (saves state)
    P3_LAST_APPROVED Display as Text (saves state)
    P3_ARCHIVES Display as Text (saves state)
    And we are initializing these items in a pl/sql process under 'Page Rendering'
    For example,
    :P3_ARCHIVES := '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> ';
    When our environment was upgraded from HTMLDB1.5 to HTMLDB2.0,
    instead of displaying the proper value of :P3_ARCHIVES,
    it was displaying the tags,
    i.e. instead of displaying 'Archives', it was displaying the whole
    '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> '
    So, when we changed all items to 'Display as Text (does not saves state)' and it was working.
    But then we have another problem,
    We render the rest of the same page with another pl/sql block,
    Here is a portion from that pl/sql for your reference,
    htp.p('
    <script>
    //Script to check the status change.
    //The script source is rendered through PL/SQL.
    function checkStatus()
    var promptStr = someString;
    if(ans.toUpperCase() == "AMBER" || ans.toUpperCase() == "RED")
              var cnfm = confirm(promptStr);
              if(cnfm)
              do something....
    </script>
    htp.print('
    <td width="5%" bgcolor="#ebebc5" height="19" align="middle" >
    <input TYPE="radio" name="'||l_g_fnumber||'" value="GREEN"');
    IF l_allow_update THEN
         htp.print(' onClick="checkStatus()"');
    ELSE
    htp.print(' disabled onmousedown="return false;"');
                        do something....
    Now the issue is , when we changed all items to 'Display as Text (does not saves state)', the checkStatus() function is not getting called in the onClick
    event of the radio button and hence the confirm window for the call to
    confirm(promptStr) is not coming up.
    But if we revert back the items to 'Display as Text (saves state)',
    the checkStatus() javascript function is getting called properly but html tags are displayed against the items instead of the proper value (as mentioned in ********)
    Please do let us know a possible solution to this issue.
    Thanks & Regards-
    Rupak

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • Javascript not working with web.show_document.

    Hi,
    I executed the below command from forms 10g and it is not working.
    web.show_document('javascript:var win=showModalDialog("http://otn.oracle.com/products/forms");','_self');
    But if I execute javascript:var win=showModalDialog("http://otn.oracle.com/products/forms"); directly in IE, then it is working.
    Frank, can you help me in this or any other people having any idea ?
    Very urgent.
    Thanks & Regds,
    Nandakumar

    Hi Mark,
    Thanks for your quick reply. Your question is right. I think let me explain clearly my requirement. I have an application accessed in the web. A internet user is trying to a report through the application by giving a parameter as "A". Now using the window.open method, the report is displayed in the IE browser. Now the user can go to history and can see the complete URL with parameters.
    If he just copies and pastes that url from history in the browser, the reports runs successfully. If he changes any of the parameter to "B", there is a chance that report will show the report for parameter "B". This should not happen.
    Hope this is clear. Let me know if you are not still clear. Moreover, in the IE it is possible to clear history, but for internet based applications, how can we set them.
    Thanks & Regds,
    Nandakumar

  • Preview: Working with PDF Forms

    Hi all,
    We had a faculty member (using a mac and preview) edit one of our PDF form docs (created using Acrobat Professional 8). The problem we have noticed is if the user fills out each field using Preview, then saves the document (PDF again) and sends to us her data has disappeared when we open it in Adobe Reader or Professional. the funny thing is...if you click in (for example) field 1 the data shows. But, as soon as you remove focus from that field it disappears again.
    So, in testing this. If you open the document back in Preview the data is there. Again, this only happens if the form is filled out using Preview. Any ideas - I've seen this problem around the web, but no solutions.
    Thanks in advance!
    mz

    Hello -
    I don't know that there -is- a fix; it's a limitation of Preview, Acrobat Reader, etc. (With Reader, you'll actually get a warning message to the effect 'You won't be able to save a completed copy of this form on your computer ...')
    Your user can use the print dialog to save the completed form as a PDF, if that'll work in your application.
    Good luck.
    srb

  • Javascript not working when pdf is rendered in the browser IE9

    I have a javascript on the initialize event of a field and it works fine when doing a Preview PDF but not when i render the PDF in the browser
    if(F.Page_1.field1.rawValue == null)
               F.Page_1.field1.presence = "invisible";
               F.Page_1.field2.presence = "visible";
    Can some one pelase help?
    Thanks,
    F.Page_1.field1::initialize - (JavaScript, client)

    Hi,
    The initialize event is supported in browsers, but the issue may be if the form is saved as a Dynamic XML Form in the save-as dialog in LC Designer. Or if you using LC Enterprise Suite to render the forms at runtime, if you have set the render in LC Designer: File > Form Properties > Defaults to Dynamic XML Form:
    Changing an object's presence requires a dynamic form.
    Niall

Maybe you are looking for