Question: I've been building a blog engine with flask and SqlAlchemy and I've reached a point where I have the following:

* A generic base template which has a left & right sidebar along with
footer areas that are dynamically generated based on queries.
* A number of variables that are being passed in every view to populate said sidebars and footer.

My question is: 

> 
> Is there a means by which I can pass a group of variables to every view in a flask app without having to pass them in the `render_template()` call?
> 
> 
>

Answer: 
`Zend_Pdf` uses the BOTTOM LEFT corner as the origin and uses points (1/72 of an inch) as the unit of measurement.

I don't usually post links to my own stuff so blatantly, but I've seen a number of questions from you recently on how to use `Zend_Pdf` and I think you could benefit from reading this article:

<http://yetanotherprogrammingblog.com/content/zend_pdf-wrapper-and-sample-code>

There is a specific section in that article on using `drawImage()`.
`drawImage` function get as paramteters the location of the start point (top left) to draw the image and the end point (bottom right). By this coordinates, you can specify the location and the size of the image to draw.

<http://framework.zend.com/manual/1.12/en/zend.pdf.drawing.html>

```
public function drawImage(Zend_Pdf_Resource_Image $image, $x1, $y1, $x2, $y2);

```