Can I set crop, trim, bleed, art, and media page boxes (CropBox, TrimBox, BleedBox, ArtBox and MediaBox) in my PDF?

PDF Page Boxes (CropBox, TrimBox, BleedBox, ArtBox and MediaBox)
 
Five measurement boxes can be defined in a PDF when using a program such as Adobe Acrobat, and possibly other PDF authoring software.
 
Each one of these measurement boxes is a set of four X-Y coordinate points.
  • The MediaBox is intended to represent the size of the paper you print on.
  • The CropBox is intended to represent the size of the image that will be used (outside of this is thrown away)
  • The TrimBox is intended to represent the size of the paper after you cut off the edges.
  • The BleedBox is intended to represent the size of the image that gets printed on the paper; part of it may be trimmed away by the trimbox.
  • The ArtBox is intended for custom usage with application or workflow designed to use an ArtBox.
eDocBuilder only recognizes the MediaBox, any of these other measurement boxes are ignored and will not be honored in eDocBuilder templates.
 
Please note that setting these boxes in a program like Adobe Acrobat may hide the content of these areas when you are inspecting the PDF file in Acrobat or another program. For example, the cropBox information on the page below is noted with Cropping does not reduce file size because information is merely hidden, not discarded.
https://helpx.adobe.com/acrobat/using/crop-pdf-pages.html
 
These can be inspected and set from the Page Boxes window in Acrobat. Please note that this feature has changed considerably over the course of development of Adobe Acrobat and you may need to check how this functionality is implemented in the version of Acrobat you are using.