Convert TIFF to PDF - java api ?

B

Brandon McCombs

Craig said:
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.
 
A

Andrew Thompson

Craig said:
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.
 
S

Steven J. Sobol

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.
 
A

Andrew Thompson

Steven said:
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*....
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.
 
S

Steven J. Sobol

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?
 
A

Andrew Thompson

Steven said:
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.
 
S

Steven J. Sobol

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?
 
A

Andrew Thompson

Steven said:
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.
 
Joined
Mar 2, 2011
Messages
1
Reaction score
0
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).
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top