in reply to pdf cropbox

You just may want to provide some a minimal, compilable version of your code that displays the unsatisfactory behavior. Without that, it's exceedingly difficult to assist in tracking down the problem.

Then, we just might (might!) be able to help you sort out the problem

Welcome to the Monastery! Before posting again (or updating your post with appropriate notes about what you've changed) you may be well served by reading On asking for help and How do I post a question effectively? (to say nothing of Markup in the Monastery). They may help you pose your SOPW with sufficient information for those of us whose crystal balls are broken and whose psi is being rendered inoperative by the TriLateral Commission's black helicopters.