Fit | 
Create a new FitPageDestination
The returned object is not yet used on any page, but it is associated with the given target document.public static FitPageDestination Create( Document targetDocument, Page page, bool fitActualContent )
If , the viewport is fitted to the actual content of the page, instead of the size of the page.
See property FitActualContent for more information.
| Exception | Condition | 
|---|---|
| ArgumentException | if the targetDocument argument has already been closed | 
| ArgumentException | if the targetDocument argument is read-only | 
| ArgumentException | if the targetDocumentdiffers from the document associated with page | 
| ArgumentException | If the document associated with the page argument has already been closed | 
| ArgumentNullException | if targetDocument is . | 
| ArgumentNullException | if page is . |