User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/labeler.meta failed
tutorials:labeler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:labeler [2019/06/12 00:42] – created admintutorials:labeler [2022/09/20 00:08] (current) – external edit 127.0.0.1
Line 12: Line 12:
   export PREFIX=${HOME}/local/DIR/pt1230   export PREFIX=${HOME}/local/DIR/pt1230
   make install   make install
 +  cd ~/local/DIR/
 +  xstow pt1230
  
 +  * textlabel generates images in bitmap format from text. For example:
  
-Instalarlo (utilizando el Makefile incluido)  utilizando xstow (o cualquier otro método que no ensucie los directorios de sistema. +  textlabel --font "Times New Roman" "test" | pt1230 -d /dev/usb/lp1 -b
  
-textlabel genera una imagen partir de texto que se puede imprimir con el ejecutable pt1230+  * This generates bitmap image for "test" and it will be sent to the printer using the pt1230 command.
  
-ej:+===== Multiline text =====
  
-textlabel --font "Times New Roman" "test" | pt1230 -d /dev/usb/lp1 -b+  * For multiline text use text-multi-line instead of textlabel. For example:
  
-Eso genera una imagen con textlabel de la palabra "testy la envía a la impresora con el comando pt1230.+  text-multi-line -f "Courier New:bold-s 100  "line1 
 +  line2 
 +  line3 
 +  line4" | pt1230 -d /dev/usb/lp1 -b -c
  
-Si quiere generar etiquetas con múltiples líneas puede usar el comando text-multi-line.+  * This command generates a bitmap image with the text "line1 line2 line3 line4" separated in 4 lines and each centered. It automatically adjusts there size. The result is sent to the printer with pt1230 command.
  
-ej:+  * "-c" option of pt1230 command avoids the printer to "feed" the tape. It conserves tape because for each print it normally feeds a lot of empty tape to allow to cut it correctly. Use the "-c" option as much as possible before ending printing. Then "feed" at the last print to cut correctly.
  
-text-multi-line -f "Courier New:bold" -s 100  "line1 +  * You can print barcodes with this labeler using:
-line2 +
-line3 +
-line4" | pt1230 -d /dev/usb/lp1 -b -c+
  
 +  bincodes -e 39 -b "1" "2343452345325452345" | line2bitmap
  
-Este comando genera el texto line1 line2 line3 line4 en cuatro líneas separadasAutomáticamente ajusta el tamaño de cada una de esas líneas para que entre en la cinta de la impresora y envía la imagen generada la impresora con el comando pt1230.+===== Printing graphics ===== 
 + 
 +  * Create your preferred logo in inkscape 
 +  * Be sure to rotate the image so that the width of the printer tape is in the x axis. 
 +  * Convert to two colors: black and white. (using the object properties) 
 +  * Export to png. Use x resolution of 64 pixels 
 +  * Open in gimp. 
 +  * Layer->Transparency->Remove Alpha Channel 
 +  * Colors->Threshold 
 +  * Select a threshold that produces a nice printable image (specially if it contains fonts) 
 +  * Export to xbm file format. 
 +  * Convert to pt1230 format with: 
 + 
 +  bmtoa -char 01 filename.xbm 
 + 
 +  * pipe it to pt1230 for printing: 
 + 
 +  bmtoa -char 01 filename.xbm | pt1230 -d /dev/usb/lp1 -b -c
  
-La opción -c de pt1230 permite "no alimentar" la cinta. Eso permite ahorrar cinta al realizar varias impresiones sin alimentar espacio vacío. Recuerde al final de todas las impresiones alimentar ese espacio vacío para poder cortar correctamente la cinta. 
  
-bincodes -e 39 -b "1" "2343452345325452345" | line2bitmap 
tutorials/labeler.1560300120.txt.gz · Last modified: 2022/09/20 00:08 (external edit)