PdfiumViewer icon indicating copy to clipboard operation
PdfiumViewer copied to clipboard

PDFPageLink - URI always empty string

Open Shmoopy02 opened this issue 8 years ago • 2 comments

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?

Shmoopy02 avatar Jun 30 '17 14:06 Shmoopy02

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.

pvginkel avatar Nov 02 '17 12:11 pvginkel

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

xsIceman avatar Feb 14 '18 19:02 xsIceman