Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: PDF to Faxable TIFF
Started by jworksinc at 12-20-2007 13:03. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  12-20-2007, 13:03
jworksinc is not online. Last active: 12/19/2007 5:58:25 PM jworksinc

Not Ranked
Joined on 12-19-2007
Posts 3
PDF to Faxable TIFF
Reply Quote
How can the following be created from a PDF in LeadTools Raster Image .NET?


CCITT G3
WIDTH = 1728
LENGTH = 1078
X Resolution = 204
Y Resolution = 98


CCITT G3
WIDTH = 1728
LENGTH = 2156
X Resolution = 204
Y Resolution = 196


The result that I am getting with the code below is:


CCITT G3
WIDTH = 612
LENGTH = 792
X Resolution = 72
Y Resolution = 72


My code:
IRasterImage tempimage = Codec.Load("c:\\in.tif");
Codec.Save(tempimage, "c:\\out.tif" RasterImageFormat.TifCcittGroup31Dim, 1, 1, 1, 1, Leadtools.Codecs.CodecsSavePageMode.Overwrite);



   Report 
  12-20-2007, 14:19
BoydP is not online. Last active: 1/18/2008 7:04:31 PM BoydP



Top 25 Posts
Joined on 08-22-2007
Posts 230
Re: PDF to Faxable TIFF
Reply Quote
Can you please be more specific with what you are trying to do?  What do you mean can the following be created with a PDF because in your example you are loading a tif file.  To resize and image you need to use the ResizeCommand and to change the X and Y Resolution of an image you would simply do tempimage.XResolution = 204 and tempimage.YResolution = 196.  To change the load resolution of a PDF file you would do this before calling codecs.Load:

codecs.Options.Pdf.Load.XResolution = 204;
codecs.Options.Pdf.Load.YResolution = 196;

If this doesn't help you any further please let me know exactly what you are trying to do.


Boyd Perkins
LEADTOOLS Technical Support
   Report 
  12-20-2007, 15:16
jworksinc is not online. Last active: 12/19/2007 5:58:25 PM jworksinc

Not Ranked
Joined on 12-19-2007
Posts 3
Re: PDF to Faxable TIFF
Reply Quote
That was my mistake. Revised code:

IRasterImage tempimage = Codec.Load("c:\\in.pdf");
tempimage.XResolution = 204;
tempimage.YResolution = 196;
Codec.Save(tempimage, "c:\\out.tif" RasterImageFormat.TifCcittGroup31Dim, 1, 1, 1, 1, Leadtools.Codecs.CodecsSavePageMode.Overwrite);

This results in:

CCITT G3
WIDTH = 612
LENGTH = 792
X Resolution = 204
Y Resolution = 196

How do I get the WIDTH and LENGTH to be 1728, 2156 respectively?

   Report 
  12-20-2007, 16:25
BoydP is not online. Last active: 1/18/2008 7:04:31 PM BoydP



Top 25 Posts
Joined on 08-22-2007
Posts 230
Re: PDF to Faxable TIFF
Reply Quote
I told you in my previous post, you will need to use the ResizeCommand.  Please refer to the documentation for some sample code.


Boyd Perkins
LEADTOOLS Technical Support
   Report 
  12-21-2007, 13:18
jworksinc is not online. Last active: 12/19/2007 5:58:25 PM jworksinc

Not Ranked
Joined on 12-19-2007
Posts 3
Re: PDF to Faxable TIFF
Reply Quote
I have made the necessary changes to get this to work. Now the issue seems to be the quality of the resulting tiff image. We have similar software to your ePrint product that produces a much cleaner tiff image from a pdf file for faxing at low-res than does this process.

Can you suggest some possible solutions to improve the quaility?
   Report 
  12-21-2007, 16:11
BoydP is not online. Last active: 1/18/2008 7:04:31 PM BoydP



Top 25 Posts
Joined on 08-22-2007
Posts 230
Re: PDF to Faxable TIFF
Reply Quote
Please provide me with the code you are using for the ResizeCommand. Whenever you post a problem please be sure to include the code you are using because usually it can be a simple fix.

Boyd Perkins
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » General » Feature Request... » Re: PDF to Faxable TIFF

Powered by Community Server, by Telligent Systems