JT Reader is requested
Posted: Sun 8. Nov 2015, 15:12
Hi IT expert,
I want to load JT file and export 3D PDF file. Since JReality doesn't support any JT format, I have tried this library
https://code.google.com/p/jt-java/downl ... -0.7.1.zip
public static void main(String[] args) throws Exception {
// register the reader class for the JT-format
Readers.registerReader("JT", JTReader.class);
// register the file ending .jt for files containing JT-format data
Readers.registerFileEndings("JT", "jt");
String inputFile = "C:\\TCBackup\\Test_Data\\JT\\others\\bnc.jt";
String outputFile = inputFile + ".pdf";
URL fileUrl = new File(inputFile).toURI().toURL();
SceneGraphComponent content = Readers.read(new File(inputFile));
(new WriterPDF()).writeScene(new JrScene(content), new FileOutputStream(outputFile));
stream2.close();
}
This program is working only for some JT format and there are many bugs, it seems like the library is stopped to be developed in 2012.
My request is, can JReality provide a stable JT Reader?
Thank you very much!
Paul
I want to load JT file and export 3D PDF file. Since JReality doesn't support any JT format, I have tried this library
https://code.google.com/p/jt-java/downl ... -0.7.1.zip
public static void main(String[] args) throws Exception {
// register the reader class for the JT-format
Readers.registerReader("JT", JTReader.class);
// register the file ending .jt for files containing JT-format data
Readers.registerFileEndings("JT", "jt");
String inputFile = "C:\\TCBackup\\Test_Data\\JT\\others\\bnc.jt";
String outputFile = inputFile + ".pdf";
URL fileUrl = new File(inputFile).toURI().toURL();
SceneGraphComponent content = Readers.read(new File(inputFile));
(new WriterPDF()).writeScene(new JrScene(content), new FileOutputStream(outputFile));
stream2.close();
}
This program is working only for some JT format and there are many bugs, it seems like the library is stopped to be developed in 2012.
My request is, can JReality provide a stable JT Reader?
Thank you very much!
Paul