Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008, 07:39 AM
Member
 
Join Date: May 2008
Posts: 6
kavithaprabhaker is on a distinguished road
Please solve the problem related to PDf reader
mport java.io.*;
import java.lang.Object;
import org.faceless.pdf2.Element;
import org.faceless.pdf2.FormText;
import java.text.Normalizer.Form;
import org.faceless.pdf2.Form;
import org.faceless.pdf2.FormChoice;
import org.faceless.pdf2.FormText;
import org.faceless.pdf2.PDF;
import org.faceless.pdf2.PDFReader;
import org.faceless.pdf2.FormCheckbox;
public class readPKTLables {
public static void main(String args[])
{
String FileName="C:\\ereview_packets\\rev_pac_test_cm21_t est_test1_test_srd_294.pdf";
try {

getReview_ID(FileName);

}
catch(Exception e)
{
e.printStackTrace();
}
}
public static void getReview_ID(String FileName)
{
PDFReader readerInput = new PDFReader(new File(FileName));
PDF pdfInput = new PDF(readerInput);

Form form = pdfInput.getForm();
FormText text = (FormText)form.getElement("R.Ref_ID");
String Review_id = text.getValue(); // May be null

//Review_id1= ((FormText)form.getElement(Review_id)).getValue();
if(Review_id!=null)
{
System.out.println("Review_id Is Entered ANd The VAlue Is: "+Review_id);

}
else
{
System.out.println("Review_id1 Is not Entered *Please Enter It is an mandatory Field*");
}

}

}




By this program i just want to fetch the review_id Information which is a text box , but its not working , if u figure out the problem then it will be helpful for me
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-07-2008, 08:12 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Ah, I don't have faceless package. Where did you find it. It's better if you can add download link or attach the package. Most of the members here in our community may don't have that package.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 01:05 PM
Member
 
Join Date: May 2008
Posts: 6
kavithaprabhaker is on a distinguished road
hi
hi Eranga,
i found the solution , the problem is with the faceless package after importing that package it will work fine.
any way thanks for ur reply.


Thanks & Regards,

Kavitha.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 01:21 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga


If you solve the problem please mark it as solved.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Math Related Problem perito Advanced Java 1 03-21-2008 09:53 AM
Math Related Problem perito New To Java 3 03-20-2008 06:22 PM
A simple DOM reader Java Tip Java Tips 0 01-03-2008 10:24 AM
Cannot solve the coding problem of my assignment elimmom New To Java 3 08-13-2007 12:33 PM
help with file reader jason27131 New To Java 1 08-01-2007 04:03 AM


All times are GMT +3. The time now is 12:45 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org