Read (and write) RTF files with C++ / Qt [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit.
More the Formatting preserved the better -- but actually I am planning to use Bold and Italics only.
In perl I would use RTF::Tokenizer.
It would be nice if the module had some sort of interface for writing also, but I am able to brute force that with a template and some regular expressions.

I helped writing the RTF import export filter in KOffice. You can have a look at the code at https://cgit.kde.org/koffice.git/tree/filters/kword/rtf. The code is modular and it depends only on Qt.

A quick SourceForge search suggests librtf. It hasn't been developed in a while, but is listed as stable and is under the LGPL. I don't know whether it will support what you need, but I always suggest searching SourceForge for libraries.

You can ask the #koffice guys on irc.freenode.org over irc. Their program kword is able to open RTF files, and is indeed also written in Qt. I'm sure they would be glad to tell you about how they do it.

Related

Where can i get documentation for .doc file format [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have written a program that currently can only read and write to openformat types, but this is not convnient to some users, what doccumentation can i purchase for .doc , .docx, etx... thank you.
I don't think you need to purchase anything. Don't try to reinvent the wheel instead use some library avaiable on the net like docx4j, or the Apache POI like Thomas and piet.t suggested.
For the record, I never used this library. But their website seems very complete and the forum section is active and filled with a lot of posts. Also I've already heard people talking about it (but I guess it's just hear say so it doesn't count) So it seems to be a good one.
One little quote found on their website :
"congratulations for the great job, I can do things that I cannot with POI or OpenOffice? API !!"
Instead of reinventing the whell just take a look a the apache poi library. That one will allow you to create or manipulate dox or docx documents via java-API.
Have a look at Apache POI, which should at least be able to read .doc files.
Here's some info on POI's .doc and .docx support: http://poi.apache.org/hwpf/index.html

Integrating Latex into my desktop application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm searching for a consultation, or maybe an opinion, a suggestion, or something like this.
I'm starting a project (desktop application) that is something like an IDE for writing books/reports. I'm planing to introduce LaTeX features, if I can name them in a such way.
So the question is: Is it possible to integrate a LaTeX script or plug-in in my software in order to have the needed features?
Waiting for questions or suggestions on my topic.
Thanks in advance!
P.S. Sorry if this topic was already posted.
Not sure I understand your question correctly. I never heard of some kind of LaTeX library or plugin of some kind, which is readily available to be integrated in other programs.
You tagged your question 'qt' so I assume, you use Qt as your framework. The only way I see to integrate LaTeX into Qt is using QProcess. Write your LaTeX code, start pdflatex with QProcess. The question then is if you can do something with the created pdf file.
Look for MikTeX and TeXworks. If you google those, you should be able to get the links to download those. That should do what you need.

Report generator for C++/Qt (Windows) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a program un C++/Qt written for Windows, which prints some graphs in pdf format and some other data in HTML.
I need to print all together into a single PDF, a single-file report.
I have looked for some libraries similar to Crystal reports, but I just find paid ones and I need a free open-source solution. I finally found RTK reports but it looks to run only with UNIX.
Any library or different solution for my needs?
You might want to check out what Qt has built into it in versions 4.7 & 4.8. From Qt 4.8: Printing with Qt, there is this little tidbit "Qt's printing system also enables PostScript and PDF files to be generated...." The QPrinter class supports several different Output Formats, including PDF.
Disclaimer: I haven't played with this part of Qt, so YMMV.

Syntax highlighting library written in C/C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for a free (for commercial use) library for syntax coloring written in c/c++. Are there any out there?
I am not sure if you are looking for something to color an existing control or a control with text coloring built in. If you are looking for the later you could check out Scintilla.
Scintilla is a free source code
editing component. It comes with
complete source code and a license
that permits use in any free project
or commercial product.
GtkSourceView is a nice library for syntax highlighting and source code editing. It's used in several Gnome editors like gedit and Anjuta and is in active development; it also has a very permissive LGPL license which permits its use in commercial products.
There is also a C++ wrapper called gtksourceviewmm.
http://projects.gnome.org/gtksourceview/
another project to note is the GNU source-highlite
found this:
http://colorer.sourceforge.net/

Can somebody recommend a good U3D library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I need to put some 3D images into PDF files, and PDF uses Universal 3D (U3D) formats. I don't like the U3D Sourceforge project (basically what Intel released after the ECMA standardization effort).
Does anybody know of good U3D libraries I could use? I'm using C++ on Microsoft Windows, FWIW.
VCGLib is a mesh processing library that has a U3D exporter and a variety of importers (see http://vcg.sourceforge.net/index.php/Tutorial#File_Formats). MeshLab is a tool built on top of it.
Another answer would be Visual Technology Services with PDF3D (PDF link). I've started evaluating it and I like what I see so far.
I agree with your position of not liking the U3D sourceforge project. People at my company is having problems with it when exporting large models: it runs out of memory.
The project has explicitly stated that it has memory issues on its TODO list and is dead since 2007, so I strongly recommend you to go elsewhere.