On Wed, Dec 14, 2011 at 3:59 PM, Hugh McLaughlin wrote:
> Thanks for the response and offer. I have attached the code in a text file.
> I'm not sure if it is a Java to C# to Vb.Net problem or a possible difference
> between the iText and the iTextSharp port. Since I'm pretty new to the whole
le bit with the differences.
Thanks again.
-Original Message-
From: Keith O [mailto:kuujinbo.mail.l...@googlemail.com]
Sent: Wednesday, December 14, 2011 10:01 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Antwort: Re: Converting Fax Tiff to PDF
On Wed, De
: Post all your questions about iText here
> Subject: Re: [iText-questions] Antwort: Re: Converting Fax Tiff to PDF
>
> On Wed, Dec 14, 2011 at 2:57 AM, Hugh McLaughlin wrote:
>> Thanks for the response. I tried changing over to Vb.Net which is
>> what I am using in this p
t: Re: [iText-questions] Antwort: Re: Converting Fax Tiff to PDF
On Wed, Dec 14, 2011 at 2:57 AM, Hugh McLaughlin wrote:
> Thanks for the response. I tried changing over to Vb.Net which is
> what I am using in this project. However it is still not scaling
> correctly. Attached is th
On Wed, Dec 14, 2011 at 2:57 AM, Hugh McLaughlin wrote:
> Thanks for the response. I tried changing over to Vb.Net which is what I am
> using in this project. However it is still not scaling correctly. Attached
> is the tiff and the resulting pdf.
Benjamin's code works for me (iTextSharp 5.1.3)
Hi Hugh,
this is a working solution for Java. You just have to convert it to C#.
if (img != null) {
// scale if too big to fit on page
if (img.getScaledWidth() > PageSize.A4.getWidth() ||
img.getScaledHeight() > PageSize.A4.getHeight()) {
// if images have a dif