Adding PDF weight creation