I found a writeup of the 50% Y dimension problem at 
http://forums.oracle.com/forums/thread.jspa?threadID=1269908 
<http://forums.oracle.com/forums/thread.jspa?threadID=1269908&tstart=90> 
&tstart=90.   It seems some fax machines use a 2:1 pixel ratio and image 
viewing programs such as Irfanview and Photoshop will automatically “correct” 
the aspect ratio, whereas others such as MS Paint do not.  When I pull up the 
fax machine image in Paint, it appears squashed like my itext converted PDF.

 

The image is not correct in the sense that it does not reflect what has been 
faxed, the likely culprit is my fax software that creates the TIFF.  So my 
solution is to add some code to my fax conversion process that will examine the 
dimensions of the TIFF and apply aspect ratio correction (essentially a square 
pixel), then set the scaling accordingly. 

 

Steve

 

From: Paulo Soares [mailto:[email protected]] 
Sent: Tuesday, March 22, 2011 11:03 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] getDpiY returning 50% of Actual for TIFF (images 
& pdfs attached)

 

The dpi is correct, there's nothing wrong with the image or iText. When showing 
the image you must scale it differently for the width and the height.

 

Paulo

 


  _____  


From: Steve Roberts [mailto:[email protected]] 
Sent: Tuesday, March 22, 2011 2:35 PM
To: [email protected]
Subject: [iText-questions] getDpiY returning 50% of Actual for TIFF (images & 
pdfs attached)

Hi all,

 

When I send a fax from my fax machine -> fax server / tiff -> itext, getDpiY is 
returning 50% of the actual Y value.

Sending the same page from my fax modem -> fax server / tiff -> itext, getDpiY 
returns the correct 100% Y value.

Viewing both images in Irfanview shows correct X & Y values, both use Group 3 
Fax Encoding, both are 1 page and the sizes are comparable, 3.78MPixels vs. 
3.9MPixels.

 

Any ideas on why getDpiY is cut in half for the fax machine image?   Have there 
been updates to the image size determination in the last couple releases that 
would address the issue?

 

Thanks,

Steve Roberts

 

 

  _____  

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to