Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: About Dispose method Pin
joan_fl3-Mar-04 5:21
joan_fl3-Mar-04 5:21 
QuestionHow to scroll between 2 Panels? Pin
jason_htun2-Mar-04 16:42
jason_htun2-Mar-04 16:42 
AnswerRe: How to scroll between 2 Panels? Pin
Matthew Hazlett2-Mar-04 16:49
Matthew Hazlett2-Mar-04 16:49 
GeneralRe: How to scroll between 2 Panels? Pin
jason_htun2-Mar-04 23:06
jason_htun2-Mar-04 23:06 
GeneralSearching PDF with C# Pin
Craig Suthers2-Mar-04 15:01
Craig Suthers2-Mar-04 15:01 
GeneralRe: Searching PDF with C# Pin
Matthew Hazlett2-Mar-04 16:17
Matthew Hazlett2-Mar-04 16:17 
GeneralRe: Searching PDF with C# Pin
Craig Suthers2-Mar-04 20:17
Craig Suthers2-Mar-04 20:17 
GeneralRe: Searching PDF with C# Pin
Heath Stewart3-Mar-04 3:40
protectorHeath Stewart3-Mar-04 3:40 
Actually, PDFs weren't made to stop "ripping of text", but to solve a common problem - to provide a standard format for delivering rich content on the web (among other media).

You can get the text because the text is available in PDFs unless the page is one giant image (which is rare).

There's many ways to get text. One easy way is to install Adobe PDF IFilter 5.0[^]. An IFilter is an interfaces that COM servers implement to facilitate searching of text. Office installs their own implementation, and Windows 2000 and higher have default IFilter implementations for searching text files, HTML documents, and several other common formats.

While this would be easiest to use in C++, you can P/Invoke the necessary APIs and redeclare the interfaces so that you can use them in C#.

There is an example that gets the IFilter for a doc (the system provides the right implementation, so you could easily replace the .doc filename with a .pdf filename) here: http://sqljunkies.com/weblog/acencini/posts/716.aspx[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Searching PDF with C# Pin
Philip Fitzsimons3-Mar-04 5:29
Philip Fitzsimons3-Mar-04 5:29 
QuestionHow marshall byte* ? Pin
Alexsander Antunes2-Mar-04 14:18
professionalAlexsander Antunes2-Mar-04 14:18 
AnswerRe: How marshall byte* ? Pin
Matthew Hazlett2-Mar-04 16:25
Matthew Hazlett2-Mar-04 16:25 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 0:59
professionalAlexsander Antunes3-Mar-04 0:59 
GeneralRe: How marshall byte* ? Pin
Matthew Hazlett3-Mar-04 3:18
Matthew Hazlett3-Mar-04 3:18 
GeneralRe: How marshall byte* ? Pin
Alexsander Antunes3-Mar-04 3:47
professionalAlexsander Antunes3-Mar-04 3:47 
QuestionDynamic Casting? Pin
Kelemvor2k2-Mar-04 13:07
sussKelemvor2k2-Mar-04 13:07 
AnswerRe: Dynamic Casting? Pin
I#3-Mar-04 1:49
I#3-Mar-04 1:49 
AnswerRe: Dynamic Casting? Pin
HAHAHA_NEXT3-Mar-04 4:19
HAHAHA_NEXT3-Mar-04 4:19 
GeneralRe: Dynamic Casting? Pin
leppie3-Mar-04 6:10
leppie3-Mar-04 6:10 
GeneralRe: Dynamic Casting? Pin
HAHAHA_NEXT3-Mar-04 6:15
HAHAHA_NEXT3-Mar-04 6:15 
QuestionIs there a difference? Pin
sps-itsec462-Mar-04 11:48
sps-itsec462-Mar-04 11:48 
AnswerRe: Is there a difference? Pin
RNEELY2-Mar-04 11:58
RNEELY2-Mar-04 11:58 
AnswerRe: Is there a difference? Pin
Heath Stewart2-Mar-04 12:26
protectorHeath Stewart2-Mar-04 12:26 
AnswerRe: Is there a difference? Pin
Colin Angus Mackay2-Mar-04 12:28
Colin Angus Mackay2-Mar-04 12:28 
GeneralRe: Is there a difference? Pin
boogs2-Mar-04 13:08
boogs2-Mar-04 13:08 
GeneralRe: Is there a difference? Pin
boogs2-Mar-04 13:13
boogs2-Mar-04 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.