Solved

PDF creation using ColdFusion and CSS

Posted on 2006-11-01
5
243 Views
Last Modified: 2013-12-24
Does anyone know how to force a pdf that is dynamically created using ColdFusion 7 to print out in landscape view. I tried using the @page attribute landscape but seems IE 6 doesn't support it. Any ideas on good pdf priniting tips or tricks with css?
0
Comment
Question by:asaworker
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:gdemaria
ID: 17855725

 you can set the type to custom and then enter the height and width to match the size of the paper held horizontally
0
 

Author Comment

by:asaworker
ID: 17858097
I find information that IE 6 didn't support the @page attribute at all. Any other tips or tricks?
0
 
LVL 39

Accepted Solution

by:
gdemaria earned 250 total points
ID: 17858222

I work with IE 6 all the time, and most of my reports are landscape.  Here are the two commands I have used both are in production and I have never had a comment that they are not showing up correctly..


<cfdocument pagetype="letter"
            format="PDF
            unit="IN"
            marginbottom="0.5" margintop="0.8"
            filename="#variables.filename#"
            overwrite="yes"
            fontembed = "Yes"
            orientation="landscape"
            encryption = "none"
            scale="90"
             >




<cfdocument
            pagetype="custom"
            format="PDF"
            filename="#variables.filename#"
            orientation="landscape"
            pagewidth="8.5"
            pageheight="11.0"
            unit="IN"
           marginbottom="0.5"
           margintop="0.8"
            encryption = "40-bit"
            permissions = "AllowPrinting"
            overwrite="yes"
            fontembed = "Yes"
            >

0
 
LVL 39

Expert Comment

by:gdemaria
ID: 17858229

 what is the "@page" attribute?   Are you not using cfdocument to do your pdf ?

 Perhaps post your code..
0
 

Author Comment

by:asaworker
ID: 17859283
@page is for css 2/3 for printing
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…

860 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