Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CFDocumentItem issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Confused  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 10:49 pm
From: Confused <kludgema...@gmail.com>
Date: Mon, 20 Aug 2012 19:49:18 -0700 (PDT)
Local: Mon, Aug 20 2012 10:49 pm
Subject: CFDocumentItem issues

Moving a site onto OBD. W08 Server, 64-bit.

Can't get cfdocumentitem type=header/footer to do much. (I'm making .pdf's,
btw)

It prints the text, but that's about it. ... no images... no spacing... no
fonts, colors or other styling whatsoever.
It seems to ignore table tags, divs, and paragraph tags... doesn't want to
display an image whether in image tags or styled as backgrounds ... tried
using style tags and inline styles...
Nothing seems to work.  I just get a single, left-aligned, unstyled line of
whatever text I had in the tables, paragraph tags, etc.

Any voices of experience on this?
Any ideas?

Much Tx,
c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Farrell  
View profile  
 More options Aug 20 2012, 11:40 pm
From: Peter Farrell <pe...@mach-ii.com>
Date: Mon, 20 Aug 2012 22:40:23 -0500
Local: Mon, Aug 20 2012 11:40 pm
Subject: Re: [OpenBD] CFDocumentItem issues

At this moment, text is the only thing allowed in header / footer. Its
really a limitation of the FlyingSaucer library that is used. I haven't
found a work around yet.
On Aug 20, 2012 9:49 PM, "Confused" <kludgema...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Confused  
View profile  
 More options Aug 21 2012, 1:17 am
From: Confused <kludgema...@gmail.com>
Date: Mon, 20 Aug 2012 22:17:33 -0700 (PDT)
Local: Tues, Aug 21 2012 1:17 am
Subject: Re: [OpenBD] CFDocumentItem issues

ouch.
That's a significant issue for me. Got about 20 reports I'm gonna have to
redesign.

In the past, we haven't been able to use cfdocument.currentpagenumber &
totalpagecount for comparisons. (and if I remember correctly, can't use 'em
outside of header/footer). If I could get access to those, I could likely
craft my own headers/footers.

Alternately, could I drop in an iText library and fix anything? .. (even if
I have to pay for it)
That probably breaks with the open source philosophy, but my customers are
less concerned with that than with good-looking quotes.

ideas?

tx,
c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Farrell  
View profile  
 More options Aug 21 2012, 1:26 am
From: Peter Farrell <pe...@mach-ii.com>
Date: Tue, 21 Aug 2012 00:26:33 -0500
Local: Tues, Aug 21 2012 1:26 am
Subject: Re: [OpenBD] CFDocumentItem issues

You definitely have access to current page and total pages...have you tried?

You might be able to do headers and footers using css3 which the Flying
Saucer library uses.

@alan, do you know why the cfdocumentitem doesn't allow styling?
On Aug 21, 2012 12:17 AM, "Confused" <kludgema...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Confused  
View profile  
 More options Aug 21 2012, 1:46 am
From: Confused <kludgema...@gmail.com>
Date: Mon, 20 Aug 2012 22:46:07 -0700 (PDT)
Local: Tues, Aug 21 2012 1:46 am
Subject: Re: [OpenBD] CFDocumentItem issues

Maybe I'm doing it wrong....

This code (not in a cfdocumentsection):

<cfoutput>
<p>
<cfif cfdocument.currentpagenumber is 1>
    page 1 of #cfdocument.totalpagecount#
<cfelse>
    page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
</cfif>
</p>
</cfoutput>

produces this output (it's near the top of the page and has other output
below it, so it is definately on page 1):

page BD:CURRENTPAGENUMBER of BD:TOTALPAGECOUNT

I think we have an issue with not being able to determine total pages until
all of them have been rendered in some way.  ??

tx,
c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Aug 21 2012, 2:27 am
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Tue, 21 Aug 2012 01:27:54 -0500
Local: Tues, Aug 21 2012 2:27 am
Subject: Re: [OpenBD] CFDocumentItem issues

There is definitely some work to be done.  This works, but no access to
any cfdocument variables:

<cfdocument format="pdf"
     orientation="landscape"
     src="http://#cgi.SERVER_NAME#"
filename="#ExpandPath("/spectrum-public/docs/DuroDesignShowrooms.pdf")#"
     overwrite="true">
<style>
@page {
  @bottom-center { content: element(footer); }

}

div.content {page-break-after: always;}

##footer { position: running(footer); font-size:2em; }

</style>

<div id="footer">
Footer information
</div>
<div class="content">
     #event.getArg("layout.showrooms_usa")#
</div>
</cfdocument>

@Alan, is there a way we can parse the body for placeholders so we can
use flying saucer notation with CSS3 and still have cfdocument.* access
or something like it?

Confused said the following on 08/21/2012 12:46 AM:

--
Peter J. Farrell
OpenBD Steering Committee / Mach-II Lead Developer
http://blog.maestropublishing.com
Identi.ca / Twitter: @maestrofjp

Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Confused  
View profile  
 More options Aug 21 2012, 4:16 am
From: Confused <kludgema...@gmail.com>
Date: Tue, 21 Aug 2012 01:16:22 -0700 (PDT)
Local: Tues, Aug 21 2012 4:16 am
Subject: Re: [OpenBD] CFDocumentItem issues

Not what I was hoping to hear, but thanks.

I'll play with that, but it may be a few days.

If it could all be solved with css3, I wouldn't mind a bit. Gotta learn it
eventually... and CFDocumentSection has never been a real gem, anyway.

But "Page X of Y" is hard to do without.

Pls let me know of any tips you hear of, and I'll get back with the results
of my tinkering.

tx,
c


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »