LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing bookmark of PDF document

Hi All

 

Is there any way to access the bookmart present in the PDF document in LabVIEW and accordinly point out to the specified text present in the PDF document?

 

I tried with activex but i didnt get any property to access the bookmark of PDF.

Does anyone know how to do it?

 

Thanks in advance

0 Kudos
Message 1 of 7
(3,995 Views)

Hi,

 

To start with, I did not know we can bookmark in PDF Smiley Sad. I Googled Smiley Wink, http://www.instantfundas.com/2008/04/how-to-bookmark-page-in-pdf.html

Did what this page said. Now I can see bookmark option.Smiley Happy

 

Now about your question, I got the property node to access bookmark options,

 

11.JPG

 

12.JPG

 

But the problem is, when I use these methods my LabVIEW crashes. I don't know why.Smiley Sad

Can you try this and let me know if it works for you.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 7
(3,984 Views)

Hi,

 

I have also tried with the same property node. Howerver in my case LV is not crshing but I am not able to load the corresponding PDF file first. That property is expecting varient data...not sure what exactly is expected in order to first load the file and then access its bookmarks.

 

I think may be the Adobe Acrobat Reader version present on the PC plays a role. Method which we select should be of the same version.

0 Kudos
Message 3 of 7
(3,977 Views)

You will have to load PDF file first, then select bookmark. That's the sequence.

Have you tried this way?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 7
(3,969 Views)

Yes i have tried the same way .

BUt what I am not understanding is for accessing the bookmark I need to take different refnum and for loading of the file i need to take different refnum...howz that is possible? I am doing anything wrong?

Also the mehtod which I am using is not loading the file.

 

 

 

please refer the attached JPG.

 

 

0 Kudos
Message 5 of 7
(3,962 Views)

Use attached VI for loading PDF file.

P.S. : You will have to change preferred Execution system As User Interface from VI properties.

 

About Bookmark: I am still working on that, no result yet. Smiley Sad

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 6 of 7
(3,952 Views)

HI Gak.

 

I have tried the method which you have given.By that I was able control the page number but was not able to access bookmark.

see the attached VI

 

 

 The bookmartk property which is available in type library Displays the type libraries available on the computer. The type libraries in the list are not the ActiveX implementations, but metadata files that explain what type libraries the ActiveX component uses.

 

So as per my understanding , if I used the activex object to load the file then there is no option for bookmark. On the other hand if the type library is accessed then i am not getting option to load file. Smiley Sad

 

where I am doing wrong???

0 Kudos
Message 7 of 7
(3,925 Views)