Permalink
Browse files

Update images.coffee.md

  • Loading branch information...
1 parent 9e8c812 commit deda269ae6eccd9e5291e213b7f87e394b2c812a @alafr alafr committed on GitHub Nov 7, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/images.coffee.md
@@ -15,6 +15,10 @@ be scaled according to the following options.
* `fit` array provided - image is scaled proportionally to fit within the passed width and height
* `cover` array provided - image is scaled proportionally to completely cover the rectangle defined by the passed width and height
+When a `fit` or `cover` array is provided, PDFKit accepts these additional options:
+* `align` - horizontally align the image, the possible values are `'left'`, `'center'` and `'right'`
+* `valign` - vertically align the image, the possible values are `'top'`, `'center'` and `'bottom'`
+
Here is an example showing some of these options.
# Scale proprotionally to the specified width

0 comments on commit deda269

Please sign in to comment.