Convert TIFF to PDF - java api ?

Discussion in 'Java' started by Craig, Jan 11, 2007.

  1. Craig

    Craig Guest

    Does anyone know of any java classes to convert TIFF files to PDF
    format ?
     
    Craig, Jan 11, 2007
    #1
    1. Advertising

  2. Craig wrote:
    > Does anyone know of any java classes to convert TIFF files to PDF
    > format ?
    >


    Do you want free or non-free? Open source or closed?

    There are plenty that cost money and are closed source.
     
    Brandon McCombs, Jan 12, 2007
    #2
    1. Advertising

  3. Craig wrote:
    > Does anyone know of any java classes to convert TIFF files to PDF
    > format ?


    What do you see as being the advantage of that?

    For example - here is a way to 'convert' PNG to HTML.

    <HTML>
    <BODY>
    <IMG SRC='theImage.png'>
    </BODY>

    You might note that this simply uses the target format (HTML)
    to load and display the PNG. The HTML document adds
    nothing to the image, no 'extra value', and the user cannot
    'drag-select sections of text in the images' or do a 'find' etc.

    (I doubt the TIFF to PDF conversion could go any
    better, without OCR)

    Andrew T.
     
    Andrew Thompson, Jan 12, 2007
    #3
  4. In article <>, Andrew Thompson wrote:

    > What do you see as being the advantage of that?


    PDF is a much more common format, in terms of end-users that can
    actually view files in the format in question.

    > (I doubt the TIFF to PDF conversion could go any
    > better, without OCR)


    Well, you could just wrap a TIFF inside the PDF so people without the
    ability to view TIFF files would be more likely to be able to open it.


    --
    Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
    Victorville, California PGP:0xE3AE35ED

    It's all fun and games until someone starts a bonfire in the living room.
     
    Steven J. Sobol, Jan 12, 2007
    #4
  5. Steven J. Sobol wrote:
    > In article <>, Andrew Thompson wrote:
    >
    > > What do you see as being the advantage of that?

    >
    > PDF is a much more common format, in terms of end-users that can
    > actually view files in the format in question.


    Rot! Most end-users are using a late model Windows*....

    > > (I doubt the TIFF to PDF conversion could go any
    > > better, without OCR)

    >
    > Well, you could just wrap a TIFF inside the PDF so people without the
    > ability to view TIFF files would be more likely to be able to open it.


    I don't see how you figure that.

    * This Windows box has the 'Windows Picture and
    Fax Viewer' and IE that can *both* read TIF's (& probably
    a dozen other apps. on this sytem can handle them),
    but *no* PDF support.

    I'll bet 5 to 1 that the computers at my local internet cafe,
    and 2 to 1 that (most of) the computers at the local library,
    do not have PDF readers. (You might think a library would
    have PDF readers, but Google offers HTML formatted versions
    of most PDF's on the net, so why bother?)

    Besides adding 20%+ (shrugs) to the file size, wrapping
    a TIF in a PDF does *nothing* for it.

    Andrew T.
     
    Andrew Thompson, Jan 12, 2007
    #5
  6. In article <>, Andrew Thompson wrote:

    > I don't see how you figure that.


    You can do it; I've done stuff like that before. You end up with a PDF
    containing a graphic. It'll be big, but it'll be viewable.

    > * This Windows box has the 'Windows Picture and
    > Fax Viewer' and IE that can *both* read TIF's (& probably
    > a dozen other apps. on this sytem can handle them),
    > but *no* PDF support.


    IE does TIFF? since when?




    --
    Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
    Victorville, California PGP:0xE3AE35ED

    It's all fun and games until someone starts a bonfire in the living room.
     
    Steven J. Sobol, Jan 12, 2007
    #6
  7. Steven J. Sobol wrote:
    > In article <>, Andrew Thompson wrote:

    .....
    > > * This Windows box has the 'Windows Picture and
    > > Fax Viewer' and IE that can *both* read TIF's (& probably
    > > a dozen other apps. on this sytem can handle them),
    > > but *no* PDF support.

    >
    > IE does TIFF? since when?


    (shrugs vaguley) Since ten minutes ago, when I
    drag/dropped one in IE (checks) 6.0.26 and saw
    it rendered before my very eyes.

    Hey, I never claimed IE tried to *create* a *file*
    *association* for TIF's, but it can sure open them
    (the first 'page' anyway). Do you have a smallish
    multi-page TIF (or can find an URL) I can try?

    Andrew T.
     
    Andrew Thompson, Jan 12, 2007
    #7
  8. In article <>, Andrew Thompson wrote:

    > Hey, I never claimed IE tried to *create* a *file*
    > *association* for TIF's, but it can sure open them
    > (the first 'page' anyway). Do you have a smallish
    > multi-page TIF (or can find an URL) I can try?


    Probably. I'll try one over the weekend, actually - now I'm curious.
    Did it open it in an embedded IE window or in Windows Picture Viewer?



    --
    Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
    Victorville, California PGP:0xE3AE35ED

    It's all fun and games until someone starts a bonfire in the living room.
     
    Steven J. Sobol, Jan 12, 2007
    #8
  9. Steven J. Sobol wrote:
    > In article <>, Andrew Thompson wrote:
    >
    > > Hey, I never claimed IE tried to *create* a *file*
    > > *association* for TIF's, but it can sure open them
    > > (the first 'page' anyway). Do you have a smallish
    > > multi-page TIF (or can find an URL) I can try?

    >
    > Probably. I'll try one over the weekend, actually - now I'm curious.
    > Did it open it in an embedded IE window or in Windows Picture Viewer?


    I am not sure I understand what you are asking.

    When I dropped it in IE, it seemed to be 'all IE',
    with the image appearing as if I had fetched an
    URL for a 'raw' JPG or GIF (the image was scaled
    to fit the size of the IE window, and centered) -
    there was no hint of 'Windows Picture Viewer'-like
    controls.

    OTOH, when I double click TIF's, they open in
    WPV - with the associated 'Zoom/Rotate/Print..'
    buttons.

    Andrew T.
     
    Andrew Thompson, Jan 12, 2007
    #9
  10. Craig

    SunnySue

    Joined:
    Mar 2, 2011
    Messages:
    1
    To respond to Craig’s original question: There is a commercial java library called jPDFImages that can do exactly that: Convert from Tiff files to PDF documents. For multi-page tiff files, the PDF documents created are also multipage. The library can read from an image file or from an inputstream (when serving a document from a J2EE server for instance).
     
    SunnySue, Mar 2, 2011
    #10
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ather Ali Shaikh
    Replies:
    1
    Views:
    2,862
    ASP.Confused
    Jul 23, 2004
  2. Stuart Leonard

    TIFF files and Java Advanced Imaging API

    Stuart Leonard, Jan 5, 2005, in forum: Java
    Replies:
    1
    Views:
    1,963
  3. Replies:
    8
    Views:
    23,235
    Qoppa_Susan
    Jan 6, 2011
  4. ifiaz
    Replies:
    1
    Views:
    974
    Martien Verbruggen
    Nov 19, 2003
Loading...

Share This Page