Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7431785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:20:59+00:00 2026-05-29T09:20:59+00:00

Server Config: Windows Server 2003 IIS 6 ColdFusion 8 Standard Edition Java Version 6

  • 0

Server Config:

  • Windows Server 2003
  • IIS 6
  • ColdFusion 8 Standard Edition
  • Java Version 6 Update 18

I have a ColdFusion application that allows users to upload images that will be added to an existing PDF. When the images are added to the PDF, they have to fit within a minimum/maximum height and width, so the uploaded image needs to be scaled to fit.

For instance, let’s say the minimum height and width for a given image is 100×100, and the maximum height and width is 200×200, and the user uploads an image that is 500×1000. I use the logic below to scale that image down without skewing the image (it keeps its original shape) to 100×200. For an image smaller than the minimum, it is scaled up (in the example above, a 50×50 image would be scaled up to 100×100).

The problem I’m noticing is that when ColdFusion scales the image using its built-in functions, it reduces the resolution to 72dpi. Is there a way to prevent this loss of resolution, as the images are being added to PDFs which need to be print-quality?

Here’s the [scaled-down] code I’m using to scale the images:

<cfscript>
    imagePath = "/uploads/image.tif";
    scaledWidth = 100;
    scaledHeight = 100;
    scaledImage = ImageNew(imagePath);
    ImageSetAntialiasing(scaledImage, "on");
    ImageScaleToFit(scaledImage, scaledWidth, scaledHeight);
</cfscript>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:21:00+00:00Added an answer on May 29, 2026 at 9:21 am

    I think you may want to skip scaling the image at all and add the original image to the pdf document. Then have whatever pdf creation tool you are using “resize” and position the image on the document canvas. Similar to setting width and height on images in html to something other than its native resolution. I have not had to add images to PDFs docs like you described but this post might point you in the right direction:

    Adding a dynamic image to a PDF using ColdFusion and iText

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Context: IIS 6 on Windows 2003 Server ASP.NET 3.5 sp1 C# Web Application running
I'm using NLog in my ASP.NET application hosted on IIS and Windows server 2003.
I have two websites on IIS 6 that throw server errors when they are
We are running MySQL on a Windows 2003 Server Enterpise Edition box. MySQL is
I have a WSE 3.0 based web service running in Windows Server 2003 under
We have an application that was built for the Windows Mobile and Windows platforms,
I have a Windows 2008 server running IIS 7 and I'm trying to configure
I have a the following server side app.config for a WCF service: <system.serviceModel> <bindings>
I have a web.config of a functioning MOSS server with our custom settings and
I have the following config in my lighttpd.conf: $HTTP[host] == trac.domain.tld { server.document-root =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.