Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Where is javascript console???

Posted on 2004-08-31
12
Medium Priority
?
413 Views
Last Modified: 2010-08-05
Hi, I am using Acrobat Standard 6.0 and am trying to find the javascript console. It does not appear to be in the Tools menu so can someone please put me out of my misery and tell me where it is, or is it in this version? It has an option in the preferences to enable javascript which I hyave done. Please help. Your my only hope.
0
Comment
Question by:azriel_99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11948399
The JavaScript console (which is actually the JavaScript debugger) is only part of Professional. And, it would be in the "Advanced" menu (Advanced>JavaScript>JavaScript Debugger).
0
 

Author Comment

by:azriel_99
ID: 11948444
thanks khkremer, that would explain that. I am trying to automate Acrobat from VB.NET. It seems that one has to use a JSObject to do this. I have tried this and the commands execute but do nothing. So I guess in the Professional version they would work? Do you know much about this sort of thing?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11950496
JavaScript is supported by Standard, and I would assume that the JSObject should also work. Have you tried to run sample programs? If you can wait a couple of hours, I can send you an example.
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 2000 total points
ID: 11951449
This is for VB6. Open a new project, and select "Standard EXE".
Place a button on the form. Double-click on the button and add the following to the click handler:

Private Sub Command1_Click()

    Dim App As Acrobat.CAcroApp
    Dim PDDoc As Acrobat.CAcroPDDoc
    Dim jso As Object
    Dim i As Long
    Dim FileName As String

    FileName = "c:\test.pdf"

    Set App = CreateObject("AcroExch.App")
    Set PDDoc = CreateObject("AcroExch.PDDoc")

    If PDDoc.Open(FileName) Then
        Set jso = PDDoc.GetJSObject
       
        i = jso.numPages
        MsgBox (i)
    End If

End Sub

This assumes that you have a file c:\test.pdf. The program will create a JSObject, and use it to get the number of pages in the document c:\test.pdf.

Does this work?
0
 

Author Comment

by:azriel_99
ID: 11952060
khkremer, yes I have code very similar to that but what I am trying to do is a jso.SaveAs from PDF to EPS. When I try doing this I get a console message saying security features do not allow this. I have been thru all the document and application settings and switched off all security but still no dice.
Alternatively I have created a batch sequence that converts all files in a folder to EPS, this would do the job if I could do it programmatically, but I can't find any way of doing this either.
Do you know of any software or a method (perhaps another adobe app) that will allow me do convert PDF's to EPS programmatically?
I read in another of your posts that it could perhaps be done with a C++ plugin?
Any pointers much appreciated!
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11952192
Do you have the "Acrobat JavaScript Scripting Reference"? If not, you need to download this document from Adobe's web site. For every method you will find information about any limitations. The saveAs() method has such limitations: You can use it only during batch, console, or menu events. You could add a menu item to Acrobat that would call your saveAs function, and then execute this menu item from your VB application.

You can certainly export a PDF as EPS from within a plug-in, but this is a lot more complicated than writing some JavaScript or VB code.

Another option is to use software that allows you to automate batch sequences:
callas AutoPilot (http://www.pdfstore.com/details.asp?ProdID=654) and CaslonBatch (http://www.caslonsoft.com/composite-56.htm) support the automation of Acrobat batch sequences.
0
 

Author Comment

by:azriel_99
ID: 11959079
Good morning khkremer, sorry about the delay - I guess we live on opposite sides of the rock!
Thanks for your reply. I am currently evaluating the trail software you recommended. Price on Autopilot seems a bit $teep tho!
Your menu item idea is interesting, I will give this a try too.

As a matter of curiosity at this stage, would you be at all interested in writing me a plugin to do the job? If so, what would be the cost?
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11959101
Sorry, but I'm not available for any consulting or programming jobs.
0
 

Author Comment

by:azriel_99
ID: 11959176
oh well not too worry. I will try that menu thing and maybe post a question about that later today!
thanks for your help, top stuff!
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11959211
I may not be around later today - try tomorrow morning :-) Are you in Australia? I'm in New York State, USA.
0
 

Author Comment

by:azriel_99
ID: 11960570
Not bloody likely! I'm a Kiwi from Dunedin city New Zealand, the Edinburgh of the South, it was snowing last week. Is it snowing in New York? I doubt it!
cheers!
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11961702
Sorry about this, there are more Aussis here than Kiwis, so I just assumed :-)
It's not snowing in NY yet, give it a couple more weeks... We just had thee 2nd coldest summer in the last 100 years.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question