Solved

PDF creation using ColdFusion and CSS

Posted on 2006-11-01
5
239 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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 connect a WordPress website to Google Analytics. 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 :…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now