Solved

Using ColdFusion to generating print quality PDF

Posted on 2011-02-11
8
1,349 Views
Last Modified: 2012-05-11
I'm working on a page where I need to generate a business card from the members website, but I would like to generate the files automatically. Does ColdFusion let you generate a 300dpi pdf file?

What is the best way to do this? Should I make a webpage with the template I want and export the results as a pdf?

I do have the template in Photoshop that I need to use, so I was thinking on makeing a webpage with the template with 1039 x 697 pixels (300 dpi) and export the results on a PDF file.

would that work?

Thanks,
0
Comment
Question by:Medrise
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 14

Accepted Solution

by:
RickEpnet earned 100 total points
ID: 34872537
Use the Coldfusion report writer. It is free and gives you many options
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 34872554
http://www.adobe.com/support/coldfusion/downloads.html

Search on the page for Report it is about 1/3 of the way down.
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 34872739

cfdocument   should do it for you.  

0
More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

 
LVL 39

Assisted Solution

by:gdemaria
gdemaria earned 100 total points
ID: 34872830


Actually, there seems to be mixed comments out there as to whether or not the image retains it's size and resolution, CF will scale it, but does it change it's resolution?  
0
 
LVL 11

Assisted Solution

by:Brijesh Chauhan
Brijesh Chauhan earned 100 total points
ID: 34872892
use CFDOCUMENT TAG

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c21.html

<cfdocument format="PDF"> 
    <table> 
        <tr> 
            <td>bird</td> 
            <td><image src="images/bird.jpg"></td> 
        </tr> 
        <tr> 
            <td>fruit</td> 
            <td><image src="images/fruit.jpg"></td> 
        </tr> 
        <tr> 
            <td>rose</td> 
            <td><image src="images/rose.jpg"></td> 
        </tr> 
    </table> 

Open in new window

</cfdocument>
0
 
LVL 11

Expert Comment

by:Brijesh Chauhan
ID: 34872936
Use the SCALE attribute in CFDOCUMENT

scale
      
Optional
      
Calculated by ColdFusion
      

scale factor as a percentage. Use this option to reduce the size of the HTML output so that it fits on that paper. Specify a number less than 100.
0
 
LVL 3

Assisted Solution

by:dagaz_de
dagaz_de earned 200 total points
ID: 34886234
I do it like this. i use cfdocument also.
I make the images that i have to include 4 times bigger as used in the document and in the image tag i just use the height or width with a value of 25% (But us just one of them!). Because Text is Vektor you dont have to Care about the quality- Its always perfect. Play a little with it and zoom in the Acrobat Reader. When the images looks good at 300% its also goo for a print job.
0
 
LVL 3

Assisted Solution

by:dagaz_de
dagaz_de earned 200 total points
ID: 34886652
you can also use absolute px to to this: make your image with 699x1038px for example, divide the value through 3 and you get 233x346 now you make an image like this

 <img src="your_image.jpg" height="233" width="346">

The trick is that the screen resolution is 72dpi x 3 = 216dpi - Its OK for the most Print jobs if you have layers with real Text over your Background image.

If you need more for your Print job because you write your text in Photoshop, you can take a bigger resolution and a higher division than 3.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Inserting page numbers in Portable Document Files not only enhances manageability but also makes them look professional. With numbered pages, the file appears more organized and it becomes easier to search for a particular page. The size and the vol…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question