• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Write Java Code In Coldfusion

New Here ,
Nov 28, 2017 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

242

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
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation