Skip to main content
himanshuy46438183
Participant
Nov 14, 2018 10:05 AM UTC
Question

how i read FrameMaker (.fm) file using java

Hii,

I want to parse the abc.fm file using java so anyone can please tell me which API  use to parse the abc.fm file.  

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

K.Daube
Community Expert
Community Expert
May 26, 2022 7:04 AM UTC
Participant
May 26, 2022 7:09 AM UTC

Thank you for your reply!
I'm a Java development engineer and I want to do the same, but got the demand like this. Need to convert the extracted text without Framemaker.
bro hope you understand me

Translate
Participant
May 26, 2022 2:04 AM UTC

Hi, I'm having a very similar problem to yours now. (The problem is to extract the content of the text layer in the .fm file through Java) May I ask how you solved it? so annoying this problem

Translate
Bob_Niland
Community Expert
Community Expert
Nov 14, 2018 2:04 PM UTC

re: I want to parse the abc.fm file using java ...

Why do you need to do this?

re: ... so anyone can please tell me which API  use to parse the abc.fm file.

I'm not aware of any available APIs (but I could be mistaken). Normally, when people need to parse the internal structure of an FM document, they first open it in FM, then re-save it as MIF.

MIF is human-readable, largely documented, and writing code to parse abc.mif is straightforward, although a bit arcane. I've done it (but have no real desire to do it again).

Translate
himanshuy46438183
Participant
Nov 16, 2018 7:44 AM UTC

Thanks, Bob for the reply.

Can you please tell me which API use to parse the data from abc.mif File.

Because I want to get specific data from the abc,mif file and create a new file from that data.

Or can you please tell me any API which converts my .mif  file to .xml.

Translate
Legend
Nov 16, 2018 10:21 AM UTC

There is no API to parse a MIF file. MIF (Maker Interchange Format) is a simple, plain text "tagged" file. It can be relatively easily parsed. You can open a MIF file in any plain text editor like Notepad.

However, FrameMaker as an application also has a comprehensive API.

You can find the FDK (FrameMaker Developer Kit) in the FrameMaker Developer Center. You can create your own "client" with C/C++ which could open a binary FrameMaker document ("abc.fm") and then walk through the objects of the document.

Translate
Jeff_Coatsworth
Community Expert
Community Expert
Nov 14, 2018 12:42 PM UTC

There used to be a program called FrameViewer (I think) that allowed you to view FM content without having FM installed, but I don't think it's still out there. Good luck in your quest...

Translate