Jump to content

Expose Java to COM


seadoggie01
 Share

Recommended Posts

Basic question: Can I create a Java object and expose it to COM to be able to use it in AutoIt?

Long version: I've written a Java program that extends the functionality of PDFBox's PDFMergerUtility to add a bookmark at each file that gets added. I compiled it into a jar and it works great from the command line. I was wondering if there was a way to expose a COM object wrapper for the class to basically allow for asynchronous calls... so my AutoIt program can request the PDFMerger to merge 10 documents and continue merging more sets of PDFs and the Java program will continue in the background. Then AutoIt could check to see if all PDFs were merged before closing the object. After this, I was thinking about mimicing the functionality of Acrobat Pro though PDFBox and so on.

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Oh... yup, that's exactly what I'm looking for, isn't it? I swear I googled it :(

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Now I'm a bit confused... doesn't the Java Access Bridge allow other programs access to GUIs? Is there a way to extend that functionality?

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...