Searching a char in 2d array any direction

the method will take a string argument and convert them into char and try to find them in a 2d array.
It is more like a word puzzle(wordSearcher).Here's what i've done so far...
public void find(String word)
for(int a = 0; a < word.length(); a++) {
char oneChar = word.charAt(a);
String oneStringchar = String.valueOf(oneChar);
// Searching through in South Direction
for(int i = 0; i < g.length; i++) {
for(int j = 0 ; j < g.length ; j++) {
if (oneChar == g[j]) {
canvas.draw(oneStringchar, (i * WORD_SIZE) + POS_X, (j * WORD_SIZE) + POS_Y);
}

Here's something I did a while back, type in any text in the top text area (ensure it's a grid eg 8 x 8),
then the words to find (one per line) in the lower text area. If found, the co-ords of the word are displayed.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
class WordFinder extends JFrame implements ActionListener
  private static JButton goBtn = new JButton("Search");
  private static JTextArea taLetters = new JTextArea(10,25);
  private static JTextArea taWords = new JTextArea(10,25);
  private static int base = 0;
  private static String letters = "";
  private static String words[];
  private static boolean match = false;
  private static String taWordsNewText = "";
  public static void main(String args[])
    WordFinder wf = new WordFinder();
  public WordFinder()
    super("Word Finder");
    setSize(300,80);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setVisible(true);
    Container frame = getContentPane();
    frame.setLayout(new BorderLayout());
    JScrollPane spLetters = new JScrollPane (taLetters);
    JScrollPane spWords = new JScrollPane (taWords);
    goBtn.addActionListener(this);
    JPanel mid = new JPanel(new FlowLayout());
    JLabel infoLbl = new JLabel("'letters' above, 'words to find' below");
    mid.add(infoLbl);
    mid.add(goBtn);
    frame.add(spLetters,BorderLayout.NORTH);
    frame.add(mid,BorderLayout.CENTER);
    frame.add(spWords,BorderLayout.SOUTH);
    pack();
    setContentPane(frame);
  public void actionPerformed(ActionEvent ae)
    letters = "";
    taWordsNewText = "";
    if(lettersAndWordsOK()) findTheWords();
  private static boolean lettersAndWordsOK()
    StringTokenizer st = new StringTokenizer(taLetters.getText(),"\n");
    int count = st.countTokens();
    if(count == 0)
      JOptionPane.showMessageDialog(null,
        "no letter details entered");
      return false;
    String line = "";
    while(st.hasMoreTokens())
      line = st.nextToken();
      if(line.length() != count)
        JOptionPane.showMessageDialog(null,
        "check letters - not a perfect grid \n e.g. 8 x 8");
        return false;
      else
        letters = letters + line;
    st = new StringTokenizer(taWords.getText(),"\n");
    words = new String[st.countTokens()];
    if(words.length > 0)
      for(int i = 0; i < words.length; i++)
        words[i] = st.nextToken();
    else
      JOptionPane.showMessageDialog(null,
        "no listing for words to find");
        return false;
    base = count;
    return true;
  private static void findTheWords()
    for(int i = 0; i < words.length; i++)
      int ii;
      for(ii = 0; ii < letters.length(); ii++)
        match = false;
        if(letters.substring(ii,ii+1).equals(words.substring(0,1)))
checkNextLetter(ii,0,1,words[i]);
if(match)break;
if(ii == letters.length()) taWordsNewText += words[i]+" (not found)\n";
taWords.setText(taWordsNewText);
private static void checkNextLetter(int currentPos, int direction,
int textPos,String wordToFind)
if(direction == 0)
int directions[] = {-(base+1),-base,-(base-1),-1,1,base-1,base,base+1};
for(int x = 0; x < directions.length;x++)
checkNextLetter(currentPos,directions[x],textPos,wordToFind);
if(match) break;
else
int nextPos = currentPos + direction;
if(letters.substring(currentPos,currentPos+1).equals(
wordToFind.substring(textPos-1,textPos)))
if(textPos == wordToFind.length())
match = true;
String startCoords = "("+(currentPos - (direction*
(wordToFind.length()-1)))/base+","+(currentPos - (direction*
(wordToFind.length()-1)))%base +")";
String endCoords = "("+(currentPos/base)+","+(currentPos%base)+")";
taWordsNewText += wordToFind+" "+startCoords+" - "+endCoords+"\n";
return;
else if(nextPos >= 0 && nextPos < Math.pow(base,2) &&
Math.abs(currentPos%base - nextPos%base) <= 1)
checkNextLetter(nextPos,direction,textPos+1,wordToFind);

Similar Messages

  • How to search a char in 2d array any direction

    the method will take a string argument and convert them into char and try to find them in a 2d array.
    It is more like a word puzzle(wordSearcher).Here's what i've done so far...
    public void find(String word)
    for(int a = 0; a < word.length(); a++) {
    char oneChar = word.charAt(a);
    String oneStringchar = String.valueOf(oneChar);
    // Searching through in South Direction
    for(int i = 0; i < g.length; i++) {
    for(int j = 0 ; j < g.length ; j++) {
    if (oneChar == g[j]) {
    canvas.draw(oneStringchar, (i * WORD_SIZE) + POS_X, (j * WORD_SIZE) + POS_Y);
    }

       // Searching through in South Direction
       for(int i = 0; i < g.length; i++) {
          for(int j = 0 ; j < g.length ; j++) {
    if (oneChar == g[i][j]) {
    canvas.draw(oneStringchar, (i * WORD_SIZE) + POS_X, (j * WORD_SIZE) + POS_Y);

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • Adding a char to an array

    Hi
    I've got the following code to add a char to an array but I keep getting a runtime error and can't see what i'm doing wrong
    int x = 0;
    String RowR[] = {"", "", ""};
    for (int i=0; i<co_ordinates.length(); i++)
    RowR[x] = RowR[x] + co_ordinates.charAt(i);
    if (x>2)
    x= 0;
    else
    x = x + 1;
                   }Thanks
    Edited by: jclegs on Nov 23, 2007 4:04 AM
    Edited by: jclegs on Nov 23, 2007 4:04 AM

    Sorry here is the exceptions
    z
    e
    r
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3
        at EncryptedCoordinates.encrypt(EncryptedCoordinates.java:38)
        at P6_Client.sendData(P6_Client.java:94)
        at P6_Client$ButtonHandler.actionPerformed(P6_Client.java:157)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Process completed.Thanks

  • Search functionality no longer works in any of my recently generated HTML Help projects

    I'm using Rh 10.0.1.292 and Rh 11.0.4.291 for different projects.
    Recently, I've noticed that the Search feature returns no results, in any of my projects that are generated in either Rh10 or 11. I just get the "No topics found" message. This used to work.
    The only thing that has been done recently (that I can think of) involved working with .slp files to fix an issue with the Glossary tab and the Search functionality in a Rh 11 Responsive HTML5 layout. (https://forums.adobe.com/thread/1690579) I can't, however, see how that would break the Search functionality in my HTML projects.
    Any ideas?

    In either Rh 10 and 11, whenever I generated a project as HTML Help (even an example project) the Search functionality was broken. Finally, when I couldn't think of what else to try, I uninstalled and reinstalled Rh 10, and that solved my problem--in both Rh 10 and 11!
    Apparently some file was corrupted, but I don't know what was broken or what caused the corruption. I am still trying to get some clarification from Adobe, but so far, I have only received the following comments:
    The robohelp cache folder and the preferences might have caused this.
    The problem can be either with the updates on system.
    If I should receive any definitive information, I will update this post.
    Thanks.

  • HT5429 I am not able to get any directions on my maps i am using iphone 4s and updated to ios 6.1.3 and whenever i try to find a route it always says directions could not be found can anyone help in fixing it

    I am not able to get any directions on my maps i am using iphone 4s and updated to ios 6.1.3 and whenever i try to find a route it always says directions could not be found can anyone help in fixing it

    Maps: Turn-by-Turn Navigation
    Argentina Australia Austria Belgium Brunei Bulgaria Canada Croatia Czech Republic Denmark Egypt Estonia Finland France Germany Greece Hong Kong Hungary Ireland Israel Italy Japan Latvia Liechtenstein Lithuania Luxembourg Macau Malaysia Malta Mexico Morocco Netherlands New Zealand Norway Poland Portugal Romania Russia San Marino Singapore Slovakia Slovenia South Africa South Korea Spain Sweden Switzerland Taiwan Thailand Turkey UK Ukraine USA
    Back to Top

  • How to search for particular string in array?

    I am struggling to figure out how to search array contents for a string and then delete the entry from the array if it is found.
    The code for a program that allows the user to enter up to 20 inventory items (tools) is posted below; I apologize in advance for it as I am also not having much success grasping the concept of OOP and I am certain it is does not conform although it all compiles.
    Anyway, if you can provide some assistance as to how to go about searching the array I would be most grateful. Many thanks in advance..
    // ==========================================================
    // Tool class
    // Reads user input from keyboard and writes to text file a list of entered
    // inventory items (tools)
    // ==========================================================
    import java.io.*;
    import java.text.DecimalFormat;
    public class Tool
    private String name;
    private double totalCost;
    int units;
      // int record;
       double price;
    // Constructor for Tool
    public Tool(String toolName, int unitQty, double costPrice)
          name  = toolName;
          units = unitQty;
          price = costPrice;
       public static void main( String args[] ) throws Exception
          String file = "test.txt";
          String input;
          String item;
          String addItem;
          int choice = 0;
          int recordNum = 1;
          int qty;
          double price;
          boolean valid;
          String toolName = "";
          String itemQty = "";
          String itemCost = "";
          DecimalFormat fmt = new DecimalFormat("##0.00");
          // Display menu options
          System.out.println();
          System.out.println(" 1. ENTER item(s) into inventory");
          System.out.println(" 2. DELETE item(s) from inventory");
          System.out.println(" 3. DISPLAY item(s) in inventory");
          System.out.println();
          System.out.println(" 9. QUIT program");
          System.out.println();
          System.out.println("==================================================");
          System.out.println();
          // Declare and initialize keyboard input stream
          BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
          do
             valid = false;
             try
                System.out.print(" Enter an option > ");
                input = stdin.readLine();
                choice = Integer.parseInt(input);
                System.out.println();
                valid = true;
             catch(NumberFormatException exception)
                System.out.println();
                System.out.println(" Only numbers accepted. Try again.");
          while (!valid);
          while (choice != 1 && choice != 2 && choice != 9)
                System.out.println(" Not a valid option. Try again.");
                System.out.print(" Enter an option > ");
                input = stdin.readLine();
                choice = Integer.parseInt(input);
                System.out.println();
          if (choice == 1)
             // Declare and initialize input file
             FileWriter fileName = new FileWriter(file);
             BufferedWriter bufferedWriter = new BufferedWriter(fileName);
             PrintWriter dataFile = new PrintWriter(bufferedWriter);
             do
                addItem="Y";
                   System.out.print(" Enter item #" + recordNum + " name > ");
                   toolName = stdin.readLine();
                   if (toolName.length() > 15)
                      toolName = toolName.substring(0,15); // Convert to uppercase
                   toolName = toolName.toUpperCase();
                   dataFile.print (toolName + "\t");
                   do
                      valid = false;
                      try
                         // Prompt for item quantity
                         System.out.print(" Enter item #" + recordNum + " quantity > ");
                         itemQty = stdin.readLine();
                         // Parse integer as string
                         qty = Integer.parseInt (itemQty);
                         // Write item quantity to data file
                         dataFile.print(itemQty + "\t");
                         valid=true;
                      catch(NumberFormatException exception)
                         // Throw error for all non-integer input
                         System.out.println();
                         System.out.println(" Only whole numbers please. Try again.");
                   while (!valid);
                   do
                      valid = false;
                      try
                         // Prompt for item cost
                         System.out.print(" Enter item #" + recordNum + " cost (A$) > ");
                         itemCost = stdin.readLine();
                         // Parse float as string
                         price = Double.parseDouble(itemCost);
                         // Write item cost to data file
                         dataFile.println(fmt.format(price));
                         valid = true;
                      catch(NumberFormatException exception)
                         // Throw error for all non-number input (integers
                      // allowed)
                         System.out.println();
                         System.out.println(" Only numbers please. Try again.");
                   while (!valid);
                   // Prompt to add another item
                   System.out.println();
                   System.out.print(" Add another item? Y/N > ");
                   addItem = stdin.readLine();
                   while ((!addItem.equalsIgnoreCase("Y")) && (!addItem.equalsIgnoreCase("N")))
                      // Prompt for valid input if not Y or N
                      System.out.println();
                      System.out.println(" Not a valid option. Try again.");
                      System.out.print(" Add another item? Y/N > ");
                      addItem = stdin.readLine();
                      System.out.println();
                   // Increment record number by 1
                   recordNum++;
                   if (addItem.equalsIgnoreCase("N"))
                      System.out.println();
                      System.out.println(" The output file \"" + file + "\" has been saved.");
                      System.out.println();
                      System.out.println(" Quitting program.");
            while (addItem.equalsIgnoreCase("Y"));
    // Close input file
    dataFile.close();
       if (choice == 2)
       try {
          Read user input (array search string)
          Search array
          If match found, remove entry from array
          Confirm "deletion" and display new array contents
       catch block {
    } // class
    // ==========================================================
    // ListToolDetails class
    // Reads a text file into an array and displays contents as an inventory list
    // ==========================================================
    import java.io.*;
    import java.util.StringTokenizer;
    import java.text.DecimalFormat;
    public class ListToolDetails {
       // Declare variable
       private Tool[] toolArray; // Reference to an array of objects of type Tool
       private int toolCount;
       public static void main(String args[]) throws Exception {
          String line, name, file = "test.txt";
          int units, count = 0, record = 1;
          double price, total = 0;
          DecimalFormat fmt = new DecimalFormat("##0.00");
          final int MAX = 20;
          Tool[] items = new Tool[MAX];
          System.out.println("Inventory List");
          System.out.println();
          System.out.println("REC.#" + "\t" + "ITEM" + "\t" + "QTY" + "\t"
                + "PRICE" + "\t" + "TOTAL");
          System.out.println("\t" + "\t" + "\t" + "\t" + "PRICE");
          System.out.println();
          try {
             // Read a tab-delimited text file of inventory items
             FileReader fr = new FileReader(file);
             BufferedReader inFile = new BufferedReader(fr);
             StringTokenizer tokenizer;
             while ((line = inFile.readLine()) != null) {
                tokenizer = new StringTokenizer(line, "\t");
                name = tokenizer.nextToken();
                try {
                   units = Integer.parseInt(tokenizer.nextToken());
                   price = Double.parseDouble(tokenizer.nextToken());
                   items[count++] = new Tool(name, units, price);
                   total = units * price;
                } catch (NumberFormatException exception) {
                   System.out.println("Error in input. Line ignored:");
                   System.out.println(line);
                System.out.print(" " + count + "\t");
                System.out.print(line + "\t");
                System.out.print(fmt.format(total));
                System.out.println();
             inFile.close();
          } catch (FileNotFoundException exception) {
             System.out.println("The file " + file + " was not found.");
          } catch (IOException exception) {
             System.out.println(exception);
          System.out.println();
       //  Unfinished functionality for displaying "error" message if user tries to
       //  add more than 20 tools to inventory
       public void addTool(Tool maxtools) {
          if (toolCount < toolArray.length) {
             toolArray[toolCount] = maxtools;
             toolCount += 1;
          } else {
             System.out.print("Inventory is full. Cannot add new tools.");
       // This should search inventory by string and remove/overwrite matching
       // entry with null
       public Tool getTool(int index) {
          if (index < toolCount) {
             return toolArray[index];
          } else {
             System.out
                   .println("That tool does not exist at this index location.");
             return null;
    }  // classData file contents:
    TOOL 1     1     1.21
    TOOL 2     8     3.85
    TOOL 3     35     6.92

    Ok, so you have an array of Strings. And if the string you are searching for is in the array, you need to remove it from the array.
    Is that right?
    Can you use an ArrayList<String> instead of a String[ ]?
    To find it, you would just do:
    for (String item : myArray){
       if (item.equals(searchString){
          // remove the element. Not trivial for arrays, very easy for ArrayList
    }Heck, with an arraylist you might be able to do the following:
    arrayList.remove(arrayList.indexOf(searchString));[edit]
    the above assumes you are using 1.5
    uses generics and for each loop
    [edit2]
    and kinda won't work it you have to use an array since you will need the array index to be able to remove it. See the previous post for that, then set the value in that array index to null.
    Message was edited by:
    BaltimoreJohn

  • When I turn on my ipad2 it won't scroll in any direction and there is a voice explaining everything i do. How do I get it to scroll and turn the voice off

    When I turn on my Ipad2 it won't scroll in any direction and there is a voice explaining everything you do. How do get it to scroll again and turn off the voice. I have tried to reset it both ways and when I go to settings > general I don't see a reset button.

    Settings>General>Accessibility>VoiceOver>off

  • Is there any direct syntax for summing two values

    Friends,
                       I just have a problem of summing up two or more similar product_id 's  quantities.
    for ex:  assume an Internal Table IT_PRODUCT. consider it has two fields one is PRODUCT_ID ( Primary key in Database ) and the other field is QUANTITY.
    IT_PRODUCT.
    PRODUCT_ID           QUANTITY
    I1001SA101                    10
    I1001SA101                    20
    my desired output is to sum up the similar product_id' s of the internal table and to have only one summed record in the internal Table.
    IT_PRODUCT
    PRODUCT_ID           QUANTITY
    I1001SA101                    30
    Is there any direct syntax to do the same or suggest me some more methods.
    Pradeep.

    Use COLLECT statement..
    Check this code...
    DATA : BEGIN OF itab OCCURS 0,
    matnr LIKE ekpo-matnr,
    menge LIKE ekpo-menge,
    END OF itab.
    DATA : itab2 LIKE itab OCCURS 50 WITH HEADER LINE.
    SELECT matnr menge INTO CORRESPONDING FIELDS OF
    TABLE itab FROM ekpo UP TO 20 ROWS.
    LOOP AT itab.
      COLLECT itab INTO itab2.
    ENDLOOP.
    Message was edited by:
            Perez C

  • Mac OS X 10.7.5. No MagicPref, no USBDriver(?) No scrolling any direction. HELP PLEASE!

    My Magic mouse won't scroll. I have Mac OS X 10.7.5 and have no MagicPref and no USBDriver(?) as I have seen other posts that say to check these. I have no scrolling any direction and I have been in 'Universal Acc' and 'Mouse' to make sure that all checkboxes are correct etc.
    Im at the point where Im about to take it back to the shop in Australia to claim on warranty.
    Can Anyone help me first :'(

    DM;
    I've got the same problem - Magic mouse, OS 10.7.5, and no scrolling.
    Our tech support said it may be corrupted mouse driver preferences.
    His 1st suggestion was to delete the mouse from bluetooth, and then re-connect it. That usually re (boot? reinstall?) the driver. Tried it, with no luck.
    When he's back in the office, I'll ask him to follow up. When I find out the problem I'll post up here with solution.

  • Just bought a new Ipod Nano for my child, was tryin to go by the directions, but when I plug it in to my computer it wont give me any directions on syncing, can someone please help me???

    Just bought a new Ipod Nano, 6th generation, was tryin to following directions on syncing, when I plug it in too my computer,
    it doesnt give me any directions on syncing or connecting to my computer, can someone please help me??

    There should be an option (on the left hand side of your iTunes) for your iPod. Then when you click on it you will just need to setup and there will be an option to sync at the bottom right hand corner

  • Mac mail search function is not working. Any search term returns all records.

    Mac mail search function is not working. Any search term returns all records.

    hi eric. many thanks.
    i will have to read these links closer but what i meant to say is that the hard drive space that was being taken up seemed like it suddenly jumped way up because i had just gotten through a process in the last month where i am storing all my My Documents data on my Mac Pro. i am doing this in order to decide whether i should just keep it ALL on my Mac Pro and use ChronoSync to sync /some/ of it to my MBP.
    so if i look in the Documents folder on my Mac Pro i have a ton of folders that i have created with a ton of data. if i look in the Documents folder on my MBP there are NO folders that have data in them that i created. there are other folders such as folders that various software created but what i mean to point out is that there was a LOT of available space on my HD until recently.
    i am wondering if there is some way that running the Mail re-index (it then ran some kind of "Importing" routine) or by syncing my Photostream to the MBP caused a huge jump in data on this drive. if it is the photostream sync i can just take this off or see if it will sync more selectively. if it is something to do with mac mail jumping in size i am not sure why this would happen or what to do about it.
    does that question make sense?
    i mean, before i did these two operations my recollection is that i would have had 130 GB on the hard drive (really just guessing here) and now there is like 218 GB on the hard drive and i don't know where all this came from...

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • I want to ask about changing perspective and perspective correction in photoshop. Obviously, we can tilt and straighten buildings and other monuments, which are leaning in any direction. Now, what I want to know is whether we can change perspective for hu

    I want to ask about changing perspective and perspective correction in photoshop. Obviously, we can tilt and straighten buildings and other monuments, which are leaning in any direction. Now, what I want to know is whether we can change perspective for human faces. For example, if there is a human face, where one part of the face is facing the camera and the other part of the face is only partially facing the camera, can we make this face look totally at the camera? I mean, look straight in front, and I am talking about the whole face here. I am attaching an image as an example of what I am talking about. @

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • I have problom to running maps.when i put any direction route a massage popup. Direction could not be found between these location. I am ussing ios 6. Any body plz help me

    I have problom to running maps.when i put any direction route a massage popup. Direction could not be found between these location. I am ussing ios 6. Any body plz help me

    Read here, as such is not supported everywhere:
    http://www.apple.com/ios/feature-availability/

Maybe you are looking for