/plugin/html2pdf/html2pdf/html2ps/ |
H A D | media.layout.inc.php | 105 return '0 0 '.ceil(mm2pt($this->size['width'])).' '.ceil(mm2pt($this->size['height']));
|
H A D | box.generic.formatted.php | 517 $containing_block['left'] = mm2pt($media->margins['left']); 518 $containing_block['right'] = mm2pt($media->margins['left'] + $media->real_width()); 519 $containing_block['top'] = mm2pt($media->margins['bottom'] + $media->real_height()); 520 $containing_block['bottom'] = mm2pt($media->margins['bottom']);
|
H A D | box.generic.php | 288 $bottom = mm2pt($media->height() - $media->margins['top']); 305 …$y = ($this->get_top() - $bottom) + (mm2pt($media->real_height()) - $page_heights[$page_index-1]) …
|
H A D | css.size.inc.php | 48 return array('size' => array('width' => $width / mm2pt(1) / pt2pt(1), 49 'height' => $height / mm2pt(1) / pt2pt(1)),
|
H A D | height.php | 99 return mm2pt($g_media->real_height()) * $value[0] / 100; 104 return mm2pt($g_media->real_height()) * $value[0] / 100;
|
H A D | output.png.class.php | 177 if (is_null($scale)) { $scale = $this->_widthPixels / mm2pt($this->media->width()); }; 183 if (is_null($scale)) { $scale = $this->_heightPixels / mm2pt($this->media->height()); }; 236 $this->_widthPixels / mm2pt($this->media->width()), 237 $this->_heightPixels / mm2pt($this->media->height()));
|
H A D | pipeline.class.php | 556 … $media->margins['left'] = $margins->left->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1); 557 …$media->margins['right'] = $margins->right->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1); 558 … $media->margins['top'] = $margins->top->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1); 559 …$media->margins['bottom'] = $margins->bottom->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt… 564 … $media->margins['left'] = $left_margin->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1); 569 … $media->margins['right'] = $right_margin->calc(mm2pt($media->get_width())) / mm2pt(1) / pt2pt(1); 574 $media->margins['top'] = $top_margin->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1); 579 …$media->margins['bottom'] = $bottom_margin->calc(mm2pt($media->get_height())) / mm2pt(1) / pt2pt(1… 965 …$g_px_scale = floor(mm2pt($media->width() - $media->margins['left'] - $media->margins['right'])) /…
|
H A D | background.image.php | 95 $top = $driver->offset + mm2pt($media->margins['bottom']) + mm2pt($media->real_height()); 96 $bottom = $driver->offset + mm2pt($media->margins['bottom']);
|
H A D | value.generic.length.php | 94 return pt2pt(mm2pt($this->_number)); 96 return pt2pt(mm2pt($this->_number*10));
|
H A D | output.fpdf.class.php | 49 $y = mm2pt($this->media->height()) - $y; 313 $this->pdf->AddPage(mm2pt($this->media->width()), mm2pt($this->media->height())); 331 $this->pdf =& new FPDF('P','pt',array(mm2pt($media->width()), mm2pt($media->height())));
|
H A D | strategy.page.break.simple.php | 8 $num_pages = ceil($box->get_height() / mm2pt($media->real_height())); 11 $page_heights[] = mm2pt($media->real_height());
|
H A D | strategy.page.break.smart.php | 9 mm2pt($media->real_height()), 10 mm2pt($media->height() - $media->margins['top']));
|
/plugin/html2pdf/html2pdf/html2ps/features/ |
H A D | automargins.php | 32 $media->margins['top'] = $this->_top_margin / mm2pt(1); 33 $media->margins['bottom'] = $this->_bottom_margin / mm2pt(1);
|
H A D | toc.php | 47 $bottom = mm2pt($media->height() - $media->margins['top']);
|
/plugin/html2pdf/html2pdf/html2ps/unittest/ |
H A D | test.block.absolute.php | 20 $this->assertEqual($block->get_top_margin(), $body->get_top() - mm2pt(20)); 21 $this->assertEqual($block->get_left_margin(), mm2pt(10));
|
H A D | test.line-box.nested.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
H A D | test.width.absolute.positioned.php | 26 mm2pt($media->real_width()) - px2pt(200)); 51 mm2pt($media->real_width()) - px2pt(100), 56 mm2pt($media->real_width()) - px2pt(100), 61 mm2pt($media->real_width()), 66 mm2pt($media->real_width()) - px2pt(200),
|
H A D | test.pagebreak.fixed.height.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 10 mm2pt($media->real_height()), 11 mm2pt($media->height() - $media->margins['top']));
|
H A D | test.textarea.height.php | 11 mm2pt(80));
|
H A D | test.css.margin.boxes.php | 19 $this->assertEqual($box->get_width(), mm2pt(10)); 20 $this->assertEqual($box->get_height(), mm2pt(10)); 38 $this->assertEqual($box->get_width(), mm2pt(0)); 39 $this->assertEqual($box->get_height(), mm2pt(10)); 61 $this->assertEqual($box->get_height(), mm2pt(10));
|
H A D | test.css.page.break.after.php | 14 mm2pt($media->real_height()), 15 mm2pt($media->height() - $media->margins['top']));
|
H A D | test.font-size.php | 21 $this->assertWithinMargin($text->get_full_height(), mm2pt(10), 0.01);
|
H A D | test.line-box.top.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
H A D | test.orphans.php | 6 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 34 mm2pt($media->real_height()), 35 mm2pt($media->height() - $media->margins['top'])); 53 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 81 mm2pt($media->real_height()), 82 mm2pt($media->height() - $media->margins['top'])); 100 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 128 mm2pt($media->real_height()), 129 mm2pt($media->height() - $media->margins['top']));
|
H A D | test.pagebreak.border.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 33 mm2pt($media->real_height()), 34 mm2pt($media->height() - $media->margins['top'])); 47 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 75 mm2pt($media->real_height()), 76 mm2pt($media->height() - $media->margins['top']));
|