{"action":"created","issue":{"url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/9","labels_url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/9/comments","events_url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/9/events","html_url":"https://github.com/Sicos1977/IFilterTextReader/issues/9","id":97719432,"number":9,"title":"RTF and PDF filters problem","user":{"login":"win32nipuh","id":5189614,"avatar_url":"https://avatars.githubusercontent.com/u/5189614?v=3","gravatar_id":"","url":"https://api.github.com/users/win32nipuh","html_url":"https://github.com/win32nipuh","followers_url":"https://api.github.com/users/win32nipuh/followers","following_url":"https://api.github.com/users/win32nipuh/following{/other_user}","gists_url":"https://api.github.com/users/win32nipuh/gists{/gist_id}","starred_url":"https://api.github.com/users/win32nipuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/win32nipuh/subscriptions","organizations_url":"https://api.github.com/users/win32nipuh/orgs","repos_url":"https://api.github.com/users/win32nipuh/repos","events_url":"https://api.github.com/users/win32nipuh/events{/privacy}","received_events_url":"https://api.github.com/users/win32nipuh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2015-07-28T14:27:15Z","updated_at":"2015-07-31T06:49:39Z","closed_at":"2015-07-31T06:49:39Z","body":"I am trying to understand the reasons of problem with rtf and pdf ifilters.\r\n\r\n1. Windows Server 2012\r\n2. SQL Server 2014\r\n3. iFilterPack SP2\r\n\r\nI created a test table, uploaded multiple files (.pdf, .rtf, .txt etc ), \r\ncreated FT catalog.\r\n\r\nRun query\r\nselect id, fileName,fileSize, fileExtension  from DocumentRepository where freetext(*,N'deleted ')\r\n---------------\r\n3\tRollingFileAppender.cs\t50\t.cs\r\n4\toptimize951.rtf\t    1\t.rtf\r\n8\tRollingFileAppender.cs\t50\t.txt\r\n247\tcemail.pdf\t406\t.pdf\r\n259\tDelaney Concurrency.pdf\t369\t.pdf\r\n\r\nNote. .rtf, .pdf works fine.\r\n\r\nThen I copied and run on the server IFilterTextView and \r\n1. selected the same file from disk optimize951.rtf\r\napp wrote \"*** Processing ...\"  and frozen.\r\n\r\n2. selected the same file from disk Delaney Concurrency.pdf\r\napp wrote\r\n\r\n   at IFilterTextReader.NativeMethods.IPersistStream.Load(IStream pStm)\r\n   at IFilterTextReader.FilterLoader.LoadAndInitIFilter(Stream stream, String extension, Boolean disableEmbeddedContent, String fileName) in f:\\_Samples\\RedisCLR\\ConsoleTest\\IFilterTextReader\\FilterLoader.cs:line 142\r\n   at IFilterTextReader.FilterReader..ctor(String fileName, String extension, Boolean disableEmbeddedContent, Boolean includeProperties) in f:\\_Samples\\RedisCLR\\ConsoleTest\\IFilterTextReader\\FilterReader.cs:line 138\r\n   at IFilterTextViewer.MainForm.SelectButton_Click(Object sender, EventArgs e) in f:\\_Samples\\RedisCLR\\ConsoleTest\\IFilterTextViewer\\MainForm.cs:line 112\r\nException from HRESULT: 0x80048605\r\n\r\nThe same can be reproduced for all pdf files and for all rtf files.\r\nThe problems are with some ifilters loaded by demo application.\r\n\r\nI have found a old utility, it works fine on the same server with the same rtf files, it extracts text successfully.\r\nhttp://www.codeproject.com/Articles/13391/Using-IFilter-in-C\r\n\r\nI tried it for pdf files, it returns an error: cannot find filter for pdf.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/comments/126584652","html_url":"https://github.com/Sicos1977/IFilterTextReader/issues/9#issuecomment-126584652","issue_url":"https://api.github.com/repos/Sicos1977/IFilterTextReader/issues/9","id":126584652,"user":{"login":"Sicos1977","id":6692947,"avatar_url":"https://avatars.githubusercontent.com/u/6692947?v=3","gravatar_id":"","url":"https://api.github.com/users/Sicos1977","html_url":"https://github.com/Sicos1977","followers_url":"https://api.github.com/users/Sicos1977/followers","following_url":"https://api.github.com/users/Sicos1977/following{/other_user}","gists_url":"https://api.github.com/users/Sicos1977/gists{/gist_id}","starred_url":"https://api.github.com/users/Sicos1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sicos1977/subscriptions","organizations_url":"https://api.github.com/users/Sicos1977/orgs","repos_url":"https://api.github.com/users/Sicos1977/repos","events_url":"https://api.github.com/users/Sicos1977/events{/privacy}","received_events_url":"https://api.github.com/users/Sicos1977/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T06:49:37Z","updated_at":"2015-07-31T06:49:37Z","body":"I changed the constructor on the iFilterReader, I added an option so that you can chose to load everything in memory first before passing it to the iFilter. This way you can set it from you own code.\r\n\r\nJust get the latest version from GitHub, it has this change included"}}