I have code that creates a set of rtf files. I would like to write something to automatically convert these files to pdf.
I am using VB to generate the rtf files, is there vb code to generate the PDF files?
Printable View
I have code that creates a set of rtf files. I would like to write something to automatically convert these files to pdf.
I am using VB to generate the rtf files, is there vb code to generate the PDF files?
Here's some code that creates PDF's at runtime.
The code is a little unstructured, but I haven't had time to run through and neaten it up :(
Can't even remember where I got it from. I suck.
Anyways, it seems to do the trick.
U will have to look at the RTF file and set the colors and fonts in the PDF thing accordingly.
Woof
It's just one of those days.
Here's the ZIP :D
Fish
Thanks Woka, working with the code now.
I notice you're in Basra. I just met this Iraqi girl - do you know any funny things to say to her? (maybe not too crude)
It couldnt find revisione.txt --- I assume this was your revision file and not important for the project?
Funny things to say to her...Hmmmmm...
Q. What's got 2 legs and bleeds in the middle?
A. 1/2 a dog.
Q. What's better than winning gold at the paralympics?
A. Having arms and legs.
Boom boom.
No, don't say those to her :D
I have no idea what you can say to her :(
www.iraqjokes.com maybe? (I made that site up, dunno if it exists or not)
Anyways, back to the problem.
Just checked my project and it whinges at me too.
It was just a silly ref txt file that the author had in there, I deleted it as it was all in spanish and made no sense.
It's not needed anyways. Just resave the project after you load it.
Both those buttons on the form create 2 PDFs in the apps folder.
Woooof
Haha it was supposed to be in Iraqi language since it's her native tongue - thought you may have picked up the language?
Im looking to read files and convert them to pdf, it seems like this creates new pdf files with designs pictures in them. Not sure if I know how to make it read my file?
Hahahah. You wanted code that u just passed a filename to, and it did all the converting for you? Hahahaha
Think you have to pay for stuff like that.
But what you can do, is write the code yourself :)
All you need to do is load the RTF file, go through it adding text, color and formatting to the NEW PDF doc as you go.
So, you're going to have to write the conversion code. The code to create the PDF is there...
No, don't know arabic :(
Woka
Ishat!Quote:
Originally posted by Wokawidget
Hahahah. You wanted code that u just passed a filename to, and it did all the converting for you? Hahahaha
Think you have to pay for stuff like that.
But what you can do, is write the code yourself :)
All you need to do is load the RTF file, go through it adding text, color and formatting to the NEW PDF doc as you go.
So, you're going to have to write the conversion code. The code to create the PDF is there...
No, don't know arabic :(
Woka