Added scaling width of pdf
BUGFIX: Latest change were inserted twice in function