Highlighted

Write Java Code In Coldfusion

New Here ,
Nov 28, 2017

Copy link to clipboard

Copied

Currently i use pd4ml API to generate the pdf. In pd4ml there is a feature to manipulate the header and footer. Base on tech do in java we can do the code like:

PD4PageMark header = new PD4PageMark() { 

     public String getHtmlTemplate(int pageNumber) { 

          if ( pageNumber > 1 ) { 

               return "<html><body>some document header stuff..."

             } else { 

               return ""

             } 

         } 

     }; 

pd4ml.setPageHeader(header);

currently I can call the object like

pd4ml = createObject("java","org.zefer.pd4ml.PD4ML");

header= createObject("java","org.zefer.pd4ml.PD4PageMark")

pd4ml.setPageHeader(header);

How to pass the function getHtmlTemplate in coldfusion style ?

Thanks

Andri

Views

177

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Write Java Code In Coldfusion

New Here ,
Nov 28, 2017

Copy link to clipboard

Copied

Currently i use pd4ml API to generate the pdf. In pd4ml there is a feature to manipulate the header and footer. Base on tech do in java we can do the code like:

PD4PageMark header = new PD4PageMark() { 

     public String getHtmlTemplate(int pageNumber) { 

          if ( pageNumber > 1 ) { 

               return "<html><body>some document header stuff..."

             } else { 

               return ""

             } 

         } 

     }; 

pd4ml.setPageHeader(header);

currently I can call the object like

pd4ml = createObject("java","org.zefer.pd4ml.PD4ML");

header= createObject("java","org.zefer.pd4ml.PD4PageMark")

pd4ml.setPageHeader(header);

How to pass the function getHtmlTemplate in coldfusion style ?

Thanks

Andri

Views

178

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 28, 2017 0

Have something to add?

Join the conversation