parameters: (env, target, source=None, *args, **kw)
return_statement: return result
docstring: A pseudo-Builder, providing a Docbook toolchain for PDF output.
docstring_summary: A pseudo-Builder, providing a Docbook toolchain for PDF output.
docstring_tokens: A pseudo - Builder providing a Docbook toolchain for PDF output .
function: def DocbookPdf(env, target, source=None, *args, **kw):
      """
      A pseudo-Builder, providing a Docbook toolchain for PDF output.
      """
      # Init list of targets/sources
      target, source = __extend_targets_sources(target, source)
  
      # Init XSL stylesheet
      __init_xsl_stylesheet(kw, env, '$DOCBOOK_DEFAULT_XSL_PDF', ['fo','docbook.xsl'])
  
      # Setup builder
      __builder = __select_builder(__lxml_builder, __libxml2_builder, __xsltproc_builder)
  
      # Create targets
      result = []
      for t,s in zip(target,source):
          t, stem = __ensure_suffix_stem(t, '.pdf')
          xsl = __builder.__call__(env, stem+'.fo', s, **kw)
          result.extend(xsl)
          env.Depends(xsl, kw['DOCBOOK_XSL'])
          result.extend(__fop_builder.__call__(env, t, xsl, **kw))
  
      return result
function_tokens: def DocbookPdf ( env , target , source = None , * args , * * kw ) : # Init list of targets/sources target , source = __extend_targets_sources ( target , source ) # Init XSL stylesheet __init_xsl_stylesheet ( kw , env , '$DOCBOOK_DEFAULT_XSL_PDF' , [ 'fo' , 'docbook.xsl' ] ) # Setup builder __builder = __select_builder ( __lxml_builder , __libxml2_builder , __xsltproc_builder ) # Create targets result = [ ] for t , s in zip ( target , source ) : t , stem = __ensure_suffix_stem ( t , '.pdf' ) xsl = __builder . __call__ ( env , stem + '.fo' , s , * * kw ) result . extend ( xsl ) env . Depends ( xsl , kw [ 'DOCBOOK_XSL' ] ) result . extend ( __fop_builder . __call__ ( env , t , xsl , * * kw ) ) return result