House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 02, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfdocument and page orientation

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 

07/05/2005 09:00 AM
Author:
mike hanson

I need to produce a .pdf document from coldfusion which changes the page orientation a number of times, depending on the pages being printed (i.e. some pages will be in landscape format, others in portrait). Has anyone managed to do this yet?

07/05/2005 09:42 AM
Author:
Matthew Blatchley

I've been playing with CFdocument lately.  What sort problems have you been experiencing?  It took a while to figure it out but I did get it working. <cfdocument format="pdf" pagetype="Custom" pageheight="#form.page_height#" pagewidth="#form.page_width#"> I used the pageheight and pagewidth to change the size of the document, and so far it seems to work ok.  Had some issues with the fonts and had to make sure the CF Administrator was pointing to the right directory and that the permission were correct.  Besides that, I haven't had any problems, yet. Matt ----- Original Message ----- From: "mike hanson" <mike.hanson@icaew.co.uk> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Tuesday, July 05, 2005 8:00 AM Subject: cfdocument and page orientation >I need to produce a .pdf document from coldfusion which changes the page >orientation a number of times, depending on the pages being printed (i.e. >some pages will be in landscape format, others in portrait). > > Has anyone managed to do this yet? > >

07/05/2005 10:46 AM
Author:
mike hanson

Thanks for that. What I need to do is a number of pages in one orientation, change to the other and then change back depending on the output. This would create a single document with some landscape pages and some portrait. Mike

07/05/2005 10:01 AM
Author:
Pete Ruckelshaus

I've been playing with cfdocument as well, trying to get around its shortcomings.  It's a great addition to CF, but I sure hope that the first positive sign (for CF developers, at least) we see from the Adobe buyout will be greatly improved PDF generation.  I know some have mentioned Section 508 compatibility, there's the image "blowup" issue, and I sure would like to have some control over things like page numbering. To address your quesiton, you'll probably want to familiarize yourself with cfdocumentsection, which will allow you to specify margins for sections of a cfdocument.  Assuming you'll be looping through a resultset, you'll need some way to pass your desired margin values into the cfdocumentsection tag. Pete


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists