Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. doable in Java but doable in .Net?

doable in Java but doable in .Net?

Scheduled Pinned Locked Moved Visual Basic
csharpjavaquestion
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eramgarden
    wrote on last edited by
    #1

    I'm working on a "image processing" application... This is what I want to do... Take a TIF file, convert to PDF with 10 dpi and add couple of texts to the bottom of the image... This is doable in Java but I'm not familiar with Java and like to know if it can be done in .Net? if so, any ideas, sample websies would be great..

    C Z 2 Replies Last reply
    0
    • E eramgarden

      I'm working on a "image processing" application... This is what I want to do... Take a TIF file, convert to PDF with 10 dpi and add couple of texts to the bottom of the image... This is doable in Java but I'm not familiar with Java and like to know if it can be done in .Net? if so, any ideas, sample websies would be great..

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I'd bet a huge pile of money that you can't do that in Java out of the box any more than you can in .NET. How do you know it can be done if you don't use Java ? You can buy components to do what you want in .NET, and if your requirements aren't too complex, there's some free stuff on source forge. I am sure that is the case for Java also. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      E 1 Reply Last reply
      0
      • C Christian Graus

        I'd bet a huge pile of money that you can't do that in Java out of the box any more than you can in .NET. How do you know it can be done if you don't use Java ? You can buy components to do what you want in .NET, and if your requirements aren't too complex, there's some free stuff on source forge. I am sure that is the case for Java also. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        E Offline
        E Offline
        eramgarden
        wrote on last edited by
        #3

        ex-coworker did it in Java... but she was laid off and we cant use her code anymore... these are some of her code: Document document = new Document(PageSize.A4, 50, 50, 50, 50); ..... PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf"));

        C 1 Reply Last reply
        0
        • E eramgarden

          ex-coworker did it in Java... but she was laid off and we cant use her code anymore... these are some of her code: Document document = new Document(PageSize.A4, 50, 50, 50, 50); ..... PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf"));

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          eramgarden wrote: but she was laid off and we cant use her code anymore... Good thing you laid her off then. Smart move eramgarden wrote: PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf")); Yeah, what would you expect the code to look like if she's using a component that writes PDF's ? It took me three seconds to find a PDFWriter class for Java with Google ( I did it to double check that it's not core Java ). Are you sure your ex-coworker was fired ? I reckon she ran for her life. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          E 1 Reply Last reply
          0
          • C Christian Graus

            eramgarden wrote: but she was laid off and we cant use her code anymore... Good thing you laid her off then. Smart move eramgarden wrote: PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf")); Yeah, what would you expect the code to look like if she's using a component that writes PDF's ? It took me three seconds to find a PDFWriter class for Java with Google ( I did it to double check that it's not core Java ). Are you sure your ex-coworker was fired ? I reckon she ran for her life. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

            E Offline
            E Offline
            eramgarden
            wrote on last edited by
            #5

            I'm not a Java developer..just have her code to look over and see what she's done...If I knew there's a PDFWrite class, I wouldnt be asking..I looked at the folder she gave us and didnt see such class.. There's no shame in asking and getting help..is there? This helps a lot. Thanks.

            A D 2 Replies Last reply
            0
            • E eramgarden

              I'm not a Java developer..just have her code to look over and see what she's done...If I knew there's a PDFWrite class, I wouldnt be asking..I looked at the folder she gave us and didnt see such class.. There's no shame in asking and getting help..is there? This helps a lot. Thanks.

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              What an ass Christian...

              1 Reply Last reply
              0
              • E eramgarden

                I'm not a Java developer..just have her code to look over and see what she's done...If I knew there's a PDFWrite class, I wouldnt be asking..I looked at the folder she gave us and didnt see such class.. There's no shame in asking and getting help..is there? This helps a lot. Thanks.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                There is not class for the PDFWriter, but it is a component installed on that machine. It would work something like an ActiveX control (a .oCX file) registered on the system. The Java code is then instantiating the PDFWriter just like and other control and passing the parameters to it. RageInTheMachine9532

                K 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  There is not class for the PDFWriter, but it is a component installed on that machine. It would work something like an ActiveX control (a .oCX file) registered on the system. The Java code is then instantiating the PDFWriter just like and other control and passing the parameters to it. RageInTheMachine9532

                  K Offline
                  K Offline
                  KamWaf
                  wrote on last edited by
                  #8

                  I did more research about PDFWriter . Someone said it comes with ADOBE. I have ADOBE on my machine and there's a folder with 2 ocx files: C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX PDF.ocx and AcroIEHelper.ocx I reference PDF.ocx in my VB.Net code but I dont see any PDFWriter member for it from the dropdown box when I reference it... is this the right ocx??

                  D 1 Reply Last reply
                  0
                  • K KamWaf

                    I did more research about PDFWriter . Someone said it comes with ADOBE. I have ADOBE on my machine and there's a folder with 2 ocx files: C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX PDF.ocx and AcroIEHelper.ocx I reference PDF.ocx in my VB.Net code but I dont see any PDFWriter member for it from the dropdown box when I reference it... is this the right ocx??

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    The PDF.OCX you found is the Acrobat READER control that you can use to view a PDF document in your own apps. It will NOT write out a PDF! RageInTheMachine9532

                    K 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      The PDF.OCX you found is the Acrobat READER control that you can use to view a PDF document in your own apps. It will NOT write out a PDF! RageInTheMachine9532

                      K Offline
                      K Offline
                      KamWaf
                      wrote on last edited by
                      #10

                      Thanks for your help.

                      1 Reply Last reply
                      0
                      • E eramgarden

                        I'm working on a "image processing" application... This is what I want to do... Take a TIF file, convert to PDF with 10 dpi and add couple of texts to the bottom of the image... This is doable in Java but I'm not familiar with Java and like to know if it can be done in .Net? if so, any ideas, sample websies would be great..

                        Z Offline
                        Z Offline
                        Zlosk
                        wrote on last edited by
                        #11

                        I've played with a little bit of PDF stuff, though not a lot. I used PDF-Lib from www.pdflib.com. You can use the library for free, but it will display a banner across the created page. To not know is bad. To not wish to know is worse.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups