Changeset 10037 in spip-zone
- Timestamp:
- Mar 1, 2007, 11:30:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_test_/article_pdf/pdf/lib_pdf_global.php
r6105 r10037 115 115 { 116 116 //Balise 117 $Balise= preg_match(',<(?=[/a-zA-Z ])(/)?([/a-zA-Z]+)((\s.*|/)?)>,',$e,$match);117 $Balise= preg_match(',<(?=[/a-zA-Z0-9])(/)?([/a-zA-Z0-9]+)((\s.*|/)?)>,',$e,$match); 118 118 if ($Balise){ 119 119 $tag=strtoupper($match[2]); … … 282 282 } 283 283 284 if($tag=='H2') 285 { 286 $this->maxLineWidth = max($this->maxLineWidth,$this->x); 287 $this->Ln($LineFeedHeight*3); 288 $this->SetStyle($tag='B',true,24); 289 $this->texteAddSpace = false; 290 } 291 284 292 if($tag=='H3') 293 { 294 $this->maxLineWidth = max($this->maxLineWidth,$this->x); 295 $this->Ln($LineFeedHeight*3); 296 $this->SetStyle($tag='B',true,20); 297 $this->texteAddSpace = false; 298 } 299 300 if($tag=='H4') 301 { 302 $this->maxLineWidth = max($this->maxLineWidth,$this->x); 303 $this->Ln($LineFeedHeight*3); 304 $this->SetStyle($tag='B',true,18); 305 $this->texteAddSpace = false; 306 } 307 308 if($tag=='H5') 285 309 { 286 310 $this->maxLineWidth = max($this->maxLineWidth,$this->x); 287 311 $this->Ln($LineFeedHeight*3); 288 312 $this->SetStyle($tag='B',true,14); 313 $this->texteAddSpace = false; 314 } 315 316 if($tag=='H6') 317 { 318 $this->maxLineWidth = max($this->maxLineWidth,$this->x); 319 $this->Ln($LineFeedHeight*3); 320 $this->SetStyle($tag='B',true,12); 289 321 $this->texteAddSpace = false; 290 322 } … … 495 527 } 496 528 497 if( $tag=='H3'){529 if(($tag=='H2') OR ($tag=='H3') OR ($tag=='H4') OR ($tag=='H5') OR ($tag=='H6')){ 498 530 $this->SetStyle($tag='B',false,10); 499 531 $this->maxLineWidth = max($this->maxLineWidth,$this->x);
Note: See TracChangeset
for help on using the changeset viewer.