/plugin/html2pdf/html2pdf/html2ps/unittest/ |
H A D | test.pagebreak.br.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 31 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
H A D | test.pagebreak.php | 14 mm2pt($media->real_height()), 24 $this->assertTrue($page_heights[0] <= mm2pt($media->real_height()), 27 mm2pt($media->real_height()))); 30 mm2pt($media->real_height()), 33 mm2pt($media->real_height()))); 41 mm2pt($media->real_height()))); 59 mm2pt($media->real_height()), 76 mm2pt($media->real_height()))); 130 mm2pt($media->real_height()), 142 $first_div->get_full_height() - mm2pt(20), [all …]
|
H A D | test.pagebreak.table.br.php | 9 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
H A D | test.pagebreak.table.lines.php | 9 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 91 mm2pt($media->real_height()), 92 mm2pt($media->height() - $media->margins['top']));
|
H A D | test.pagebreak.table.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 29 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
H A D | test.position.horizontal.absolute.positioned.php | 16 mm2pt($media->margins['left']), 21 mm2pt($media->margins['left']) + px2pt(100), 26 mm2pt($media->width() - $media->margins['right']) - px2pt(100), 31 mm2pt($media->margins['left']), 36 mm2pt($media->margins['left']) + px2pt(100),
|
H A D | test.table.absolute.php | 20 $this->assertEqual($table->get_top_margin(), $body->get_top() - mm2pt(17)); 21 $this->assertEqual($table->get_left_margin(), mm2pt(11));
|
H A D | test.textarea.width.php | 11 mm2pt(80));
|
H A D | test.widows.php | 6 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 35 mm2pt($media->real_height()), 36 mm2pt($media->height() - $media->margins['top'])); 52 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 80 mm2pt($media->real_height()), 81 mm2pt($media->height() - $media->margins['top'])); 97 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 125 mm2pt($media->real_height()), 126 mm2pt($media->height() - $media->margins['top']));
|
H A D | test.containing.block.absolute.php | 32 $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 D | test.table.column.width.php | 6 'height' => 200/mm2pt(1)), 27 'height' => 200/mm2pt(1)), 53 $this->assertEqual($container_table->get_width(), mm2pt($media->real_width())); 69 $this->assertEqual($container_table->get_width(), mm2pt($media->real_width()) * 0.9);
|
H A D | test.table.top-boundary.php | 5 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)), 34 $media = new Media(array('width' => 100, 'height' => 200/mm2pt(1)),
|
/plugin/html2pdf/html2pdf/html2ps/ |
H A D | utils_units.php | 17 function mm2pt($mm) { function 61 return pt2pt(mm2pt((double)$value)); 63 return pt2pt(mm2pt((double)$value*10));
|
H A D | layout.default.class.php | 19 …$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 D | output._generic.class.php | 104 $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 D | output.pdflib.class.php | 263 pdf_begin_page($this->pdf, mm2pt($this->media->width()), mm2pt($this->media->height()));
|
H A D | box.page.margin.class.php | 188 $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 D | box.page.php | 37 $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()));
|
/plugin/html2pdf/html2pdf/html2ps/demo/ |
H A D | test.php | 74 …$g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media…
|
/plugin/html2pdf/html2pdf/html2ps/samples/ |
H A D | sample.pipeline.custom.php | 26 $g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media-…
|
H A D | sample.pipeline.default.php | 27 $g_px_scale = mm2pt($media->width() - $media->margins['left'] - $media->margins['right']) / $media-…
|