barcode generieren und in pdf darstellen

Dieses Thema im Forum "Webentwicklung" wurde erstellt von onip, 13. August 2013 .

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 13. August 2013
    Zuletzt bearbeitet: 13. August 2013
    hi zusammen,

    ich muss in einem pdf (mPDF) ein barcode einbinden.
    eigentlich kein problem.

    PHP:
    < img src = "http://barcode.tec-it.com/barcode.ashx?code=Code39&modulewidth=fit&data=BarcodeText&dpi=72&imagetype=jpg&rotation=0&color=&bgcolor=&fontcolor=&quiet=0&qunit=mm"  alt = "Barcode Generator TEC-IT" />
    da es ein externer anbieter ist hab ich nun per zend_barcode ein eigenen generator

    PHP:
    $code  $this -> Request ()-> getParam ( 'code' );
    $type  'code39' ;

    $options  = array(
        
    'text'  =>  $code ,
        
    'barHeight'  =>  30 ,
        
    'drawText'  =>  false
    );

    $config  = new  Zend_Config (array(
        
    'barcode'         =>  $type ,
        
    'barcodeParams'   =>  $options ,
        
    'renderer'        =>  'image' ,
        
    'rendererParams'  => array( 'imageType'  =>  'jpg' ),
    ));
    $barcode  Zend_Barcode :: render (
        
    $config
    );
    ausgabe ist ein bild wie es sich gehört in HTML.
    nur leider wird mir das im pdf nicht dargestell rotes [x]
    PHP:
    < img src = "myBarcode/?code=BarcodeText"  />
    hat jemand ein tipp für mich woran das liegen könnte.

    // edit
    wie doof.
    hab ein .htacces pwd drin.
    deaktiviert und siehe da, das bild wird angezeigt

    ~closed~
     
  2. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.