How to configure doxyfile and get documentation for .doc file as input to generate html output in Doxygen? - documentation

I have a task of documenting a file with extension .doc using doxygen tool. I am able to generate html output for a .cpp file but stuck to set the correct configuration of doxyfile to generate html output for file with .doc extension as input file .Please help me out to solve this problem.

I tried the above mentioned to document a doc file but it failed should Is it necessary to comment the contents in doc file to get html output or it's ok if we just parse the file by mentioning FILE_PATTERNS =*.doc

Related

vb.net reading configuration file

I have a vb.net application and in the startup folder I have an XML config file. I want to read the settings from this file, not from the user/app/ folder. Is there any way that i will define the application to read configuration from this file?
You really made a poor description of your problem;
You don't want to read a configuration file, you want to read an XML file. There are literally thousands of examples for that.
How to read an XML File

Rename files without extension with AutoHotkey

I am trying to add .pdf to the filename of files without extension in a folder.
It is possible to rename for example txt files to pdf using the following command:
FileMove, %SourceFolder%\*.txt, %SourceFolder%\*.pdf
Also, I can add .pdf to all files by:
FileMove, %SourceFolder%\*, %SourceFolder%\*.pdf
But I only want to target only the files without extension. How to do this?
Example
As suggested by kasper and MCL
SetWorkingDir %A_ScriptDir%
Loop, files\*
{
if !StrLen(A_LoopFileExt) ; if no file extension
{
FileMove,%A_LoopFileFullPath%,%A_LoopFileFullPath%.pdf ;rename file
}
}
see [Loop, FilePattern]
see [FileMove]
#kasper, You can use windows command prompt to rename the file as well as change the extension.
Just navigate to the file directory and use command
ren abc.txt abc.pdf
Here abc.txt is old file and abc.pdf is pdf of abc.txt.

docx4j: help converting docx to 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

How to uncompress and import a .tar.gz file in kettle?

I am trying to figure out how to create a job/transformation to uncompress and load a .tar.gz file. Does anyone have any advice for getting this to work?
you want to read a text file that is compressed?
Just specify the file in the text file input step in the transformation - and specify the compression (GZip). Kettle can read directly from compressed files.
If you do need the file uncompressed then use a job step - not sure if there is a native uncompress, but if not just use a shell script step.
There is not such component in kettle to uncompress the tar.gz file i found.
But if we have the csv file text compressed in gizip format we can use gzip input component.

Apache Config Mime Types: xlsx files are being interpreted as zip files on download, why?

Background: For some reason, whenever a user tries to open an xslx (excel 2007) file from our intranet using MSIE, the file download dialog interprets it as a "zip" file.
Admittedly, xslx files really are zip files, but we don't want that behavior. Just open in Excel, please.
Question:
Firefox, OTOH, opens the files normally. Is it possible that the fault is my apache configs? or is this a client-browser-only issue?
You must add some new MIME-TYPES on the web-server-side.
See the comment-thread on this windowsnerd.com page (from 2009):
Add this to a .htaccess file and throw it on your site: AddType
application/vnd.openxmlformats .docx .pptx .xlsx .xltx . xltm .dotx
.potx .ppsx
Should fix many of the problems.
Alternatively, you can add this to the mime.types file located in the config directory of your Apache web server
application/vnd.ms-word.document.macroEnabled.12 .docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12 potm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.ms-excel.addin.macroEnabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.ms-excel.template.macroEnabled.12 xltm
http://www.webdeveloper.com/forum/showthread.php?t=162526
The reason is IE's strange MIME sniffing behaviour: http://msdn.microsoft.com/en-us/library/ms775147.aspx. It basically tries to determine to the file type of a file by looking into its contents, somehow like Linux's file tool.