Results 1 to 11 of 11

Thread: HTML to PDF/Jpeg/Gif

  1. #1

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76

    HTML to PDF/Jpeg/Gif

    Hi

    Does anyone know of any DLL to convert HTML to PDF or any graphics format?

    Thanks in advance
    My Spidey senses are tingling!

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    You can use the PDFWriter afaik from adobe acrobat
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76
    Originally posted by plenderj
    You can use the PDFWriter afaik from adobe acrobat
    Jimjam!!

    Do I have to buy PDFWriter for that?
    I'd like to use a dll file through VB. Do you know of a dll file that does it?
    My Spidey senses are tingling!

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Flusty

    Yeah you'd have to buy it.
    Do you need the entire HTML document in the image or what.

    Is this any sort of doc you'll be doing this with, or just specific ones ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76
    Yeah.. I'm creating an HTML document and I want to export it in a fixed way, some kinda picture format or whatever.

    Ideally i'd like to convert to jpeg format, but I've spent ages trawling the net and haven't found a dll or anything

    I don't wanna have to do a screen capture.
    My Spidey senses are tingling!

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    How big, physically, are the html docs ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76
    The HTML file in bytes is 11K

    The pixels are:
    Width is about 1000
    Height is about 750
    My Spidey senses are tingling!

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well it would certainly fit into a screenshot of the screen!
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76
    It'd depend on the users screen and I'd have to send key strokes (which I want to avoid). Also a screen shot would limit the detail

    I'd really like to use some other method to do it, but I'm a bit stumped
    My Spidey senses are tingling!

  10. #10
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well if you had the page displayed in a web browser control, you could use BitBlt() and grab a copy of the image into memory.
    The only problem then would be trying to save that image to the HDD for further use.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  11. #11
    Frenzied Member agmorgan's Avatar
    Join Date
    Dec 2000
    Location
    Lurking
    Posts
    1,383

    Lightbulb

    I seem to remember from a course I went on that this was quite easy to do with XML.
    I didnt do much after the course so I cant remember offhand what to do.

    Of course you could just install a freeware PDFwriter such as PDF995.

    It works like a printer driver, so you just have to write the code to print to it.

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