How to convert Html to PostScript using GhostScript? - html

I want to convert html to PDF in order to converting it i found that direct conversion is not possible so i choose a method html-->PS-->PDF i have successfully convert PS to PDF but cant convert html to PS through ghost script now can anyone please tell me is it actually possible or not and if it is then how ?
Platform - Windows
note - No thirt pary/paid/dll tools plesae

Ghostscript does not interpret HTML, so no you cannot take HTML and create a PostScript (or PDF) file using Ghostscript directly. Since you can't convert HTML to PDF using Ghostscript, why would you think you could convert HTML to PostScript with it ?
You can (in general) print from a browser window to a virtual PostScript printer in order to create PostScript.
If that isn't acceptable then you will need to use some other means to create PostScript from HTML, in which case you may as well just go straight to PDF. wkhtmltopdf is open source, you could try that.

Related

How to convert html string(or file) to pdf file using wkhtmltopdf c library- steps?

I am looking for a c/c++ library which can be used to convert html string/file into pdf. Researching StackOverflow led me to wkhtmltopdf c library. I download the zip from http://wkhtmltopdf.org/downloads.html. When I run wkhtmltopdf using command line it works fine and converts the HTML file into pdf output file. But my requirement is to convert HTML file or html string(preferably) into pdf file programmatically from a C++ program. I do not want to use it as command line(or mimic it using say UNIX like "system" command). I am using Windows OS. Could anyone please help me how do I achieve it using wkhtmltopdf. Thank you in advance.

Convert Notepad++ user defined language to html

I have created a user defined language using Notepad++. Now I want to convert this into html format. There are many free source tools available which can convert lets say rtf file to html but how can i convert this user defined language file into html?
Notepad++ allows me to save this file which is in user-defined language with any extension but the formatted text can only be viewed in notepad++.
Like if I save the file as draft.rtf, open the file in notepad++ the changes (formated text of user defined language) will stay but when I open the same file in Word the changes are lost!
A simple copy paste from notepad++ to Word also causes the text to lose its user-defined language specifications. Kindly help.
Check the NppExport plugin, it will export your file with the syntax highlighted as html (i think) and then you can use that somewhere else
http://www.addictivetips.com/windows-tips/nppexport-for-notepad-export-highlighted-code-in-html-rtf-format/

Convert RTF File into HTML in Objective C

How can I convert an RTF file into an HTMLformat ?? I have a text editor which saves the file in rtf format but I need to put the contents on my server. For that I need to convert the rtf file into that of an html.. I am unable to find any help with regards to Objective C . Thanks.
I don't know of any library in objective-c that does rtf to html conversion.
However if you are able to perform the conversion server side then that opens up a lot more possibilities, such as php and c# libraries, as well as gnu utilities.
For example (and you can google for many more):
php: Pa software's RTF to HTML converter (paid product), Martin Mevald's rtf2htm (old GPL'ed software), Marcus Fischer's RTF Parse class (GPL'ed code), Zend's LiveDocX or even alternatives to livedocx on SO alternative-for-phplivedocx .. etc
C#: On SO convert-rtf-to-html, simple-convert-rtf-to-html, or from MS Converting-between-RTF-and-HTML
GNU: GNU's UnRTF utility.
If you really want Objective-c then the source code of the php and GNU solutions could be translated - however that will not be a trivial task. As such I still think your best bet would be to do it server side.

latex input to html and pdf output

Is there a ruby gem that can parse latex formatted string to html string and pdf binary string including bibtex bibliography?
I'm using textile (redcloth) right now in my rails app to get formated html, but I'd like to use latex to do it. I also would like to use *.bib file for references. And having latex it should also be easy to build a pdf file, in order to provide a pdf version of the same article (nice to have)...
I also could do it with the system call and e.g. texlive, but then I've to save the user input to file and manage these files and put it back to database and that all would take some time. I don't like this approach...
Is there a nice way to do it?
You could try runtex, although I do not know if it will do exactly what you want, I have not tested it.

Generate single-file HTML code documentation

How can I use Doxygen to create the HTML documentation as a single, very long file? I want something like the RTF output, but as HTML.
The reason: I need my API published as a single, printable, document. Something that can be loaded into Word, converted to PDF, etc.
I think you can use HTMLDOC to convert the generated html files to a single html file. (I did not try it myself)
The manual includes the following example to generate a html from two source html files:
htmldoc --book -f output.html file1.html file2.html
But there is also a gui.
I don't think there's an option that will produce the output as a single HTML file, but the RTF output may be suitable if you need an editable output format (I haven't tried this myself so I don't know how well this works).
If you want good quality printable output, then Doxygen can output LaTeX format (set GENERATE_LATEX to YES in your doxygen configuration file). This can then be converted to PDF, although you'll need to install a LaTeX distribution such as MiKTeX.