Pdf function in cfscript

Hi all,

I’m in the process of migrating a rather large site from Adobe CF10 to
Lucee. All is going well apart from adding a header and footer to some PDFs.

I’m creating a bunch of individual PDFs then merging them together and
adding a header and footer to the whole document.

To add a header in ACF I’d using the cfpdf tag like so

Now it appears Lucee does not support the “text” attribute and there isn’t
any examples on the Lucee Tag Reference. So how do I add a header/footer to
a pdf document?

Kind regards,

Richard McKenna

Apologies for the misleading title. I was going to ask a different question
and then forgot to change the title.

RichardOn Thursday, 16 July 2015 11:19:50 UTC+1, Richard McKenna wrote:

Hi all,

I’m in the process of migrating a rather large site from Adobe CF10 to
Lucee. All is going well apart from adding a header and footer to some PDFs.

I’m creating a bunch of individual PDFs then merging them together and
adding a header and footer to the whole document.

To add a header in ACF I’d using the cfpdf tag like so

Now it appears Lucee does not support the “text” attribute and there isn’t
any examples on the Lucee Tag Reference. So how do I add a header/footer to
a pdf document?

Kind regards,

Richard McKenna

For header/footer, you can use the cfdocumentitem type=“footer|header”

In cfscript its something like:

document format=“PDF” pageType=“A4” marginBottom=“0.1” marginLeft=“1.5”
marginRight=“1.5” marginTop=“0.2” unit=“cm” filename=“test.pdf”
overwrite=true {
documentitem type=“header” {
include template=“pdfheader.cfm”;
}
documentitem type=“footer” {
include template=“pdffooter.cfm”;
}
include template=“pdfcontent.cfm”;
}

Railo/Lucee uses pd4ml as its pdf engine, you can use pd4ml:*** tags in
your html. More info: http://pd4ml.com/cookbook/On Thursday, July 16, 2015 at 12:19:50 PM UTC+2, Richard McKenna wrote:

Hi all,

I’m in the process of migrating a rather large site from Adobe CF10 to
Lucee. All is going well apart from adding a header and footer to some PDFs.

I’m creating a bunch of individual PDFs then merging them together and
adding a header and footer to the whole document.

To add a header in ACF I’d using the cfpdf tag like so

Now it appears Lucee does not support the “text” attribute and there isn’t
any examples on the Lucee Tag Reference. So how do I add a header/footer to
a pdf document?

Kind regards,

Richard McKenna

And: PD4ML v4 Programmers Manual - PD4ML Sunday, July 19, 2015 at 8:32:36 PM UTC+2, Jonathan van Zuijlekom wrote:

For header/footer, you can use the cfdocumentitem type=“footer|header”

In cfscript its something like:

document format=“PDF” pageType=“A4” marginBottom=“0.1” marginLeft=“1.5”
marginRight=“1.5” marginTop=“0.2” unit=“cm” filename=“test.pdf”
overwrite=true {
documentitem type=“header” {
include template=“pdfheader.cfm”;
}
documentitem type=“footer” {
include template=“pdffooter.cfm”;
}
include template=“pdfcontent.cfm”;
}

Railo/Lucee uses pd4ml as its pdf engine, you can use pd4ml:*** tags in
your html. More info: http://pd4ml.com/cookbook/

On Thursday, July 16, 2015 at 12:19:50 PM UTC+2, Richard McKenna wrote:

Hi all,

I’m in the process of migrating a rather large site from Adobe CF10 to
Lucee. All is going well apart from adding a header and footer to some PDFs.

I’m creating a bunch of individual PDFs then merging them together and
adding a header and footer to the whole document.

To add a header in ACF I’d using the cfpdf tag like so

Now it appears Lucee does not support the “text” attribute and there
isn’t any examples on the Lucee Tag Reference. So how do I add a
header/footer to a pdf document?

Kind regards,

Richard McKenna

Thanks Jonathan,

It doesn’t seem to allow adding a header/footer into an existing document.
I already have the pdfs I just need to add the dynamic header/footer at the
same time I merge them.

Kind regards,

RichardOn Sunday, 19 July 2015 19:32:36 UTC+1, Jonathan van Zuijlekom wrote:

For header/footer, you can use the cfdocumentitem type=“footer|header”

In cfscript its something like:

document format=“PDF” pageType=“A4” marginBottom=“0.1” marginLeft=“1.5”
marginRight=“1.5” marginTop=“0.2” unit=“cm” filename=“test.pdf”
overwrite=true {
documentitem type=“header” {
include template=“pdfheader.cfm”;
}
documentitem type=“footer” {
include template=“pdffooter.cfm”;
}
include template=“pdfcontent.cfm”;
}

Railo/Lucee uses pd4ml as its pdf engine, you can use pd4ml:*** tags in
your html. More info: http://pd4ml.com/cookbook/

On Thursday, July 16, 2015 at 12:19:50 PM UTC+2, Richard McKenna wrote:

Hi all,

I’m in the process of migrating a rather large site from Adobe CF10 to
Lucee. All is going well apart from adding a header and footer to some PDFs.

I’m creating a bunch of individual PDFs then merging them together and
adding a header and footer to the whole document.

To add a header in ACF I’d using the cfpdf tag like so

Now it appears Lucee does not support the “text” attribute and there
isn’t any examples on the Lucee Tag Reference. So how do I add a
header/footer to a pdf document?

Kind regards,

Richard McKenna