I am using the free version 4.3.0.200.40
When I use LoadFromFile to open a file on a read-only share I get the error:
Access to the path '\\\\ABCSRV73\\Documents\\PDF\\r02596-h.pdf' is denied.
The code works with other files and I can read the file using Adobe Acrobat Reader.
I tried to use LoadFromStream but that function is not in the DLL.
My code (modified for testing):
doc.LoadFromFile( filename ); // fails
// Testing...
using( FileStream pdf_in = File.OpenRead( filename ) )
{
// doc.LoadFromStream( pdf_in ); // LoadFromStream does not exist
// This works correctly
long length_in = pdf_in.Length;
byte[] bytes_in = new byte[length_in];
int bytes_read = pdf_in.Read( bytes_in, 0, (int)length_in );
Console.WriteLine( "Length={0} Read: {1}", length_in, bytes_read );
}
Do you have any suggestions on how to work around this issue?
Thanks,