Class CropPage

java.lang.Object
org.jpedal.manipulator.CropPage
All Implemented Interfaces:
org.jpedal.manipulator.Manipulation

public class CropPage extends Object implements org.jpedal.manipulator.Manipulation
Crops the specified page.

Can also be used to expand the page dimensions without changing the size of the content.

See PdfManipulator.cropPage(int, float, float, ScaleMode, Anchor)

  • Constructor Details

    • CropPage

      public CropPage(PageRanges pages, float scaleX, float scaleY)
      Crops the specified page.

      Can also be used to expand the page dimensions without changing the size of the content.

      Parameters:
      pages - the pages to crop
      scaleX - the horizontal scaling factor. 100% is 1.0f
      scaleY - the vertical scaling factor. 100% is 1.0f
    • CropPage

      public CropPage(PageRanges pages, float scaleX, float scaleY, ScaleMode scaleMode, Anchor anchor)
      Crops the specified page.

      Can also be used to expand the page dimensions without changing the size of the content.

      Parameters:
      pages - the pages to crop
      scaleX - the horizontal scaling factor. 100% is 1.0f
      scaleY - the vertical scaling factor. 100% is 1.0f
      scaleMode - the scale mode to use. See ScaleMode
      anchor - the cropping anchor to use. See Anchor