// 2. Content tweaking.
for(Page page : document.getPages())
{
// Get the page contents!
Contents contents = page.getContents();
contents.add(0,new SetLineWidth(10)); // Forces the override of line width's initial value (1.0) [PDF:1.6:4.3] setting it at 10 user-space units.
for(ContentObject obj : contents)
{normalizeLineWidth(obj);}
// Update the page contents!
contents.flush();
}
// (boilerplate metadata insertion -- ignore it)
buildAccessories(document,"Content tweaking","content tweaking inside existing pages");