Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Converting TIFF to PDF on the Server for Web Display

Posted on 2002-05-30
Medium Priority
Last Modified: 2012-06-21
This question is primarily targeted to "mplungjan", regarding the question at "http://www.experts-exchange.com/questions/Q_20187920.html", but if anyone else has any opinions, they are welcome as well.

mplungjan -
You stated:
We have a process running on the server
that converts [a tiff file] to pdf by reading the file into memory, change the headers to pdf headers and returning the file to the browser without writing a temp file.

This is exactly what I need.  I want to create a simple component in VB or a process in ASP that converts numerous multipage tiff images into PDF for viewing.  You stated that it was only a matter of changing the header information.  I have the full version of Acrobat 4 installed and I have extensively reviewed their SDK, but I can't find what I need.  Basically, I need a simple way to specify an input TIFF file that sends a PDF file to the client.

You stated that "perhaps I can ask if you may have a copy of the program we use (I cannot guarantee that and
also no support on it whatsoever) if it works with your files."  Is this still an option?  I would really appreciate your help.
Question by:bmccleary
LVL 75

Expert Comment

by:Michel Plungjan
ID: 7045320

the old program was in c
the new program is java

Perhaps this site can help
seems they will give you the program if you link back to them...



Author Comment

ID: 7045661
Thanks for the references.  One question though... you had mentioned a simple way to change the header information on the tiff to make it a PDF.  Can this be done easily?  I would like to use a method that didn't require any third-party components (besides Acrobat), regardless of the price.  Do you know how to use the Acrobat SDK to do this.  I think it can be done with only Acrobat (with perhaps Distiller or PDFWriter or something), but I can't find it in the SDK.  It's easy to do from the program itself (simply select import and enter the name of the TIFF file), but obviously I would like to do it via a server side COM object.  Any thoughts?
LVL 75

Expert Comment

by:Michel Plungjan
ID: 7046319
I am sorry. I do not USE acrobat to change to pdf...

Also I have no experience with asp/com

The tiff header is a nasty piece of business in all hex...

What we do is to read the interesting bits like height and width and create a pdf header and footer.

I think for ease of use you should find a com object that does this. Must be out there. Ask at planet pdf (link is in the google search)

Please feel free to delete this question
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 7048926
try to use blackice pdf converter..


Author Comment

ID: 7048935
What is that and where would I find it?

Accepted Solution

PhantomRick earned 200 total points
ID: 7050567


This contains a code snippet that I found works well with VB6.  It uses the Acrobat API.  Play around with it to get better results.  I also found that mass converting alot of TIFs caused it to have sometimes have errors. Just try converting the file again if thats the happens.  I also found that it usually shrank the file size, usually significantly.  I was only converting multi-paged B&W's, but thousands of them.  The convertion took between 1-3 seconds each on a P3-500, 256Mbs RAM.

With my code, I modified the code to be a function that accepted the paths & filenames of the input & output files, with the function returning a boolean TRUE if it was successful.

I hope this helps.

Author Comment

ID: 7132683
Sorry, I forgot that I left this open.  Thanks to all for the information.  PhantomRick, I tried your solution and it worked great, but after numerous hours troubleshooting why the code would work great from inside VB, but crashed when run from a complied DLL, I have found that the Acrobat API won't allow itself to be compiled into a secondary DLL.  Therefore, I have decided to use PDFLib (www.pdflib.com) to complete the task.  It works great and is fairly inexpensive ($1000).  Thanks for all the info though!

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question