Results 1 to 8 of 8

Thread: Convert RTF Files to PDF

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2004
    Posts
    28

    Convert RTF Files to PDF

    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?

  2. #2
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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

  3. #3

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jun 2004
    Posts
    28
    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?

  5. #5
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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
    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

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jun 2004
    Posts
    28
    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?

  7. #7
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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

  8. #8
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    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
    Ishat!
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width