Read IDML file in Java - java

I have a web application running in AIX server and the requirement is to read an IDML file, get the coordinates of each and every text in the file and write some custom information into a PDF based on the coordinates.
I have gone thru various documents and forums on how to setup or what is required to achieve this, but I am confused. I need some information on what is required from software and licensing perspective in order to achieve this requirement.
In order to run the java program, which can access IDML file in AIX server, do I have to buy InDesign Server license or I can extract the IDMLTools.jar from SDK and place it in my ClassPath?
Where do I find IDML SDK? I am unable to access IDMLToolsLib.com site?
Any help is appreciated.
Thanks,
Satish.

There is a Java lib IMLLib. It intends to ease the idml file exploration. I never used it myself but it seems a great tool.
Video:
https://www.youtube.com/watch?v=LQqd9NgH8W4
Site:
http://idmllib.com/

Why not unzip the IDML and parse the resulting XML files?

Related

Replace Applet in downloading and executing a file

I have an application that has an applet that does two simple things:
Download an executable jar file from our server (if the user doesn't already have it) to an specific folder in the user's PC
Execute the jar file with the corresponding parameters
This jar file monitors an Office file for changes and send it back to our server.
The problem is the war Chrome is creating with Java with this NPAPI thing. So I have until September to think of an alternate technology or stop the Chrome support.
Do you think of some other way to achieve the same result? Just download and execute. Doesn't seem that hard =(. Can HTML 5 do that?
EDIT
I was looking into Java Web Start and became a little happy. It appears that it can do what I want: executing a up to date jar file passing parameters. But I never worked with JWS, so I have some doubts:
Is it possible to pass parameters to it? I read about some JSP files that you can configure to do that, but I'm still unsure.
Theoretically, it should start automatically from a browser link, am I right? I tried this site:
https://docs.oracle.com/javase/tutorial/deployment/webstart/running.html
and it didn't work that way. I had to mark "always open files of that type" on Google Chrome. Is there a way for automatize it?
Thanks again!!
From what I know there are at least two things that allow you to stick with Java.
Webstart
Install4
Webstart is provided by Oracle and allows you to download Java program from the web and execute them. Update mechanisms exist, so you can always provide a current version.
Install4J (or any other installer for Java applications that offers an update mechanism) provides an installer which enables your customer to install an application which afterwards will be kept up to date by the integrated update mechanism. But Install4J comes at a price, there might be freeware / open source alternatives. Install4J and its alternatives are often discussed here on SO, you might want to check here.
I think the FileAPI of HTML5 is limited and can not access arbitrary files because a sandbox prevents this. You might check SO again for details about that.

Converting oracle form FMB's to XML

I'm trying to convert oracle forms FMB files to XML. To do this I'm using forms developer 10's native Java tool. This works fine on my local computer but I'm trying to automate the conversion process on a server.
I've taken the main folder "Dev10G" from my forms install directory and added it to the server, but I'm getting the error that you can see in the screenshot. I'm trying to avoid doing a full install of forms developer on the server if I can help it. Has anyone any suggestion on what I might try next.
Thanks
You need to exit the bat file in textpad.
You will then need to change the paths.
I you need extra help feel free to checkout my note how to do it here
https://oracleformsinfo.wordpress.com/2011/12/16/batch-script-for-fmb-to-xml-and-xml-to-fmb/

Writing Java from a Text Editor

As a project, I wanted to build a personal website using Java for the server-side code. I am very new to Java and wanted to know if it was possible to write Java using a simple text editor, upload the file into a file directory in Apache Tomcat where the corresponding JS and HTML file sits (for practice purposes only), and then run the web project through the HTML file.
I do this with php through LAMP all of the time, and was hoping Java might work that way as well.
Yes its very much possible. Even though you may find it bit difficult without the help of IDE, this should not make any difference. Convert the files to proper class files and upload it, that should do
Though i agree with above answer.But you can also go for hot deployment plugins for example mvn:jetty plugin for hot deployment of your website, but for that it needs to be maven project.Also grails and many other framework has this features inbuilt.

How to associate a file with a program in java

Take notepad for example. You can open a file with notepad (right click and open with, or double clicking on the file if it is already associated with notepad) and it will display the contents of a file. I want to be able to open an xml file with the program that I am writing so that it can do some parsing and give a desired output. What sort of ways are there to do this in java? Do I have to ask for an argument to be passed into the program when it is opened? Would this be easier in C++ or some other language? If you need any further information please let me know -- this was the best way I could come up with to discribe my situation, which may be why my google searches have come up empty. Thank you in advance for your help!
You can associate an extension with a java jar and the file name will be passed as args[0] It doesn't get much simpler than that. I suggest you try it with a "hello world" program. ;)
display the contents of a file ..What sort of ways are there to do this in java?
Install/launch the app. using Java Web Start.
Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.
JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..
Here is a demo. of the JNLP API file services (an API available to JWS apps.) that registers an interest (claims an association with) in the .zzz file-type in the launch file. Associations can also be done programmatically using the IntegrationService of the JNLP API.

Is there any way to download Mediafire links?

I'm writing a program that reads in a text file of artists and albums, and spits out Mediafire download links.
I want to take it a step further and actually have it download those links, but I don't know if there's a way to do that.
You may want to look at JDownloader - it's an open source Java application that can download from many hosts, including Mediafire (I believe). You could either use it to download the links, or borrow their Mediafire code (assuming it is compatible with the licensing on your own application).

Categories

Resources