Skip to content

Commit e618a4a

Browse files
pouu69MASNathan
authored andcommitted
we can set element potision( top, left) (#80)
* Set a Element Top,Left Position we can set a element top,left position. * we can set element top left positon
1 parent 037d99f commit e618a4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ You can also set the browser dimensions
4343
$screenCapture->setWidth(1200);
4444
$screenCapture->setHeight(800);
4545
```
46+
47+
you can set also DOM Element Position (top, left)
48+
``` php
49+
$screenCapture->setTop(100);
50+
$screenCapture->setLeft(100);
51+
```
52+
4653
This will output all the page including the content rendered beyond the setted dimensions (e.g.: all the scrollable content), if you want just the content inside those boudaries you need to clip the result
4754
``` php
4855
// You also need to set the width and height.

0 commit comments

Comments
 (0)