[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PDF creation using ColdFusion and CSS

Posted on 2006-11-01
5
Medium Priority
?
252 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 1000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 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