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