docx4j: help converting docx to PDF - pdf

My goal is to take an existing .docx file and convert it, from a Linux command-line, to PDF using docx4j (http://www.docx4java.orghttp://www.docx4java.org). The "getting started" guide (http://www.docx4java.org/svn/docx4j/trunk/docx4j/docs/Docx4j_GettingStarted.html) refers to a samples directory that isn't actually included in the latest (2.8.1) package. Regardless, I located the samples directory in their SVN browser, created a 'samples/' subdirectory in my docx4j folder containing all the .jar files, and downloaded the CreatePdf.java file into the samples directory. Then I tried running:
java -cp docx4j-2.8.1.jar:log4j-1.2.15.jar org.docx4j.samples.CreatePdf my-file.docx
And I get the error:
Error: Could not find or load main class samples.org.docx4j.samples.CreatePdf
Any help would be greatly appreciated.

The samples are included in 2.8.1. Nothing has changed there, except the name of the sample, which is now ConvertOutPDF
Please try that instead.
btw, the SVN repository has been superseded since May. See docx4j-from-github-in-eclipse

Related

Unable to find package location when creating application using yfiles-application generator

I am using the below documentation to get started with yfiles application.
https://github.com/yWorks/generator-yfiles-app
I am stuck with the 2nd question the generator asks "Path of yFiles for HTML package".
What is the default location of this package? Is this a package.json file?
Resolved the issue.
No where in the documentation/read-me did it mention that I had to download the package separately.
https://www.yworks.com/downloads
I had to download and unzip the contents. And this directory becomes the location of the package.

where is open-ride.com's OpenRideServer.ear file located or generated?

I have downloaded the opensource code at open-ride.com in order to set up a rideshare server and associated services.
I am trying to find the ".ear" file that they talk about in the install manual.
does it have to be generated somehow from the downloaded source code?
It has to be generated either manually or through NetBeans. I haven't found out how to do it manually yet, but if you follow the NetBeans instructions you should be able to build it and run it. You might run into an error with the yui compressor where you just need to remove the ../ from the path to it in the configuration file. If you still have problems I may still be able to help.

Source Code missing in Cincom VIsualWorks 7.9.1 in Windows 8

I am running Cincom VisualWorks version 7.9.1 in Windows 8. When I open the class browser and view a library class, it fails to display the source, instead displaying an error comment like this:
" ***This is decompiled code.***
This may reflect a problem with the configuration of your image and its sources and changes files.
Please refer to the documentation and the settings tool for help in setting up the proper source
code files."
I have confirmed that the home path is pointing to the correct directory. How can I fix this?
The answer to this question depends on what code you're looking at. In VisualWorks, source code can be stored in a number of different places. For classes that are present in a clean VisualWorks image with no other code loaded, the source is in a file called visual.sou found in the image directory of the installation directory. As you mentioned, you need to make sure the home path is pointing to the correct directory. It doesn't point at the image directory itself but the directory above - for example, it would be C:\Program Files (x86)\Cincom\vw7.9.1 not C:\Program Files (x86)\Cincom\vw7.9.1\image.
For parcels you loaded, the source code is in a .pst file associated with the parcel. For any code you load from Store or write yourself, the source is in a .cha file in the same directory as your .im file and with the same name. If your image is visual.im then your code is stored in visual.cha.
You need to be very careful about the versions of the files you use. The visual.im file is tightly coupled to the visual.sou file and contains offsets into the .sou file. If you're using a visual.im from another version of VisualWorks, those offsets into the .sou file may not be correct and may produce this problem.
I hope this helps.

sqlite3_analyzer not working in Ubuntu missing shared object file

I am learning more about sqlite3 and am trying to use the sqlite3_analyzer to view a bunch of data about my data. The problem is when I download the sqlite-analyzer-linux-x86-3071502.zip from https://www.sqlite.org/download.html and unzip this package and THEN try to run the program I receive THIS error: ./sqlite3_analyzer: error while loading shared libraries: libtcl8.6.so: cannot open shared object file: No such file or directory
Does anyone know where to get this libtcl8.6.so file? Does anyone know how to install this after obtaining it?
Install the package tcl8.6, or download the analyzer source code and recompile it with the Tcl version in your distribution.
I ended up downloading an older version of sqlite3_analyzer from a third party website (do a search for sqlite-analyzer-linux-x86) that worked without the dependency. I won't post links as I can't ensure that they'll be available and serve the same file as I downloaded.
If you decide to do that, be sure to check the file for viruses on http://virustotal.com! Can't trust these Chinese file hostings ;)

Yii Documentation: Generate Html Help Project files

I need to generate MS html help project files (that is html/js/image files plus .hhp, .hhk, and .hhc) from Yii Docs build system but I'm yet to find how to do It. I don't need a compiled CHM, just the project files. I work from Ubuntu Linux
Any pointer or direct help is appreciated.
Installed PHP Unit and Selenium extension via pear
Then I went on to run phing in yii/build dir with commands
cd yiidir/build
phing doc
check API sub directory and it have all necessary files to make CHM.
Since I needed uncompiled files then I just ended here but you can go ahead and compile to CHM