Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Started by ozitraveller at 12-09-2006 19:27. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  12-09-2006, 19:27
ozitraveller is not online. Last active: 12/11/2006 3:19:18 AM ozitraveller

Not Ranked
Joined on 12-10-2006
Posts 4
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote

Hi

The company I work for are developing a solution for a third party company, and I am looking for the best approach to achive this.

This part of the solution is a .Net Windows Service in C# 2005.

The initial requirement is to be able to convert multi-page pdf's to single-page tifs (bitonal, G4). Also the filenames of the single-page tifs must formatable in code. The remaining file formats will be required in the next stage of development.

I am evaluating "LEADTOOLS EVAL 15".

I haven't seen any examples of PDF to Tif conversion, could you please provide some same code to do this.

Also I am wonder what is the best way to handle this 'Anyfileformat' file conversion to tif in a flexible way, either using image rastering or using some sort of printer driver?

Any help would be greatly appreciated.

Thanks


   Report 
  12-11-2006, 12:07
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,361
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote

If the input format is PDF or any of the input formats supported by the toolkit, you can use our toolkit with very simple code. For information about the supported file formats, please refer to the "Summary of All Supported Image File Formats" topic in our LEADTOOLS .NET help file or the following link:

http://www.leadtools.com/SDK/Raster/Raster-Formats.htm 

You can create a simple application that loads a multi-page PDF file and save it into single-page TIFF images as follows:

1. Use the Load(String) Method to load the PDF file.
2. Create a loop and save the single-page TIFF images using the Save(RasterImage,String,RasterImageFormat,Int32,Int32,Int32,Int32,CodecsSavePageMode) Method inside the loop, depending on the number of the PDF file pages.

If there are other file formats not mentioned in the list, please tell me what they are and I will try to suggest an alternative solution.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  12-12-2006, 16:46
ozitraveller is not online. Last active: 12/11/2006 3:19:18 AM ozitraveller

Not Ranked
Joined on 12-10-2006
Posts 4
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote
 Adnan Ismail wrote:

If the input format is PDF or any of the input formats supported by the toolkit, you can use our toolkit with very simple code. For information about the supported file formats, please refer to the "Summary of All Supported Image File Formats" topic in our LEADTOOLS .NET help file or the following link:

http://www.leadtools.com/SDK/Raster/Raster-Formats.htm 

You can create a simple application that loads a multi-page PDF file and save it into single-page TIFF images as follows:

1. Use the Load(String) Method to load the PDF file.
2. Create a loop and save the single-page TIFF images using the Save(RasterImage,String,RasterImageFormat,Int32,Int32,Int32,Int32,CodecsSavePageMode) Method inside the loop, depending on the number of the PDF file pages.

If there are other file formats not mentioned in the list, please tell me what they are and I will try to suggest an alternative solution.

Thanks Adnan.

I also need to convert multi-page tifs to single page tifs. There could be more formats, however I am waiting for the client to decide what they want.

Will I also need the PDF-plugin?

Would it be possible to get a code example? Or am I in the wrong section of the forum?

Regards

 

 

 


   Report 
  12-13-2006, 11:00
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,361
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote

To save multi-page TIFF file into separate TIFF files, you can use the same steps mentioned above. It also work with different file formats depending on the value of the RasterImageFormat parameter in the save method.
If you are going to load OR save PDF files, you need to have the PDF plug-in installed.
But if you only load and save non-PDF formats, such as TIFF, you do not need the plug-in.

About the code sample check the code sample in the following forum post:
http://support.leadtools.com/SupportPortal/cs/forums/6819/ShowPost.aspx

Of course you could modify it to save all images in a loop.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  12-14-2006, 0:43
ozitraveller is not online. Last active: 12/11/2006 3:19:18 AM ozitraveller

Not Ranked
Joined on 12-10-2006
Posts 4
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote
Thanks Adnan
   Report 
  12-17-2006, 23:57
ozitraveller is not online. Last active: 12/11/2006 3:19:18 AM ozitraveller

Not Ranked
Joined on 12-10-2006
Posts 4
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote

Hi Adnan

I finally recieved the list of file types that my client wants to be able to convert into single-page tif's (bitonal). And they are : word, excel, multi-page tiff, gif, jpeg, pdf, bmp

They need to be usable under .Net 2.0.

I can find most of these formats listed on LEADTOOLS Raster Imaging Pro SDK v.15, except for Word and Excel, maybe I missed them? Does Lead tools offer these document types as convertable to tiff, either directly or indirectly?

I only neeed to be able to read Pdf's.

 


   Report 
  12-20-2006, 1:58
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,361
Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif
Reply Quote

For Word document and Excel sheets files, currently they are not supported in LEADTOOLS.

About the PDF plug-in, since you need to read PDF files you need it. For information about it please refer to the following page:
http://www.leadtools.com/SDK/Raster/Raster-Addon-PDF.htm

Since you asked if the conversion could be done indirectly, the answer is yes. Our LEADTOOLS ePrint 5 conversion software installs a printer driver that can take print jobs from applications like MS Word and Excel and save the result in many different formats. If you have MS Office (or similar application), you can use ePrint to convert. You can also automate the process using Office Automation (COM interface), and you can even control ePrint programmatically using its programming interface.
For more information about ePrint please check the following pages:
For ePrint 5 Professional software:
http://www.eprintdriver.com/about-ePrint.htm
For ePrint API 5:
http://www.eprintdriver.com/eprint-OEM-Developer.html


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » File Formats » Re: Convert any file format (pdf, doc, xls, dwf, txt, ...) to tif

Powered by Community Server, by Telligent Systems