Page Layout and Margins in C++

Add margins and page breaks or resize page contents.

Page layout tutorials

  • Add Margins to PDF Pages - Apply margins of 36 points on each side of pages 1 and 3.
  • Add Page Breaks in PDF - Insert a page break on page 1 at the position specified by 400.
  • Resize PDF Page Contents - Resize content on pages 1 and 3 using dimensions 400 and 750. Throw an error if ResizeContents returns false. Resize content on pages 1 and 2 using percentage-based margins of 10 on each side.