The sample demonstrates how to fit width/height of PDF document to show PDF document by PdfDocumentViewer Component.