Home
last modified time | relevance | path

Searched refs:mm2pt (Results 1 – 25 of 46) sorted by path

12

/plugin/html2pdf/html2pdf/html2ps/
H A Dbackground.image.php95 $top = $driver->offset + mm2pt($media->margins['bottom']) + mm2pt($media->real_height());
96 $bottom = $driver->offset + mm2pt($media->margins['bottom']);
H A Dbox.generic.formatted.php517 $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 Dbox.generic.php288 $bottom = mm2pt($media->height() - $media->margins['top']);
305 …$y = ($this->get_top() - $bottom) + (mm2pt($media->real_height()) - $page_heights[$page_index-1]) …
H A Dbox.page.margin.class.php188 $this->put_full_width(mm2pt($media->width()));
189 $this->put_full_height(mm2pt($media->margins['top']));
201 $this->put_full_width(mm2pt($media->margins['left']));
202 $this->put_full_height(mm2pt($media->margins['top']));
220 $this->put_full_height(mm2pt($media->margins['top']));
238 $this->put_full_height(mm2pt($media->margins['top']));
256 $this->put_full_height(mm2pt($media->margins['top']));
269 $this->put_full_height(mm2pt($media->margins['top']));
281 $this->put_full_width(mm2pt($media->margins['left']));
349 $this->put_full_height(mm2pt($media->margins['top']));
[all …]
H A Dbox.page.php37 $this->put_left(mm2pt($media->margins['left']));
38 $this->put_top(mm2pt($media->height() - $media->margins['top']));
39 $this->put_width(mm2pt($media->real_width()));
40 $this->put_height(mm2pt($media->real_height()));
H A Dcss.size.inc.php48 return array('size' => array('width' => $width / mm2pt(1) / pt2pt(1),
49 'height' => $height / mm2pt(1) / pt2pt(1)),
H A Dheight.php99 return mm2pt($g_media->real_height()) * $value[0] / 100;
104 return mm2pt($g_media->real_height()) * $value[0] / 100;
H A Dlayout.default.class.php19 …$margin->calcPercentages(mm2pt($media->width() - $media->margins['left'] - $media->margins['right'…
22 $box->width = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) -
26 $box->height = mm2pt($media->real_height()) - $box->_get_vert_extra();
28 $box->put_top(mm2pt($media->height() -
32 $box->put_left(mm2pt($media->margins['left']) +
43 $viewport->left = mm2pt($media->margins['left']);
44 $viewport->top = mm2pt($media->height() - $media->margins['top']);
45 … $viewport->width = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']);
46 … $viewport->height = mm2pt($media->height() - $media->margins['top'] - $media->margins['bottom']);
54 $page_real_height = mm2pt($media->real_height());
H A Dmedia.layout.inc.php105 return '0 0 '.ceil(mm2pt($this->size['width'])).' '.ceil(mm2pt($this->size['height']));
H A Doutput._generic.class.php104 $this->setPageHeight(mm2pt($this->media->real_height()));
119 return round(mm2pt($this->media->real_height()),2);
123 return round(mm2pt($this->media->real_width()),2);
127 return round(mm2pt($this->media->margins['left']),2);
131 return round($this->offset + mm2pt($this->media->height() - $this->media->margins['top']),2);
140 mm2pt($this->media->margins['bottom']) +
321 $this->width = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']);
322 $this->height = mm2pt($media->height() - $media->margins['top'] - $media->margins['bottom']);
323 $this->left = mm2pt($media->margins['left']);
324 $this->bottom = mm2pt($media->margins['bottom']);
[all …]
H A Doutput.fpdf.class.php49 $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 Doutput.pdflib.class.php263 pdf_begin_page($this->pdf, mm2pt($this->media->width()), mm2pt($this->media->height()));
H A Doutput.png.class.php177 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 Dpipeline.class.php556 … $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 Dstrategy.page.break.simple.php8 $num_pages = ceil($box->get_height() / mm2pt($media->real_height()));
11 $page_heights[] = mm2pt($media->real_height());
H A Dstrategy.page.break.smart.php9 mm2pt($media->real_height()),
10 mm2pt($media->height() - $media->margins['top']));
/plugin/html2pdf/html2pdf/html2ps/demo/
H A Dtest.php74 …$g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media…
/plugin/html2pdf/html2pdf/html2ps/features/
H A Dautomargins.php32 $media->margins['top'] = $this->_top_margin / mm2pt(1);
33 $media->margins['bottom'] = $this->_bottom_margin / mm2pt(1);
H A Dtoc.php47 $bottom = mm2pt($media->height() - $media->margins['top']);
/plugin/html2pdf/html2pdf/html2ps/samples/
H A Dsample.pipeline.custom.php26 $g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media-…
H A Dsample.pipeline.default.php27 $g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media-…
/plugin/html2pdf/html2pdf/html2ps/unittest/
H A Dtest.block.absolute.php20 $this->assertEqual($block->get_top_margin(), $body->get_top() - mm2pt(20));
21 $this->assertEqual($block->get_left_margin(), mm2pt(10));
H A Dtest.containing.block.absolute.php32 $this->assertEqual($block->get_top_margin(), $container->get_top_padding() - mm2pt(3));
33 $this->assertEqual($block->get_left_margin(), $container->get_left_padding() + mm2pt(2));
H A Dtest.css.margin.boxes.php19 $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 Dtest.css.page.break.after.php14 mm2pt($media->real_height()),
15 mm2pt($media->height() - $media->margins['top']));

12