|
@@ -91,13 +91,14 @@ namespace FormViewControl
|
|
|
private void LoadDefaultDocument()
|
|
|
{
|
|
|
string defaultFilePath = "ComPDFKit_Forms_Sample_File.pdf";
|
|
|
- pdfViewer.PDFView.InitDocument(defaultFilePath);
|
|
|
+ pdfViewer.InitDocument(defaultFilePath);
|
|
|
LoadDocument();
|
|
|
}
|
|
|
|
|
|
private void LoadDocument()
|
|
|
{
|
|
|
formControl.PdfViewControl = pdfViewer;
|
|
|
+ regularViewerControl.PdfViewControl = pdfViewer;
|
|
|
formControl.InitWithPDFViewer(pdfViewer);
|
|
|
|
|
|
formControl.ClearAllToolState();
|
|
@@ -117,7 +118,7 @@ namespace FormViewControl
|
|
|
|
|
|
ModeComboBox.SelectedIndex = 1;
|
|
|
formControl.SetToolBarContainerVisibility(Visibility.Visible);
|
|
|
- formControl.PdfViewControl.PDFViewTool.GetCPDFViewer().SetFitMode(FitModes.FitWidth);
|
|
|
+ formControl.PdfViewControl.PDFViewTool.GetCPDFViewer().SetFitMode(FitMode.FitWidth);
|
|
|
CPDFSaclingControl.InitWithPDFViewer(formControl.PdfViewControl);
|
|
|
CPDFSaclingControl.SetZoomTextBoxText(string.Format("{0}", (int)(formControl.PdfViewControl.PDFViewTool.GetCPDFViewer().GetZoom() * 100)));
|
|
|
|