Results 1 to 22 of 22

Thread: [VB Code Needed] PDF files

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Smile [VB Code Needed] PDF files

    Can any experts kindly share out the code of how to read the content of .pdf files? (or may be just load them into the vb interface as an image)

    Thanks =)

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    adobe has an sdk available, but i don't know what it can do.

    i have a freeware program that can convert pdf into jpg or html, either of which you can do something with

    rgds pete

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    the project only allowed vb =(
    anyway, thanks for your kind suggestion =)

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    the project only allowed vb =
    the sdk would probably be a dll or ocx that would expose its methods to vb, so that would still be VB

    pete

  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    oh? can you tell me in details? thanks.

    my msn is [email protected], icq 98470205.

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    adobe

    note: it is not free

    rgds pete

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    er.......... sorry for mentioned it clearly, i am not allowed to buy any other license.

    only vb program was provided to me. I ASK FOR CODE.
    thanks

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [VB Code Needed] PDF files

    they have a plug-in for explorer. can you call explorer from your project, witht the plug-in?

  9. #9

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    cannot, it's just simply something like, a person wanna load some pdf files into vb and creat an E book(an .exe file) using them.

  10. #10
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    adobe has made this as hard to do as they possibly can.

    others have been able to do this, but wether or not they could do in VB is another matter

    do a search for GNU ghostscript as this is, i believe, the basis for pdf conversions

    GNU is free to use and you can download
    ghostscript

    pete

  11. #11

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    westconn1, i think you din get wat i mean.

    i wanna make things as simple as possible, i wanna know if there's have any code to read pdf files directly using vb. (the best method)

    if really dun have such code, then just considered using other file formats or programs.

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [VB Code Needed] PDF files

    they don't let you easily read their files.

  13. #13

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    that's why asking vb code experts to see if there's really a code to read it (or read it as an image in the vb interface)

  14. #14
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [VB Code Needed] PDF files

    if you buy the sdk, then you can use vb to read the format, but you need their .dll files. M$ licensed it for their plug-in, so i'd use that so you don't have to pay.

  15. #15
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    i am sorry but i thought you would prefer some options to a simple no

    VB has nothing built in to read or display pdf files, to do so you would haveto open the file as a binary file then translate it back into text, not something to be undertaken lightly, i had a look at a pdf in my hex editor.

    many of the other programs that do translate pdf files use the ghostscript

    many vb programs shell to other programs to do things that can't be done within VB

    sorry this is not what you were looking for

    pete

  16. #16

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    i appreciate your help, westconn1, and dglienna too.

    i will try to read through some books next week, as it's impossible for me to buy a license.
    but if there's really dun have a 'direct' code to read pdf files, then i may have to count on both of you lolz......

    thanks a bunch.

    best regards,
    edwin

  17. #17

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: [VB Code Needed] PDF files

    westconn1, or anyone, may i know how the code to convert pdf files using ghostsript and then read it??

    thanks.

  18. #18
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [VB Code Needed] PDF files

    download cutepdf i think it lets you save output as html

  19. #19
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [VB Code Needed] PDF files

    AFAIK cutepdf only lets you write a file to pdf
    as it's impossible for me to buy a license.
    does that mean you can use outside program if you don't have to buy??

    Amber ABC is a free download (30 day trial) that will convert .pdf to vaious other formats that vb could read. It worked quite well before my 30 days expired

    if i knew of any fully free converters i would have got already. there are several free utilities at planet pdf, but i haven't checked them all out

    pete

  20. #20
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: [VB Code Needed] PDF files

    I thought I read something about html. Maybe not. What about GhostScript?
    Doesn't that do conversion?

  21. #21
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: [VB Code Needed] PDF files

    i found some source code to read and write in pdf format via vb in sourceforge. it was some time ago and am not sure exactly which place to look for in sourceforge but do a search in pdf in sourceforge.net.

  22. #22
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    Re: [VB Code Needed] PDF files

    oh yeah. its still there and its called pdfcreator. its in vb, dont worry about it, with full source code, and its one heck of a big program. and of course, the link

    http://sourceforge.net/projects/pdfcreator/

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