Anyone know how to remove all the extra margin on ...
# advancedpdf
x
Anyone know how to remove all the extra margin on a PDF? I created it from scratch and all the margins are set to 0. I'm doing something pretty close to a CSS reset on this as well. All highlighted space I don't want and need it to go out to the edges:
s
https://bfo.com/products/report/docs/tags/tags/body.html The body tag controls the margins, however there are two ways to specify size, either by name, or by width and height: https://bfo.com/products/report/docs/tags/atts/size.html I'm not sure, but possibly the named sizes have additional margin padding, since they are expected to be printed on a physical printer. Older printers usually couldn't print to the very edge, so it's typical to have some margin so that the content doesn't get cut off when printed on those older devices. Perhaps try specifying the body size in width and height instead and see if that minimizes the margins.
x
@scottvonduhn <body height="4in" width="4in" style="margin: 0"> is what I'm currently using.
s
try instead to use:
<body height="4in" width="4in" margin="0">
BFO has poor support for CSS and sometimes using style doesn't have the expected effect. It's sometimes necessary to use the tag's properties directly.