PDF Rechnung - Firmenadresse unterstrichen

13.10.2014 11:55
#1
adi007
User adi007
Name: Adi Heutschi
01.12.2011
Сообщения: 58
Quote
PDF Rechnung - Firmenadresse unterstrichen

Hallo

Ich habe die PDF Rechnung etwas angepasst.
Datei: generete_pdf_order.php

Wie kann ich Text Unterstreichen (Formatierung)

Ich möchte die Firmenadresse "unterstrichen" anzeigen lassen?


$pdf->setfontsize(6);



$pdf->SetTextColor($pdf->pdfcolors[0][0], $pdf->pdfcolors[0][1], $pdf->pdfcolors[0][2]);

$pdf->MultiCell(80,3, $vendorinfo->company_name.", ".$vendorinfo->adress.", ".$vendorinfo->zip." ".$vendorinfo->city,0,'L');



Vielen Dank für Tipps!

Adi

 
20.10.2014 08:28
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25922
Quote
Aw: PDF Rechnung - Firmenadresse unterstrichen

See documentation TCPDF

 
05.11.2014 10:04
#3
adi007
User adi007
Name: Adi Heutschi
01.12.2011
Сообщения: 58
Quote
Aw: PDF Rechnung - Firmenadresse unterstrichen

Vielen Dank!

$pdf->SetFont('freesans','U',6);


Set the Font
On the configuration file (config/tcpdf_config.php) set the K_PATH_FONTS constant to the TCPDF fonts path.
On the fourth parameter of the TCPDF class constructor you have to specify if you are using Unicode fonts (true) or old fonts (false).

To set the font in your script you just need to call the SetFont() method. It is mandatory to call this method at least once before printing text or the resulting document would not be valid. The method can be called before the first page is created and the font is retained from page to page:SetFont(string family[,string style[,string size]])
•family : Family font. It can be either a font name or one of the standard families (case insensitive):◦Courier (fixed-width)
◦Helvetica or Arial (synonymous; sans serif)
◦Times (serif)
◦Symbol (symbolic)
◦ZapfDingbats (symbolic)
It is also possible to pass an empty string. In that case, the current family is retained.
•style : Font style. Possible values are (case insensitive):◦empty string: regular
◦B: bold
◦I: italic
◦U: underline
or any combination. The default value is regular.
•size : Font size in points. The default value is the current size. If no size has been specified since the beginning of the document, the value taken is 12.
•fontfile : The font definition file. By default, the name is built from the family and style, in lower case with no spaces.
•subset : If true embedd only a subset of the font (stores only the information related to the used characters); if false embedd full font; if 'default' uses the default value set using setFontSubsetting(). This option is valid only for TrueTypeUnicode fonts. If you want to enable users to change the document, set this parameter to false. If you subset the font, the person who receives your PDF would need to have your same font in order to make changes to your PDF. The file size of the PDF would also be smaller because you are embedding only part of a font.
Example:$pdf->SetFont('times', 'BI', 20, '', 'false');

 
05.11.2014 10:43
#4
adi007
User adi007
Name: Adi Heutschi
01.12.2011
Сообщения: 58
Quote
Aw: PDF Rechnung - Firmenadresse unterstrichen

Gelöst:

http://www.adiheutschi.ch/webdesign/joomla-erweiterungen/351-joomshopping-rechnung-c5-fenster-rechts

Fenster Couvert C5 Rechnungsadresse rechts, plus Absenderadresse klein darüber.

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.