57687182e41ed637e58fc97d6608402899f593 is one of the file names and it just says type "file".
I dont know if my code will help but here it is:
//gets the location of the file string fileLocation = Path.Combine(basePath, FileRepository.GetRepoFilePath(file.HashName)); PdfDocument inputDocument = PdfReader.Open(fileLocation, PdfDocumentOpenMode.Import);
fileLocation just returns "C:\\Users\\ahuddl2\\Documents\\presentation-admin-awh\\PresentationAdmin\\PresContent\\objects\\53\\57687182e41ed637e58fc97d6608402899f593"
and the PdfDocument gets the error "The file is not a valid PDF document"
I have tried just adding .pdf to the end of it and that doesnt work either.

New Topic/Question
Reply




MultiQuote




|