Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Via Java JNI, telling Acrobat to open and print a pdf file

Status
Not open for further replies.

pfist

Programmer
Oct 6, 2001
47
US
I have been trying to programmatically print a pdf file using Java and have not found solution yet. I am interested in learning more about 'wrappering a dll' or something on those lines so that a JNI call is possible.

Note: I am a strong programmer but my background is Java, PL/SQL. I have NO C, C++, VB experience or knowledge.

There was a thread on this forum titled:
Calling a Visual Basic component's method from Java

I think what I want to accomplish is similar to this thread. However I don't think VB need be involved.

I have down loaded the Acrobat SDK and read through the API and--in IACReference.pdf under OLE Automation Methods--found
object AcroExch.AVDoc
method PrintPagesEx
method PrintPagesSilent

I assume I can call these methods directly via JNI but do not know how to proceed.
What is the relationship fo SDK to Acrobat. What kind of tools do I need to get final result? Do I have to compile any C/C++? Or do I have to focus on JNI only?

Can anyone define concisely what steps I will take and what tools I will need to achieve objective?

Please feel free to give an answer to only one of my questions if you want.

Many Thanks, Pfist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top