 | PdfDestinationCreateFit Method |
Create new destination that display the page designated by pageIndex,
with its contents magnified just enough to fit the entire page within the window both horizontally and vertically.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 5.1.3
Syntaxpublic static PdfDestination CreateFit(
PdfDocument document,
int pageIndex
)
Public Shared Function CreateFit (
document As PdfDocument,
pageIndex As Integer
) As PdfDestination
public:
static PdfDestination^ CreateFit(
PdfDocument^ document,
int pageIndex
)
static member CreateFit :
document : PdfDocument *
pageIndex : int -> PdfDestination public static PdfDestination CreateFit(
PdfDocument document,
int pageIndex
)
Patagames.Pdf.Net.PdfDestination.CreateFit = function(document, pageIndex);
Parameters
- document PdfDocument
- Document which contains this destination. Null for remote document.
- pageIndex Int32
- The zero-based index of the page to be displayed by this destination.
Return Value
PdfDestinationAn instance of the
PdfDestination class initialized with the specified parameters.
Remarks
If the required horizontal and vertical magnification factors are different, use
the smaller of the two, centering the page within the window in the other dimension.
See Also