473,811 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get links from Acrobat pdf file ???

I have in a few first page defined links (font blue color) row by row
which are links for to appropriate pages in this pdf document.

Could you tell how to get this links in javascript lang ???
Which method or function I should to invoke to get links which arer
defined in my pdf document ???
Regards,
Piotrek

Dec 19 '05 #1
3 2727
Ptaku25 wrote:
I have in a few first page defined links (font blue color) row by row
which are links for to appropriate pages in this pdf document.

Could you tell how to get this links in javascript lang ???
Which method or function I should to invoke to get links which arer
defined in my pdf document ???


Your question is unclear. Are you talking about links from a web page
to a PDF file, or links that are within the PDF? In the former case,
you can simply loop over the links in your document and select the
appropriate ones. (Hint: document.getEle mentsByTagName may come in
handy.)

If you are talking about links within a PDF, the situation is vastly
more difficult. As far as I know, Acrobat Reader and similar plugins do
not expose any kind of DOM for PDF documents to JavaScript code running
in the browser. If you really badly need to extract this information
and can't do it on the server, it's probably possible to have a
client-side script parse the PDF file and read the links, but it would
be a very involved project.

-- David

Dec 20 '05 #2
I talking about links within a PDF document (inside PDF document),
How to catch this links in the PDF inside document and put it as a
bookmark for navigation panel ?
Regards,
Piotrek

Dec 20 '05 #3
Ptaku25 wrote:
I talking about links within a PDF document (inside PDF document),
How to catch this links in the PDF inside document and put it as a
bookmark for navigation panel ?


The only way I can think of to do what you are asking is to include the
bookmarks as part of the PDF file itself, using Acrobat's "table of
contents" feature. There is no practical way that I can find to get
this information from a web browser environment; even if you could,
there doesn't appear to be a way to cause Acrobat Reader to navigate to
a particular page from JavaScript.

In other words, unless somebody here can find a way of doing this that
I missed, you're out of luck. Sorry.

-- David

Dec 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1352
by: Simon Templar | last post by:
I have had problems several times with links to files to download. In one case I had a text file with different extension than txt, that, in case the user has the associated application installed, it could be opened with that, or otherwise downloaded. The problem was that in some clients, the browser displayed the file, wich was not the intended purpose and was useless for the visitors. Another time I had the more common challenge of...
4
7344
by: Andrew | last post by:
My VB Application opens an Access Report and has an option to generate the report in PDF once the report is closed. This is accomplished by: - Switching over to the Acrobat Printer (i.e. PDFWriter) from the default printer. - Setting a string type sub key "PDFFilename" in the registry "HKEY_CURRENT_USER\Software\Adobe\Acrobat PDFWriter" to store the PDF in a user selected directory with a filename that's determined by VB codes.
1
6576
by: Nicole | last post by:
Like many before me, I am tearing my hair out trying to get Acrobat 6.0 to work with VBA. I am getting close, and the error I am getting now seems like it should be easy to surmount. So why am I stumped?! ;) This code is in the middle of a large module in an ADP that takes web data and ports it to an MS Word form that is dynamically generated based on the data. Near the end, the Word doc needs to print to PDF and save both the Word...
2
4366
by: BikeToWork | last post by:
I found code online which uses Windows API's to save Access reports to pdf format files. I'm using the full version of Adobe Acrobat Professional 7.0. The problem is that regardless of what I put in the code as a filename it automatically saves the report based on the report name instead of the string passed to the registry key. The code is as follows: '****************************************************************** 'Setting value...
4
5896
by: William LaMartin | last post by:
I have a vb.net win form where I want to output some text to a printer. Everything works fine when printing to my laser or inkjet printers. However when I print to the Acrobat PDFWriter printer driver, I get correct formatting but the text is gibberish. I am using ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, New StringFormat) , where line is the text that I wish to print on each line, to print the text. ...
3
9848
by: Joris De Groote | last post by:
Hi, I use Adobe Acrobat to read tekst from PDF files. After that the file has been read, I move the file in a folder (using the date I got from the text I got from Acrobat). Now here is my problem. When I want to move the file, I get an error stating: System.IO.IOException: The process cannot access the file "x:\VF\2006-01\CVF-06000007.pdf" because it is being used by another process.
5
7465
by: CDMAPoster | last post by:
I have changed how I get the shell path for Acrobat Reader based on code posted by John deKrafft. Does anyone see any problems with this code running on various Windows OS's? '--Begin Module Code 'Support functions and constants for reading a string from the registry 'I have modified the code posted by John deKrafft slightly '---- Declare Function RegQueryValueEx Lib "advapi32.dll" Alias
1
1993
by: sajithamol | last post by:
I have to open up a PDF file and then print it, from a .Net project. I could easily add the type library acrobat.tlb and use CreateObject("AcroExch.AVDoc") for accessing acrobat application. But if I do so, Visual studio will create an interop assembly - wrapper and use acrobat.tlb itself. Unlike interop assemblies (which is made by Visual Studio while referring an x86 assembly in .Net), PIAs are signed by the publisher and using a PIA is the...
10
10372
by: Mauro | last post by:
I'm trying to use the following VB function to transform a pdf document to a tiff one: http://forums.microsoft.com/msdn/showpost.aspx?postid=1665127&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1 Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal fullPathTIF As String) Dim PDFApp As Acrobat.AcroApp Dim PDDoc As Acrobat.CAcroPDDoc Dim AVDoc As Acrobat.CAcroAVDoc Dim JSObj As Object
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10393
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.