?
Solved

PDF creation using ColdFusion and CSS

Posted on 2006-11-01
5
Medium Priority
?
251 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
[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
  • 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

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

Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
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 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…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
Suggested Courses

650 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