|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cfdocument and page orientation
I need to produce a .pdf document from coldfusion which changes the page orientation a number ofmike hanson 07/05/05 09:00 A I've been playing with CFdocument lately. What sort problems have you beenMatthew Blatchley 07/05/05 09:42 A Thanks for that. What I need to do is a number of pages in one orientation, change to the other andmike hanson 07/05/05 10:46 A I've been playing with cfdocument as well, trying to get around itsPete Ruckelshaus 07/05/05 10:01 A
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?
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? > >
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
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
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||