Copy pdf input string to a new buffer
Remove width and height, scale by resolution