properly get width for PDF