added pdf scaleing