ImageGear21.Formats.Office Assembly > ImageGear.Formats.Office Namespace > ImGearWordDocument Class > Repaginate Method : Repaginate(Double,Double) Method |
'Declaration Public Overloads Sub Repaginate( _ ByVal pageWidth As Double, _ ByVal pageHeight As Double _ )
'Usage Dim instance As ImGearWordDocument Dim pageWidth As Double Dim pageHeight As Double instance.Repaginate(pageWidth, pageHeight)
public void Repaginate( double pageWidth, double pageHeight )
public: void Repaginate( double pageWidth, double pageHeight )
public: void Repaginate( double pageWidth, double pageHeight )
Exception | Description |
---|---|
ImageGear.Core.ImGearException | Thrown if either of provided page dimensions is invalid. |
Page dimensions of the document are stored in the WordprocessingML package. ImageGear retrieves them (if any) and applies upon loading of the document.
In case of absence of page dimensions within the package, ImageGear by default uses letter size: 8.5"(width) x 11"(height) (1" is equal to 96 pixels).
So, the default page dimensions are 816 x 1056 pixels.