diff --git a/src/osgPlugins/pdf/ReaderWriterPDF.cpp b/src/osgPlugins/pdf/ReaderWriterPDF.cpp index 50e474bc9..2887f668e 100644 --- a/src/osgPlugins/pdf/ReaderWriterPDF.cpp +++ b/src/osgPlugins/pdf/ReaderWriterPDF.cpp @@ -130,7 +130,11 @@ class PopplerPdfImage : public osgWidget::PdfImage gTypeInit = true; } +#if defined(WIN32) && !defined(__CYGWIN__) + std::string uri = std::string("file:///") + foundFile; +#else std::string uri = std::string("file:") + foundFile; +#endif PopplerDocument* doc = poppler_document_new_from_file(uri.c_str(), NULL, NULL); if (!doc)