I load PDF documents from a Byte() array into the PdfViewer with the code below. I would like to determine if quoteDocument is already loaded. Is there a property to get the loaded PdfDocument so I can do a comparison? Such as Me.MyPdfViewer1.PdfDocument?
Private Sub DrawQuoteDocument(quoteDocument As Byte())
Me.MyPdfViewer1.Close()
If quoteDocument IsNot Nothing Then
Dim pdfDocument As New PdfDocument(quoteDocument)
Me.MyPdfViewer1.Open(pdfDocument)
End If
End Sub
Get loaded Byte() from PdfViewer
Re: Get loaded Byte() from PdfViewer
Support · Aug 26, 2022Hi,
If you are loading the PDF directly in the Open method of a PdfViewer object using a file path, then you can retrieve the file path using FilePath property of it.
string str = pdfViewer1.FilePath;
There is no option available to get the PDF back from a PdfDocument object of DynamicPDF Viewer API.
Thanks,
ceTe Software Support Team