How to read Hyperlinks in pdf???

hi developer's,
I am in PDF processing... I am having doubt in that Processing.
How to read Hyperlinks from PDF file?
I can able to set the hyperlink.. But i cant able to get the hyperlinks..
The following example program will set the hyperlink to the PDF file using lowagie API..
import com.lowagie.text.Anchor;
import com.lowagie.text.Chunk;
import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Paragraph;
import com.lowagie.text.html.HtmlWriter;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfWriter;
public class Argu1 {
     public static void main(String[] args) {
          Document document = new Document();
          try {
               PdfWriter pdf = PdfWriter.getInstance(document,
                         new FileOutputStream("PageLink.pdf"));
PdfReader pdf_read=new                
               document.open();
               document.add(new Paragraph("Hi Everbody....!"));
               Anchor pdfRef = new Anchor("Click Me");
               pdfRef.setReference("www.java2s.com");
               Anchor rtfRef = new Anchor("Touch Me");
               rtfRef.setReference("www.sun.com");
               System.out.println(rtfRef.reference());
               document.add(pdfRef);
               document.add(Chunk.NEWLINE);
               document.add(rtfRef);
          } catch (DocumentException de) {
               System.err.println(de.getMessage());
          } catch (IOException ioe) {
               System.err.println(ioe.getMessage());
          document.close();
Help me how to read the Hyperlinks from the PDF file using java ...
Thanks in advance,
With Regards,
J.Imran

Instead of cross-posting unformatted code you could have taken a look at the API, because there you might have come across a method named getLinks...Even though it's not documented, I really suspect that it will return the Hyperlinks on a given page.

Similar Messages

  • How to read HyperLinks from pdf file??

    hi developer's,
    I am in PDF processing... I am having doubt in that Processing.
    How to read Hyperlinks from PDF file?
    I can able to set the hyperlink.. But i cant able to get the hyperlinks..
    The following example program will set the hyperlink to the PDF file using lowagie API..
    import com.lowagie.text.Anchor;
    import com.lowagie.text.Chunk;
    import com.lowagie.text.Document;
    import com.lowagie.text.DocumentException;
    import com.lowagie.text.Paragraph;
    import com.lowagie.text.html.HtmlWriter;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class Argu1 {
         public static void main(String[] args) {
              Document document = new Document();
              try {
                   PdfWriter pdf = PdfWriter.getInstance(document,
                             new FileOutputStream("PageLink.pdf"));
    PdfReader pdf_read=new                
                   document.open();
                   document.add(new Paragraph("Hi Everbody....!"));
                   Anchor pdfRef = new Anchor("Click Me");
                   pdfRef.setReference("www.java2s.com");
                   Anchor rtfRef = new Anchor("Touch Me");
                   rtfRef.setReference("www.sun.com");
                   System.out.println(rtfRef.reference());
                   document.add(pdfRef);
                   document.add(Chunk.NEWLINE);
                   document.add(rtfRef);
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              document.close();
    Help me how to read the Hyperlinks from the PDF file using java ...
    Thanks in advance,
    With Regards,
    J.Imran

    Instead of cross-posting unformatted code you could have taken a look at the API, because there you might have come across a method named getLinks...Even though it's not documented, I really suspect that it will return the Hyperlinks on a given page.

  • How to make hyperlinks in PDF doc open in a seperate PDF window?

    I created a "Main" PDF document and have various attachments in it including PDF. I created them with Insert, Hyperlink.  That works, however, if I have the main document open in PDF, and I click on one of the hyperlinks to open a PDF document, the main document is closed and the only window remaining open is that of the hyperlink I've accessed.
    I want to change this to have the PDF hyperlink within main document  open in its on window ...can this be done?

    Thanks for the reply, but I have Adobe Reader 9 Pro. Will it still not 
    work ?
    Le 29 sept. 2011 à 29 sept. 11 - 16:09, Claudio González a écrit :
    Re: How to change text in PDF doc. which is a musical score
    created by Claudio González in Adobe Reader - View the full discussion
    Unfortunately, not with the free Reader.
    Replies to this message go to everyone subscribed to this thread, 
    not directly to the person who posted the message. To post a reply, 
    either reply to this email or visit the message page: [http://forums.adobe.com/message/3944833#3944833
    To unsubscribe from this thread, please visit the message page at [http://forums.adobe.com/message/3944833#3944833
    ]. In the Actions box on the right, click the Stop Email 
    Notifications link.
    Start a new discussion in Adobe Reader by email or at Adobe Forums
    For more information about maintaining your forum email 
    notifications please go to http://forums.adobe.com/message/2936746#2936746

  • How to open hyperlink of PDF file uploaded at SharePoint(hosted at Office365) in 'Adobe Acrobat' for annotation and comments.

    Hi,
    I've a hyperlink of PDF file which is uploaded under SharePoint Document library(hosted at Office365 E1) on my custom '../SitePages/Approver.aspx'. Once user click on that hyperlink it should ask me to "Check-Out & Open' pdf file directly from sharePoint document library then it should automatically gets opened into 'Adobe Acrobat' where user will do some annotation/ comments in that pdf file & again 'Check-In' back his changes to SharePoint Document library.
    Following article will explain how I want to Check-In & Check-Out  pdf files from SharePoint document library once i click hyperlink on my '../SitePages/Approver.aspx' page.
    acrobatusers.com/tutorials/how-to-work-with-sharepoint-and-office-365
    Please let me know how to achieve this functionality using office 365.
    Your assistance would be greatly appreciated as this is top-priority requirement for us.
    Yours sincerely,
    Mahesh Sherkar
    [signature deleted by host]

    For instance, the forms.conf file:
    # Virtual path mapping for Forms Java jar and class files (codebase)
    AliasMatch ^/forms/java/(..*) "D:\Oradev/forms/java/$1"
    # Virtual path for JInitiator downloadable executable and download page
    AliasMatch ^/forms/jinitiator/(..*) "D:\Oradev/jinit/$1"
    # Virtual path for runform.htm (used to run a form for testing purposes)
    AliasMatch ^/forms/html/(..*) "d:\oradev/tools/web/html/$1"
    # Virtual Path for icons
    AliasMatch ^/forms/icons/(..*) "d:\icons/$1"
    ...you can move your files in one of the existing physical directories - e.g: d:/icons - and call them with the following:
    Web.show_Document('/forms/icons/document.pdf','_blank');But you can also add your own virtual/physical directory:
    # Virtual Path for documents
    AliasMatch ^/forms/documents/(..*) "d:\documents/$1"
    ...with the following code:
    Web.show_Document('/forms/documents/document.pdf','_blank');Francois

  • How to read doc/docx/pdf/jpg files in objective-c?

    Hi am new to  objective-c,here want to read the files from the directory i know how to read the text file but what i need is to read the doc/docx/pdf/jpg files to read,i don't know how to read these files in objective-c if anyone knows about this please help me,
    thanks in advance.

    The same way. You will get a load of binary idata, and you have to handle that yourself. .. What, are you expecting libraries to read and somehow convert a .docx document to your taste? You need to look up what 'file format' means.
    (Oh alright, there /may/ be a standardized way in OS X to read a jpg and convert it into something OS X can use without you having to know the specifics.)

  • How to read tags from pdf to print in different printers (PCL or PS)

    Hello from Spain.. I would apreciate some help who to read tags from pdf to discriminate PDF Production tag for send print PDF to printer job using driver PCL or PS. I get trubles when print PDFs files made by PDFcreator (Ghostscript, intermediate PDF from PS) in PCL job printer. I need to eval tags from PDF for send command line os javascript inside Adobe Acrobat to print in the correct job printer: PCL or PS...
    Thanks.

    As noted you cannot access the "Tag" of a PDF but you can access the meta data of a PDF and one of the items recorded in the meta data is the "producer". This meta data tag is supposed contain the name of the program that produced the PDF. One can access this through the "info" property or the "metadata" property of the doc object.
    var cProducer = this.info.Producer; // get the producer application for this PDF;
    console.show();
    console.clear();
    console.println("This PDF was created by " + cProducer);
    Be aware that the user can easily modify the Producer information with Acrobat, JavaScript, or other application after the PDF has been created.

  • How to read and write PDF files

    I need to read pdf file and get information about its pagenumbers and format and permission allowed ...........
    then i want to ghange some of this attribute ....................
    how can do this ....................and what's API i have to use.......................

    http://www.pdfbox.org/
    regards

  • How to create hyperlink in PDF?

    how do i create a live link in a pdf using Acrobat XI Pro?

    Hi Steve,
    I figured this out a couple of hours ago...however, the link does not appear with the usual underlined bright blue text, it appears with a blue rectangular box around the text, or invisible, which doesn't let the reader know that it is actually a link.
    Can you tell me how to create the "old fashioned" typical link that we are all used to seeing in bright blue and underlined?
    Thank you for your response
    Norma

  • How to read text from PDF and HTML

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    reading from a file is always the same. using the same strategy used for a .txt will allow you to read a .pdf file.
    Offcourse in itself it will be useless becuase pdf files have a special internal structure.
    html files are identical to txt files.
    What are you trying to accomplisch with the files you are reading ?

  • How to read data from PDF and HTML  file

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    ah crap i could have guessed there would be a crosspost only the forum in where the crosspost is made is abit funny
    To OP: DO NOT CROSSPOST
    http://forum.java.sun.com/thread.jspa?threadID=5267875&tstart=0

  • Read barcode from pdf

    Hi all,
    Please can any one tell me how to read barcode from pdf in java. This will be very help full for me.
    Thanks,
    Avinash

    Avinash_loves_JAVA wrote:
    Please can any one tell me how to read barcode from pdf in java. This will be very help full for me.JMF doesn't support PDFs or barcode reading.
    If you need further assistance with this issue, you'll need to repost in a generic Java forum, or perhaps do a google search for a barcode-reading library.

  • How do you put a PDF as a hyperlink?

    How do you put a PDF as a hyperlink into iWeb

    Hi, I have a similar problem, but this doesn't fix it.
    I want my website users to be able to download a pdf from my site (normally by right-clicking on the line). The web browsers (Safari/Firefox) simply allow you to view the pdf in a new window or tab, but it's not very reliable. Here's an example. Go to my site:
    http://www.cornerstoneguernsey.co.uk/cornerstoneguernsey.co.uk/Our_Menus.html
    and try to download a copy of this:
    2011:2012 3 part menu.pdf
    I know it used to work, but since the tons of upgrades I've done recently, now my customers are having terrible problems getting our menu!
    Many thanks in advance.

  • How to keep hyperlink from excel to PDF?

    I have some Hyperlinks in excel, and when i convert to PDF, they dont work.
    I already installed the Adobe Acrobat PRO XI (Trial version)
    How can i do this?
    tks

    Step 1. Install PDF Editor
    1) Download PDF Editor and install this software by double clicking the exe file. During the installation, please follow installation message and choose the right option according to your needs.
    2) Once the installation finishes, there will be an icon on the desktop. Please launch this software by double clicking the icon.
    Step 2. Remove Hyperlinks from PDF
    1) The following snapshot is from the software interface. Please click option Open to add PDF file to software interface. Or you can simply drag PDF file to software interface.
    2) Please find option Edit Link then click it. The mouse will turn to cross. Please drag area around the picture which will lead you to website.
    3) Then there will be red rectangle frame around it. Right click the red frame and choose Property in the dropdown list. Then you will see the dialogue box like I showed in the left named Link Properties. Here you can set link actions, like open a page in a document, open a file or open a website file. Those options are useful when you need to add hyperlinks. Meanwhile it is helpful when you need to remove hyperlinks.
    4) If there is link on the image, the link will be shown on the Property tab. Please simply remove it here and then click button OK to back to the main interface.
    5) By this way, the link will be removed successfully.

  • How do you encrypt a PDF with Adobe reader, not Adobe Acrobat?

    I would like to encrypt PDFs using Adobe Reader. However, all instructions for encrypting a PDF require me to use Adobe ACROBAT, not Adobe READER. How do I encrypt a PDF using Adobe Reader?
    Extra Note: I use Adobe READER version XI and Mac OS X 10.9.

    Adobe Reader does exactly what its name says: it reads PDF files, nothing more.

  • In Safari how do I open a .PDF file in Preview instead of Adobe Reader?

    When a pdf file opens on my computer in Safari, it opens with Adobe Reader (v. 7.0.8). Until recently, I could right-click on my mouse and and a drop-down menu would appear with the option to open the pdf file in Preview instead of Adobe. That option has now disappeared from the drop-down menu. Can anyone explain how to get back the menu option to open the pdf file in Preview? Thanks. David
    G4 Cube 1.8ghz/tiPowerbook 800 dvi/iMac (Intel) 20"   Mac OS X (10.4.7)  

    My computer automatically open PDF inside the Safari
    window, but I wish it would go back to opening it
    externally via Adobe. (maybe we should trade
    computers:-)
    Anyway, we have the same question.
    How do we control whether PDF launches internal to
    Safari, or external in Adobe?
    This is what I would like to as well. I often have a lot of pdf files I need to open and then save to my hard drive. When I click on a pdf file on a website Safari opens it and then I need to right click in the document to open it with Adobe. How can I get it to open in Adobe the first time without having to right click after it opens in Safari?
    Thanks!

Maybe you are looking for

  • It works....and it doesn't....it works...and it doesn't...what's going!?

    I am currently on my 3rd replacement Express. The first one I purchased worked well for a few days, then stopped syncing up with the cable modem. All features of the Express worked save the internet connection. To resolve this issue, the Exress had t

  • IOS 8.1 (iPad mini) and Yosemite (MacBook) don't sync using iCloud

    iPad mini (new) using IOS 8.1 and MacBook late 2008 using Yosemite do not sync using iCloud.  iCloud created with both devices and iCal and Contacts selected but iCloud is empty in Finder. 

  • N-Up Printing Gone from iPhoto '08

    I sure hope Apple brings this feature back but "N-Up" printing has been removed from iPhoto '08. It's a feature we used almost exclusively when printing from previous versions. I was able to tweak the size of the prints to get 16 on a page (we print

  • Canon 5D Mark II and FCE

    Can you use the new Canon 5D Mk II with FCE. Do you use import or log and transfer? Use the Apple Intermediate Codec? I've only used AVCHD before.

  • Border Guru required

    I want to set my toolbar buttons border like as the Eclipse IDE ones... I want my toolbar buttons with a non visible border but with the default spaces and also: when the mouse is over the button, the border appears... got it? the same buttons appear