# Output PDF should only be part of the page

I have a paper that was accepted and now I have to convert my Latex document to their style. All of it is hidden inside the document class. An example code is of the form

\documentclass{ws-m3as}

\begin{document}
This is a test.
\end{document}


and one can download the ws-m3as file here. The output is of the following form:

You see there are these lines on the page boundary. This area will be cut away in the online and printed version. I was asking myself if there a command of the kind

\cropallpages{2cm,2cm,1cm,1cm}


where I can give the height (above, below) and width (left,right) that should be cut away in the output file (PDF). Then I can try around which exact length I need. I want to get in the end

like it will be in the online and printed version.

• Without further data (exact journal, where do we find the style, an example article, ...) it is very hard to help you. – vonbrand Jul 6 '18 at 16:12
• @vonbrand I included it, thank you for the comment. – Fritz Jul 6 '18 at 16:26
• Please. "One of the leading scientific publishers in the world" has a support department (email addresses are on the page you linked). Please ask there. – Martin Schröder Jul 6 '18 at 17:10
• @MartinSchröder True, I can do that, thank you. I think it is still an interesting question, in a more general situation where the output pdf should be cropped. Or do you think this is not really feasible? – Fritz Jul 6 '18 at 17:21
• Are you sure that it is the editor that will crop the page. I think it more likely that the journal's printer will physically crop the page. Try printing and then cropping the physical pages according to the trim marks. – Peter Wilson Jul 6 '18 at 17:53

You can crop a page. But I'm too lazy now to calculate the correct values:

\documentclass{article}
\usepackage{lipsum}

\pdfpagesattr
{ /CropBox [150 150 300 400] }
\begin{document}
\lipsum
\end{document}


• Exactly what I have been looking for, thank you very much. – Fritz Jul 6 '18 at 19:22
• If someone is interested, the exact values are /CropBox [66 53 546 768] – Fritz Jul 6 '18 at 20:06