pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
972 stars 418 forks source link

PDFPageLink - URI always empty string #119

Open Shmoopy02 opened 7 years ago

Shmoopy02 commented 7 years ago

I put a MessageBox.Show() in PdfRenderer.OnMouseUp() and every link I click has an empty URI. The links being tested to external docs and work correctly in Foxit.

Drilled down to PdfFile.GetPageLinks() and all the links are still empty where NativeMethods.FPDFAction_GetURIPath() is called. So that is coming right out of the DLL.

On Visual Studio 2017 Windows 10. Tried compiling in x64, x86, and any CPU no changes. Anyone else seeing this?

pvginkel commented 7 years ago

Can you please provide a sample PDF. This should actually be working and e.g. the PDF file at http://www.pdf995.com/samples/pdf.pdf contains a URL and if you open this PDF in PdfiumViewer, it correctly opens the URL.

xsIceman commented 6 years ago

I have the same problem with links to other pdf documents. I get correct result with the sample pdf, but not when the link is a file uri