Just debugged that one. So the reason is the way windows locks the files. The file that you are importing is locked by soffice.bin that is creating an XInputStream from it, then in the sdext/source/pdfimport/pdfiadaptor.cxx one is checking whether the file is a local one and if it is so, tries to open it the second time to check whether the file is encrypted. But windows somehow does not manage to open the file because it considers it locked by the soffice.bin. Because the function checkEncryption(...) fails, the importer thinks that it is an encrypted file with unknown password and simply fails: General input/output error is the high-information message that OOo gives if an import filter returns sal_False.
This patch http://cgit.freedesktop.org/ooo-build/ooo-build/tree/patches/dev300/win32-pdfimport-use-temporary-file.diff uses temporary file even for local files and solves this issue. Btw, the temporary file is deleted after the import is done so that one does not leave garbage or potentially compromising material :) in the temporary folder. Cheers F. On 20/01/10 22:09, Michael Konen wrote: > Hi, > Running windows 7....installed pdf import extension...able to open some > pdf's but others give me a 'General Error. General input/output > error.'. Any ideas? > Thanks, > Mike > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Please avoid sending me Word, Excel or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
