Can I call the FindText function in "silent mode"?

i.e. I don't want the Acrobat popup and highlight the text. As, I just want to check the text is in the PDF file or not. Thanks.

Hi,
The easiest way to check if there is a specific word in the PDF file would be to use the PDWordFinder object, specifically the functions
PDWordFinderAcquireVisibleWordList or PDWordFinderAcquireWordList
and then use
PDWordFinderEnumWords
This should enable you to find the word or words without having any UI.
HTH
Malky

Similar Messages

  • Can we call the Datagrid Column Sort function?

    Is it possible to call the same function within the datagrid
    component that is used when we do an onClick event of the column
    headers? When you click on the column header, it will sort the
    column ascending or descending.
    I would like to call that same process after the datagrid is
    loaded, programmatically. But the same as if the user had clicked
    the column.
    I have looked at examples in the help that sort the
    dataprovider array. But if we are able to do this at runtime with a
    user clicking on the column, it seems that it should be possible
    since the datagrid is doing a sort on the internal dataprovider
    object for the datagrid.
    If it is not available now, this functionality should be
    added.
    Thanks.

    Yes, you can do what you want by setting the data provider's
    "sort" property
    to be an instance of class Sort, and putting one or more
    SortFields inside the
    Sort.
    If you put just a single SortField inside the Sort, then the
    header field will
    have the up/down triangle indicating the results of the sort,
    just as if the
    user had clicked on the column. If you put two or more
    SortFields inside the
    Sort, then there won't be a triangle, because of course it
    wouldn't make sense
    to put on there.
    Here is a small sample:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Array id="mydata">
    <mx:Object col1="b" col2="p" col3="z" />
    <mx:Object col1="c" col2="r" col3="y" />
    <mx:Object col1="b" col2="q" col3="x" />
    <mx:Object col1="a" col2="q" col3="x" />
    <mx:Object col1="d" col2="q" col3="x" />
    <mx:Object col1="c" col2="q" col3="x" />
    </mx:Array>
    <mx:ArrayCollection id="mycollection"
    source="{mydata}">
    <mx:sort>
    <mx:Sort>
    <mx:fields>
    <!-- This example has field "col2"
    as its primary sort field, and
    field, and field "col1" as its
    secondary sort field.
    If you remove one of these lines,
    so only a single SortField
    exists, you will see a triangle
    in the header of the sorted
    field in the DataGrid.
    -->
    <mx:SortField name="col2" />
    <mx:SortField name="col1" />
    </mx:fields>
    </mx:Sort>
    </mx:sort>
    </mx:ArrayCollection>
    <mx:DataGrid id="dg" height="474"
    dataProvider="{mycollection}" >
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1"
    dataField="col1"/>
    <mx:DataGridColumn headerText="Column 2"
    dataField="col2"/>
    <mx:DataGridColumn headerText="Column 3"
    dataField="col3"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Application>
    Mike Morearty
    Developer, Flex Builder team
    http://www.morearty.com/blog

  • How can I call a plsql function from an attribute?

    I have an attribute defined in an element. I want execute a PLSQL function from the attribute, and display the returne value with an HTML template.
    I've defined the attribute's type like PLSQL, and I've put the called of the function in the value of the attribute, but it doesn't work. The only value I obtain is an URL (I think that is the URL of the function or someting like this).
    How can I call to my function from the attribute and display the returnes value in the page?
    Thanks.

    Thanks, but it doesn't work. I have an attribute called ID_BOL and I want to associate a sequence to that attribute. I've created a function, with the sequence. This function return de value of the sequence. I want taht the attribute takes the value of the sequenece dinamically.
    I've tried it, creating the type attribute like PLSQL, and calling the function from the attribute, but it doesn't work.
    How can I return the sequence value to my attribute?
    Thanks.

  • Can we call a php function into coldfusion coding?????????

    can we call a php function into coldfusion??
    if anybody knows that let me know....

    Nope, as IIS can only pass one page to one handler, so it gets passed to ColdFusion *or* PHP. The only way it would work is to have a page with an iFrame containing a PHP page, but that's not calling a PHP function from ColdFusion.
    Dare I ask what it is you're trying to achieve exactly? If it's an extremely complicated function that can't possibly be rewritten, you'd probably want to wrap it up in a webservice and call it from CF.

  • *Can we call a Standard Function Module inside a Zfunction module ?*

    Can anyone please help me know whether we can call a Standard Function Module inside a Zfunction module ?
    I tried the same (No syntax error) BUT when i activate the zFunction Module it throws the error:-
    +'' REPORT/PROGRAM statement missing, or program type is INCLUDE. " +

    Yes, I got the Answer -
    We Can we call a Standard Function Module inside a Zfunction module.
    But we need to make sure that the Function Groups are activated.
    FUNCTION ZFM_TEST_NESTED_FM.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(EX_CONVERT_UPPER_CASE) TYPE  STRING
    CALL FUNCTION 'TERM_TRANSLATE_TO_UPPER_CASE'
      EXPORTING
      LANGU                     = SY-LANGU
        TEXT                         = 'gaurav'
    IMPORTING
        TEXT_UC                   = EX_CONVERT_UPPER_CASE
    EXCEPTIONS
       NO_LOCALE_AVAILABLE       = 1
       OTHERS                                    = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFUNCTION.

  • Where should i call the rfc function module? in xi or in r/3

    where should i call the rfc function module?
    for the synch scenario: file < -- >  xi <---> rfc
    i know the type of rfc is tcp/ip; but i'm not sure with the followings,
    and with some trials i can not even see any message via rwb even all the setting
    can be activated without errors.
    where should i create the rfc destination? in r/3 or xi
    where should i call the rfc via abap program? in r/3 or xi
    i guess the calling program should belong to the different server with the rfc itself....
    so confused....
    Thanks for your reply!!
    Jun

    if i create the destination in xi point to r/3, then i call the rfc use the destination in r/3 right ?
    The call doesnt use the destination in R3. XI has the RFC destination which is just used to connect to the R3 system
    but where i need to create the fm via se37? in xi or r/3 ?
    In R3
    Regards,
    Prateek

  • Does anyone have an example VI about how to call the animatewindow function in the user32.dll using CLN in Labview?

      I want to call the WinAPI function-animatewindow in user32.dll to produce some special effect when showing or hidding windows, but i don't know how to using this Win API to achieve my purpose?
      Does anyone have an example VI about this application?
      Thanks in advance for your help.

    You have to use the Call Library Function Node to call Windows API functions. The animatewindow function itself has some pretty simple parameters. You first need to get the window handle. There are a set of Windows API Function Utilities (32-bit) for LabVIEW that you can use. In there there is a VI (Get Window Refnum) that gets the window handle. It's a simple call to a Windows API function. You would call the animatewindow function in the same way. In this case there are 3 parameters: the window handle (returned by a FindWindow API call), a DWORD (32-bit integer) for the duration, and another DWORD for the flags.

  • Help in Calling the C Functions in ECC 6.0

    Hi All,
    We are in process of Upgrading from 4.6C to ECC 6.0.
    There is a particular report which calls the C function  'C_DIR_READ_NEXT' .
    In this the Parameter " ID 'TYPE' FIELD FILE-TYPE" is showing as (???)not getting the file type in ECC 6.0 where as in 4.6C it was working fine.
    Can any body please tell me why this so and is there any other C function which i can use in the place of this .
    Awaiting a favourable reply 
    wih rgds
    A.K.Ranjith Singh

    Hi Ranith,
    i know there is a new authotity-Object S_C_FUNCT included in this Function.
    Look at Note 766771.
    If you search in OSS with C_DIR_READ_NEXT, there are some Notes too.
    Hope it helps.
    Regards, Dieter
    You cal also look in RSWATCH0 (AL11) the use of this FM.
    Regards, Dieter
    Message was edited by:
            Dieter Gröhn

  • Error in calling the Remote Function Module

    Hi all,
    I am trying to call the Remote function Module which is in CRM  from ECC .
    But we are not able to detect the function module as it is showing the error as Function Module not found.
    Can anybody help us in calling the Remote Function Module .
    Regards,
    Madhavi

    Please check the foll 2 things :
    RFC radio button clicked in se37 for that FM
    RFC connection established with the remote server in SM59
    Thanks

  • How can i use the jvmti function GetLocalVariable

    can I get the example of using GetLocalVariable?
    (GetLocalObject, GetLocalInt, GetLocalFloat, GetLocalDouble)
    and if get the Value of Object, how can i print the object?
    last, in the java program, can i call the function of jvmti agent?
    I'm studying the exmaple of mtrace(demo of jvmti), I can understand how the jvmti agent works. expecially mtrace.java part. how it can connects java program and jvmti agent.
    if anyone know please let me know. thank you.

    Sorry for the slow reply, this wasn't a posting area I normally look for.
    First you need to use GetLocalVariableTable for a given method. That gives you the variable name to slot mapping (slot is kinda like an offset in the stack for an active stack frame). Then you can use GetLocalVariable to get a value, but you need to know which frame (depth), the topmost or active frame would be 0, and you need to know what thread, thread==NULL means the current thread. You'll need to parse the signature of the variable to know what it's type is and size is before you'd be able to make sense out of the value you get back, which I think is a union of all possible values.
    Hope this helps.
    -kto

  • Where to call the javascript function

    Hi,
    I am using JSF and ADF.
    I have a javascript function called by the body onload.
    The javascript is to set the first the first column of a table fixed.
    But when I click the next page link which is generated by defaut,
    the function from the javascript disappears.
    Can I call a javascript function when pressing the next page link which is
    generated by default ?
    Thanks.
    Ivan

    Hi Frank,
    My javascript function is to make the first column of the table fixed which
    is something like the function in the Excel.
    The function is called by body onload.
    But when the 'next page' link is clicked, it will not refresh the whole page.
    The above cannot be called.
    So I wanna add it during the action of pressing the link.
    any alternatives ?
    Ivan

  • NSArray of UIButtons calling the same function

    I've been thinking and searching and I can't figure it out. I've come across these two threads which seem to be pieces of my issue:
    http://discussions.apple.com/message.jspa?messageID=7891554
    http://discussions.apple.com/thread.jspa?threadID=1985019&tstart=0
    I'm basically attempting to create an array of 9 UIButtons which will all call the same function, but I need to know which button was clicked.
    I'm not entirely sure how to create the NSArray of buttons, and when I include (id)sender with the selectSquare function, it doesn't work. Any help is much appreciated!
    // Square a1
    a1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [a1 setFrame:CGRectMake(0.0f, 0.0f, 70.0f, 70.0f)];
    [a1 setBackgroundImage:[UIImage imageNamed:@"black.png"] forState:UIControlStateNormal];
    [a1 setCenter:CGPointMake(60.0f, 200.0f)];
    [a1 addTarget:self action:@selector(selectSquare) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:a1];
    // I currently have the previous "a1" button code repeated 9 times, each
    // with a different button name... I want to put all these in a single
    // array instead
    -(void) selectSquare:(id) sender {
    if(turn == x) {
    [sender setBackgroundImage:[UIImage imageNamed:@"x_button.png"] forState:UIControlStateNormal];
    statusImage.image = [UIImage imageNamed:@"o_image.png"];

    TicTacToe indeed!
    The positions I have for my buttons seemed to be perfect when I tested them, so I just went with that vs. using IB.
    As for the tag property, would it just be an int? Like:button1.tag = 5And then use the tag as that button's index in the array? So the button with tag 5 would be the 6th element?
    Also, I'm still not sure on why -(void) selectSquare:(id) sender; doesn't work. When I click on "a1" (the current button with an action assigned to it), the simulator does nothing and then brings Xcode to the front... But when I take out (id)sender, it works fine.
    In the second thread I posted, somebody mentioned something about unbinding and rebinding control actions to fix this, but I'm not too sure what that process entails.
    Here is my interface for that controller:#import <UIKit/UIKit.h>
    @interface TicTacToeViewController : UIViewController {
    UIImageView *statusImage;
    UIButton *playButton;
    UIButton *a1;
    UIButton *a2;
    UIButton *a3;
    UIButton *b1;
    UIButton *b2;
    UIButton *b3;
    UIButton *c1;
    UIButton *c2;
    UIButton *c3;
    //IBOutlet UILabel *gameText;
    //IBOutlet UILabel *x_score;
    //IBOutlet UILabel *o_score;
    //IBOutlet UILabel *round;
    NSInteger turn;
    //NSInteger xscorevalue;
    //NSInteger oscorevalue;
    @property(nonatomic,retain) IBOutlet UIImageView *statusImage;
    @property(nonatomic, retain) UIButton *playButton;
    @property(nonatomic, retain) UIButton *a1;
    @property(nonatomic, retain) UIButton *a2;
    @property(nonatomic, retain) UIButton *a3;
    @property(nonatomic, retain) UIButton *b1;
    @property(nonatomic, retain) UIButton *b2;
    @property(nonatomic, retain) UIButton *b3;
    @property(nonatomic, retain) UIButton *c1;
    @property(nonatomic, retain) UIButton *c2;
    @property(nonatomic, retain) UIButton *c3;
    //@property(nonatomic,retain) IBOutlet UILabel *gameText;
    //@property(nonatomic,retain) IBOutlet UILabel *x_score;
    //@property(nonatomic,retain) IBOutlet UILabel *o_score;
    //@property(nonatomic,retain) IBOutlet UILabel *round;
    @property(nonatomic) NSInteger turn;
    //@property(nonatomic) NSInteger x_score;
    //@property(nonatomic) NSInteger o_score;
    //-(void)reset:(BOOL) newGame;
    -(void) selectSquare:(id) sender;
    @end

  • How many times can i call the start()

    Hi All:
    I would like to know how many time you can actually call the start(),
    cuz my app is doing some really strange things,
    here is a fragament of my code:
    private void spawnThreads()
    ListIterator it = _vWorker.listIterator();
    while ( it.hasNext() ) {
    ClientWorker client_worker = (ClientWorker) it.next();
    client_worker.start();
    ClientWorker is another Thread, and in the run() of the ClientWorker, I have
    public void run() {
    Runtime rt = Runtime.getRuntime();
         try {
         // Start the timer
         Process child = rt.exec(_fileName);
         // gobble any error or output streams
    StreamGobbler errorGobbler = new
    StreamGobbler(child.getErrorStream(), "ERROR");
    StreamGobbler outputGobbler = new
    StreamGobbler(child.getInputStream(), "OUTPUT");
    errorGobbler.start();
    outputGobbler.start();
    child.waitFor();
                                            } catch (IOException e) {
                   System.err.println("IOException starting process!");
              } catch (InterruptedException e) {
                   System.err.println("Interrupted waiting for process!");
    I have a couple of cmd files to execute, so This spawnThreads() will be called a couple of times,and the funny thing is , it will execute the first cmd files, and that is it, it won't execute the 2nd or the 3rd cmd files, it will start the thread, but then the run()won't actually gets invoked,,,so I am just wondering if anyone of you has encountered this problem, perhaps you could lend me some insight on this?
    thanks,

    Yes, you can run the start() of a Thread more than once,
    here is my Test App,
    public static void main(String[] args) throws Exception {
    Vector vec = new Vector();
    for (int i=0;i<4;i++){
    ClientThread ct = new ClientThread();
    vec.add(ct);
    ListIterator it = vec.listIterator();
    while(it.hasNext()){
    ClientThread ct = (ClientThread)it.next();
    ct.start();
    and as you have already guessed it the run() of ClientThread simply does system.out.println()
    and here is the output
    run started
    run started
    run started
    run started
    so..yeah..I don't really have any idea what is happening to my app and why it is not executing any cmd files after executing the very first cmd file

  • How can I call a static function in another static function?

    /** = d, as a String, using exactly 5 characters.
    Precondition: 0 <= d <= 999.
    The truncated d will have one of the forms: ddd.d, dd.dd, and d.ddd.
    Examples are: 360.1, 29.50, 4.003, 0.001, and 0.000
    public static String truncateTo5(double d) {
    // To get the desired output, do the following
    // 1. If d < 0.001, set d to 0.
    // This prevents d appearing in scientific notation, e.g. 1.5E-6.
    // 2. Convert d to a string s, in the usual way.
    // s is guaranteed to have a decimal point in it a digit before
    // and after the decimal point.
    // 3. Append zeros to s (if necessary) until s has 5 digits.
    // 4. Return s.
    String s= "" + d;
    if (d < 0.001) {
    d= 0;
    return "0.000";
    if (s.length() > 5) {
    return s.substring(0,5);
    if (s.length() == 3) {
    int l= s.length();
    return s.substring(0, l) + "00";
    if (s.length() == 4) {
    int l= s.length();
    return s.substring(0, l) + "0";
    return s;
    /** = d, but rounded (if necessary) to its first 5 characters.
    PreconditionL 0 <= d <= 360.
    E.g. round 1.3546 to 1.355. round 1.3544 to 1.354.
    E.g. round 21.995 to 22.00. round 21.994 to 21.99.
    E.g. round 130.59 to 130.6. round 130.54 to 120.54.
    public static String roundTo5(double d) {
    // Hint. Rounding to an integer j is usually done by
    // truncating the value j + 0.5.
    // E.g. Change 10.6 to 11.1 and truncate to 11
    // E.g. Change 10.4 to 10.9 and truncate to 10
    // You need to do this sort of thing, but what you add may depend
    // on how big d is.
    What I need to do is call the truncateTo5() in the roundTo5() in order for this to work properly but I dont know how. Can someone help?

    @captfoss: If they're static methods in the same class, you don't even need to do that. You can just call the method unquallified.
    @OP: First off, when you paste code, wrap it in code tags. You can find them between Quote and Help.
    As for your error, you have defined truncateTo5() to take a double as an argument. When you call it, you are not passing it a double and you get that error.

  • Photoshop CC: Can't use the 3d function???

    Hello,
    I need help one this. I can't use the 3d function in photoshop cc and it gives me this error:
    http://i.imgur.com/Zn7e47d.png
    And here are my performance settings:
    http://i.imgur.com/A8rCi8J.png
    And here is the vram of my gpu:
    http://i.imgur.com/sSr5Knb.png
    And here is the paste from the system info thing:
    0bin - encrypted pastebin
    Ohh and i use windows 7 ultimate
    Anyone knows a fix for this as i can't live without
    Thanks!
    Regards,

Maybe you are looking for