Load PDF file in AnnotationViewer
Posted: Mon Feb 19, 2024 5:28 pm
Hello,
I am trying to load tiff file and PDF file using below code snippet. Tiff file successfully loaded but PDF is not load and getting error like Wrong or Unsuported image format. Would you please guide on the same.
I am trying to load tiff file and PDF file using below code snippet. Tiff file successfully loaded but PDF is not load and getting error like Wrong or Unsuported image format. Would you please guide on the same.
Code: Select all
private void OpenFileAsynchronously()
{
try
{
UseWaitCursor = true;
annotationViewer1.Images.Add(_sourceFilename, _isFileReadOnlyMode);
annotationViewer1.DisplayMode = ImageViewerDisplayMode.SinglePage;
annotationViewer1.SizeMode = ImageSizeMode.Normal;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}