Examine Document... using Acrobat javascript

Hi,
I am using Acrobat 9 version.
I have a pdf which has some hidden text. I am using Acrobat menu  Document -->Examine Document... to find if the PDF has any hidden text or not.  If the Examine Document... shows the Hidden text (1 page), then I remove the hidden text using Remove button at the bottom of the examine status window.
My question is, it is possible to do this task using Acrobat Javascript.
I am having more than 500 PDFs, so opening each and evert PDF and examining the documnet takes more time. If there are options in Javascript, please let me know.
Thanks,
Gopal

Thanks for your reply.
The preflight option "List invisible text objects" does not generate the report saying that the PDF has invisible text objects.
Also, "PDF names"means name of the PDF document (Ex: sample.pdf). Is there any way to achieve this using Javascript code?
Thanks,
Gopal

Similar Messages

  • URGENT: Manage access rights on pdf document using Acrobat Javascrip

    Hi everybody,
    I have pdf document on my website, and I want to manage access right on those documents, some users has the right to print, save the document and others not,
    So I'd like to know if it is possible to do it using Acrobat Javascript, and how I can do it if you have any exemple of script, document it will be very helpfull for me, I'm looking for that from two weeks already!!
    Thx

    Hi
    I'm not shouting !! I wish I could find the answer some where then I'll not post my message, plz if you have some answer that you think that it will help me then tell me and I'll be thankfull, and if you don't have any useful answer then PLZ forbear and I'll be thankful too.

  • I am trying to convert a PDF to a Word document using Acrobat Pro 9 but am unable to find "Content to edit" under tools.  Do I need a newer version?

    I am trying to convert a PDF to a Word document using Acrobat Pro 9 but am unable to find "Content to edit" under tools.  Do I need a newer version?

    Acrobat 9 Pro (not Standard) can export ("convert") PDF to Word, RTF, or other text formats.
    Click-path:  File - Export
    Take your pick.
    With install of Acrobat 9 the Help PDF is installed also.
    From the this PDF's Bookmarks expand Chapter 5's bookmark and select "Convert PDFs to Word".
    Be well...

  • Plug_in:how to unlock a locked document use acrobat API

    how to unlock a locked document use acrobat API.in acrobat plug_in

    how to unlock a locked document use acrobat API.in acrobat plug_in(Which API can enter a password to unlock the locked document)

  • How to execute preflight profile using Acrobat Javascript

    Execute a pre-flight profile using acrobat javascript and  call that function in VB.Net.

    See: http://help.adobe.com/livedocs/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/common/htm l/wwhelp.htm?context=Acrobat10…

  • Error opening DRM PDF document using Acrobat Reader

    I am having problem opening a DRM PDF document using Acrobat Reader. When I open the document I get a message if I want want to connect to xx.xxxxx.xx server (Allow / Disallow), I click Allow then I get this error message without prompting me for the login box.
    "An error occurred while performing this operation. Contact an administrator if this problem continues."
    What is strange is that when I open the document using Acrobat Professional then there is no error and I get login box.
    I tried this in Acrobat 8 and 9 Reader with latest updates.
    Please help.

    The problem is the enhanced security, turned on by default, in Adobe 8.2 and 9.3 - specifically restrictions on cross domain scripting.  
    You need to install a crossdomain.xml file in the root of your application server.
    See the Enhanced Security and Troubleshooting Guide and FAQ: http://learn.adobe.com/wiki/download/.../Enhanced_security_faq.pdf
    And the Cross Domain Policy File Specification: http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

  • Getting Error:Digitally Signing documents using Acrobat SDK

    I am using following API's to digitally sign a document using Acrobat SDK but getting error(return code -2) while making a call to folllowing API DigSigCommitSigRefDict(ASAtomFromString("DocMDP"), tempDict, &pOutRefDict);
    What am i missing?
    Here's my code.
        CosObj sigDict = CosNewDict(cosDoc, true, 1L);                         //Signature Dictionary Cos Object
        CosObj  sigRefDict= CosNewDict(cosDoc, true, 1L);                    //Signature Reference Dictionary Cos Object
        CosDictPut(sigRefDict, ASAtomFromString("TransformMethod"), CosNewName(cosDoc, false, ASAtomFromString("DocMDP")));
        CosDictPut(sigRefDict, ASAtomFromString("Type"), CosNewName(cosDoc, false, ASAtomFromString("SigRef")));
        refArrayObj = CosNewArray(cosDoc, false, 1L);                         //Reference array object inside signature dictionary
        CosArrayInsert(refArrayObj,1, sigRefDict);
        CosDictPut(sigDict, ASAtomFromString("Reference"), refArrayObj);
        CosDictPut(sigDict, ASAtomFromString("Type"), CosNewName(cosDoc, false, ASAtomFromString("Sig")));  
        CosDictPut(sigField, ASAtomFromString("V"), sigDict);               //SigField is an AcroForm object
        DSSigRefDictParamsRec myDSSigRefDictParams;
        myDSSigRefDictParams.size = sizeof(DSSigRefDictParamsRec);
        myDSSigRefDictParams.cosDoc  = PDDocGetCosDoc(pdDoc);
        myDSSigRefDictParams.rootObj   = cRoot;
        myDSSigRefDictParams.sigDict   = sigDict ;
        myDSSigRefDictParams.transformMethod   = ASAtomFromString("DocMDP");
        //myDSSigRefDictParams->transformParams   =
        myDSSigRefDictParams.bIndirect    = true;
        DSSigRefDictErrParams errParams;
        DSRetCode retCode = DigSigNewSigRefDict(&myDSSigRefDictParams,errParams);
        CosObj pOutRefDict;
        retCode = DigSigCommitSigRefDict(ASAtomFromString("DocMDP"),sigDict , &pOutRefDict);
        retCode = DigSigFinishSigRefDict(ASAtomFromString("DocMDP"), sigDict , pOutRefDict,errParams);
    -amit

    Thanks for the tip George. I'm using Acrobat Pro X to create a form. Can you tell me how to make the form reader-enabled so that it can be digitally signed?
    Josh

  • Read xml file using Acrobat javascript

    Please let me know if a XML file can be read using Acrobat javascript.
    I need to read and store the xml data in a string.
    thanks,
    Sashi

    STEP - 2
    SQL>
    SQL> DECLARE
      2    l_ctx dbms_xmlsave.ctxType ;
      3    l_xml CLOB :=
      4  '<?xml version="1.0" encoding="UTF-8" ?>
      5  <NewDataSet>
      6      <ROW>
      7          <DEPARTMENT>BA52</DEPARTMENT>
      8          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
      9          <LOCATION>Australia</LOCATION>
    10          <MAY_2006>21668</MAY_2006>
    11      </ROW>
    12      <ROW>
    13          <DEPARTMENT>BA501</DEPARTMENT>
    14          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    15          <LOCATION>China</LOCATION>
    16          <MAY_2006>8166</MAY_2006>
    17      </ROW>
    18      <ROW>
    19          <DEPARTMENT>BA522</DEPARTMENT>
    20          <PCS_CONTRACT_TAG>MD-3GSM</PCS_CONTRACT_TAG>
    21          <LOCATION>Australia</LOCATION>
    22          <MAY_2006>21668</MAY_2006>
    23      </ROW>
    24  </NewDataSet>' ;
    25  BEGIN
    26      l_ctx := dbms_xmlsave.newContext(targetTable => 'XML_INSERT');
    27      dbms_output.put_line(dbms_xmlsave.insertXML(ctxHdl => l_ctx,
    28                                                  xDoc   => l_xml) ||
    29                           ' rows inserted.');
    30      dbms_xmlsave.closeContext(l_ctx);
    31  END;
    32  /
    3 rows inserted.
    PL/SQL procedure successfully completed.Regards.
    Satyaki De.

  • How to save and then close document Using Acrobat 9 (URGENT)

    I have been looking for a soultion for long time now but
    couldn't find any.
    I'm using a dynamic PDF form desgined using LC Desginer and created a button that should save the current opened form in the same location (no need to define the location because what I want to use is the command File -> Save) and then close the application (I'm using Acrobat 9 Pro Extended).
    I tried many scripts and gone throw JavaScript™ for Acrobat® API Reference but no luck.
    Once I click on the button I get the following error: NotAllowedError: Security settings prevent access to this property or method.
    Will you please help in this issue as it took long time and my project manager is pushing to get resolved ASAP.
    Guys, I'm new to this kind of tecnology so please be patient with me.
    Thanks in advance for your valuable help.
    The code I used in click event of the button is as follow:
    try{
         var myDoc = app.newDoc();
         myDoc.saveAs();
         myDoc.closeDoc(true);
    catch (e)
         xfa.host.messageBox(""+e);
    I used this earlier and got the same error:
    try{
          var myDoc = event.target;
         myDoc.saveAs();
    catch (e)
         xfa.host.messageBox(""+e);

    Hi Niall,
    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))} 
    The app.execMenuItem works here. Is your form designed to be opened in Acrobat/Reader or are you opening the form in html?
    The form will be opened by Acrobat/Reader. The statement worked but what I need is to save the PDF in the current location without popping up the Save As dialog box. In other words I would like to perform Ctrl+Saction and then exit the application not only close the form because the Content Management Solution we are using will require the application to be closed so it can CheckIn the document.
    I tried to use app.execMenuItem("Save");  but it seems it is not working because once I try to close the application or the form using app.execMenuItem("Close"); the do you want to save changes to "FORM" before closing? dialog box pops-up.
    For closing the application I tried app.execMenuItem("Exit"); and I got this error: InvalidArgsError: Invalid arguments.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))}Also you may want to consider how you are reader enabling the form. If you are using Acrobat to extend the form, then certain features like database connections will not work.
    The customer has Adobe LC Reader Extension so I will use it to extend the PDF but right now I do use Acrobat so I don't need to extend the PDF everytime I need to test it.
    Can I get all the arguments that execMenuItem uses?
    I really appreciate your help Niall.
    PS: I couldn't reply earlier yesterday because my work is on the server and I was at home (my time is +3 GMT it was night when I got your reply)
    Regards
    Mazen

  • How can I make some restictions in a PDF document using Acrobat 9 pro?

    Hello, I am a teacher from Spain. I am creating a PDF from a power point presentation, using Adobe Acrobat 9 pro. I will copy it in a cd and give it to my students. I would like to add these restrictions:
    I would like to avoid that they can copy this document.
    I only want to allow them to print it once.
    Thank you

    You can prevent copying of content (text and images) by setting permissions on the PDF file using Acrobat (apply password security, leaving the document open password empty).
    It is not possible to limit the number of times a PDF file is printed, no matter what settings you use. Printing can be disabled completely, or restricted to low-resolution output, but that is all. Even if it were somehow possible to restrict how many times Reader or Acrobat was allowed to print, there is no way to stop someone changing the copy number in the operating system print dialog, as that is beyond the control of any installed program. A printable PDF file can also be printed to another PDF file (called refrying), which will remove any interactive restrictions on the original.
    Note that permissions security is only respected by Adobe software. Third-party applications will often ignore the restrictions and allow all operations. The only way to truly protect the file is to apply a security method which is only found in Adobe products (such as LiveCycle policies), which will as a side-effect prevent anyone from opening the file in a third-party application that might not respect the restrictions.

  • Save editable form into regular PDF document using Acrobat Reader

    Hello,
    With Adobe Pro, I've created a PDF form using the following:
    Save As Other...
    Reader Extended PDF
    Enable More Tools (includes form fill-in & save)...
    Once saved, I am sending this form to colleagues for them to fill out.  These colleagues only have access to Acrobat Reader.
    What I'm hoping to do is to have them save the file into a regular PDF document with the info inserted in the form but without the option to change the form info (change from editable form to regular PDF file).
    Thanks for your help.

    Hrm, OK. Well I actually DON'T have my document set as a reader extended PDF. If i fill out my fields then try to use the sign feature, it's not flattening the fields when I save/close reopen. They are still editable.
    Just as a test, I saved it as reader extended and the sign feature is grayed out as you stated it should be. I am using acrobat X to create my fields and using reader XI to test inputting data/saving.
    I need users to be able to fill it out, save then send and the recipient NOT be able to modify the fields. Am I missing something with the sign feature?
    Thanks again for the reply!

  • How to search a word in PDF using acrobat javascript?

    Hi,
    I need to find a word in acrobat PDF using javascript. I used
    find text("abx");
    select text("abx");
    This doesn't work for me..
    Someone guide me.
    Thanks in advance,
    Poovili V

    I used
    find text("abx");
    select text("abx");
    This doesn't work for me..
    That is not Acrobat Javascript. In the Acrobat Javascript Reference look for the method getPageNthWord.

  • Opening encrypted attachment using Acrobat JavaScript exportDataObject

    Hello Folks,
    We are trying to implement an open button in our main pdf file, which tries to open an encrypted attachment in the pdf doc. The attachment is also a pdf document. Below is the code that we are using :-
    var doc = event.target;
    var dataObjects = doc.dataObjects;
    var file;
    var e;
    var i;
    for (i = 0; i < dataObjects.length; i++)
        file = dataObjects[i].name;
        try
            doc.exportDataObject({ cName: file, nLaunch: 2, bAllowAuth:true  });
        catch(e)
            app.alert(e.message);
    This code works fine, when the user clicks open button, a dialog box opens asking for username and password, which tries to connect to the Rights Management Server and authenticates user. The authentication is derived by custom policies for each user on the Rights Management Server.
    The problem is that if the user clicks cancel button on the login dialog box, then the box closes, and the control goes in the exception block, which is fine, but next time the user clicks on open button the control directly goes to the exception block, without opening the login dialog box.
    And then the user has to close acrobat reader completly and open the file again to be able to click on open button and get the login dialog box.
    I am open to implement any kind of Javascript solution, let me know if anyone has any pointers.
    Thanks,
    Amit.

    That seems right to me. Is there a way to prevent that caching ? Like programatically or through configuration ?
    One thing I forgot to mention, this does not happen on all the machines, on some machines, it works fine, I click on open, click on cancel, again click open and the box appears just fine. While on other machines, once I hit cancel on the login dialog box, the dialog box never appears again, the above code keeps going in the exception block.
    So I am wondering if it is because of some setting in acrobat reader ?
    Also, if its a caching issue, do you think that there could be a programmatic or configuration workaround this issue ? like cleanig all cache before attempting to open attachment ? or cleaning the whole acrobat temp directory ? or may be using some routine other than exportDataObject ?
    I am asking this because the attachment section in the left side navigation buttons panel, built into Acrobat Reader works fine, I mean if I open the attachment from that section, and hit cancel on login dialog box, and try to open again, it just keeps opening fine. It fails only with the above code on some machines....
    Thanks,
    Amit.

  • How do I split a large PDF into multiple documents using Acrobat?

    Will acrobat split a large document into mulitple documents.  Not extract but split.  Also can you delte pages with it?

    Hi servidone,
    You can defintely do this with Adobe Acrobat.  Please see this page for details on how to accomplish the tasks you were asking about: https://helpx.adobe.com/acrobat/using/manipulating-deleting-renumbering-pdf-pages.html
    -David

  • I need to digital sign a document using Acrobat Reader. Is it possibile?

    I am an IT Manager for a little city in northern italy.
    I have almost 50 clients with smart cards enabled for what concerns digital signage.
    I use flawlessy the software of the firm who provides the smart card. (infocamere.it).
    This uses sha256 crypt, no problems about it.
    The problem I have is:
    The final file is a "p7m" envelope.
    I would prefer to use a "pdf" envelope. One only file.
    I tried to follow this video
    http://tv.adobe.com/watch/acrobat-x/how-to-digitally-sign-a-document-with-adobe-reader/
    Simply it doesn't work.
    I have also a couple of Acrobat Standard.
    I can "pdf-sign" with Acrobat Standard 9.
    I am not able to do the same with reader 9 or X.
    There is a way to do it?
    Thank You.

    You can sign a PDF using Adobe Reader 9 or X, but the document must be "Reader Extended" to enable this functionality, This can be done using ADEP\LiveCycle Reader Extensions (server product) or Acrobat Professional 9 (Advanced > Extend Features in Adobe Reader) or Acrobat X Professional (File > Save As > Reader extended PDF)
    For some more info...  http://www.adobe.com/eeurope/products/server/readerextensions/  or http://help.adobe.com/en_US/enterpriseplatform/10.0/Overview/WS92d06802c76abadb2c8525912dd cb9aad9-7ffa.html
    Regards
    Steve

Maybe you are looking for